Home / Chandani / Programming MCQs Solution

Chandani updated solution of these Programming language mcqs.

Q. Which function is used to compare two strings in C?

Q. What will be the output of the following C code? (If the input is "Hello world")

Q. What will be the output of the following C code?

Q. What will be the output of the following C code?

Q. Which function is used to concatenate two strings in C?

Q. Which function is used to read a line of text including spaces from the user in C?

Q. Which format specifier is used to read and print the string using printf() and scanf() in C?

Q. Consider the below statement, can we assign a string to variable like this:

Q. A string is terminated by ___

Q. Can a loop be nested in C programming?

Q. When the condition of the do-while loop is false, how many times will it execute the code?

Q. Which of the following parts of the for loop can be eliminated in C?

Q. Which loop executes the block a specific number of times?

Q. Which of the following is valid syntax for creating a while loop?

Q. Which of these statements is correct in case of while loop in C?

Q. What will happen if the loop condition will never become false?

Q. Which statements are used to change the execution sequence?

Q. Which of these is an exit-controlled loop?

Q. What will be the output of the following C code?

Q. Without a break statement in switch what will happen?

Q. Which of the following syntax is correct for nested if-else statements?

Q. Is it possible to nest if-else statements in C programming?

Q. How many expressions can be checked using if...elseif...else statement?