Today, quizzes are the best way to examine knowledge. You can enhance the fundamental skills with “C Multiple Choice Questions (MCQ’s)”. These C Quiz Questions cover all the important topics, which plays a major role in interviews and placements.
So, what are you waiting for?
Take this challenge and prove yourself. But before you start, bookmark all C quizzes and finish them before appearing for any interview:
0 of 12 Questions completed
Questions:
Information You have already completed the quiz before. Hence you can not start it again.
You must sign in or sign up to start the quiz.
You must first complete the following:
Quiz complete. Results are being recorded.
0 of 12 Questions answered correctly
Your time:
Time has elapsed
You have reached 0 of 0 point(s), (0 )
Earned Point(s): 0 of 0 , (0 ) 0 Essay(s) Pending (Possible Point(s): 0 )
Current Review / Skip Answered Correct Incorrect
Question 1 of 12
In the declaration given below, what is “array”? int array[20];
Question 2 of 12
What is the most preferred function to read a string in C?
Question 3 of 12
Which of the following is treated as a real number by default?
Question 4 of 12
Which of the following in C is analogous to dictionaries in Python?
Question 5 of 12
Predict the output of the following code segment: // Add stdio.h and stdbool.h header files in below code
int main() {
bool arr[10] = { true, false }; printf( “%ld\n”,sizeof(bool) ); return 0;
}
Question 6 of 12
Predict the output of the following code segment: // Add stdio.h header file in below code
void function(int **p) { printf(“%d”, **p); } int main() { int array[2][1] = {10, 20, 30, 40, 50, 60, 70, 80}; int *pointer; pointer = &array[2][2]; function(&pointer); return 0; }
Question 7 of 12
Predict the output of the following code segment: // Add stdio.h header file in below code
int main() { const int limit = 10; limit++; printf(“%d”, limit); return 0; }
Question 8 of 12
Predict the output of the following code segment: // Add stdio.h header file in below code
int main() { int number1 = -17; int number2 = -5; int result = number1 % number2; printf(“%d”,result); return 0; }
Question 9 of 12
Predict the output of the following code segment: // Add stdio.h header file in below code
int main () { char line [] = “Welcome to DataFlair tutorials on C Programming”; char string1[10], string2[10], string3[10]; sscanf (line,”%*s %*s %s %*s %*s %s %s”,string1, string2, string3); printf (“%s %s %s \n”, string1, string2, string3); return 0; }
Question 10 of 12
Which mathematical function would you use to round off 4.23 to 5?
Question 11 of 12
Which of the following is not necessary for every C program?
Question 12 of 12
Which of the following statements is incorrect about macros?
Hope, you scored well in our “C Multiple Choice Questions”. Share your C Quiz score in the comments and challenge others to score more!!
All the queries and suggestions are welcomed in the comment section.
Did you like our efforts? If Yes, please give DataFlair 5 Stars on Google
its amazing quiz
May you please explain 9th question? How its output is coming?
%* skips input
it is very good questions for begineers
click option is not working sir
All the best
ITS AMAZING QUIZ
ITS AMAZING QUIZ AND VERY USEFUL FOR BEGINNERS
11. Question
Which of the following is not necessary for every C program?
Header file
Preprocessor directive
The main function
The use of a keyword
for this question answer should be “The use of keywords”.
It would be better if we have a video explanation for some questions.