Vidyalelo
C Programming · all questions

C Fundamentals
practice.

Practice every MCQ with options. Use Show answers when you want the correct option and solution.

303

Questions

1/16

Page

Pick an option on a question to see the right answer and solution.

What is the primary purpose of a function prototype in C?

Select an option to see the answer and solution.

Which character is used to indicate the end of a statement in C?

Select an option to see the answer and solution.

Which data type is used to represent a single character in C?

Select an option to see the answer and solution.

What is the correct syntax for declaring a variable in C?

Select an option to see the answer and solution.

Which symbol is used for the 'modulo' operation in C?

Select an option to see the answer and solution.

What is the default return type of a function in C if not specified?

Select an option to see the answer and solution.

Which operator is used for 'logical AND' in C?

Select an option to see the answer and solution.

What is the purpose of the 'sizeof' operator in C?

Select an option to see the answer and solution.

In C, which type of variable should be used to store decimal numbers?

Select an option to see the answer and solution.

Which header file should be included for input and output functions in C?

Select an option to see the answer and solution.

What is the purpose of the 'break' statement in C?

Select an option to see the answer and solution.

Which of the following is not a valid C keyword?

Select an option to see the answer and solution.

What is the maximum number of arguments that can be passed to a C function?

Select an option to see the answer and solution.

Which operator is used to access the value stored at a pointer address in C?

Select an option to see the answer and solution.

What does the 'void' keyword indicate in a C function declaration?

Select an option to see the answer and solution.

Which character is used to represent a comment in C code?

Select an option to see the answer and solution.

What is the purpose of the 'continue' statement in a loop?

Select an option to see the answer and solution.

What is the range of values that can be stored in an 'int' data type in C?

Select an option to see the answer and solution.

Which operator is used to compare two values for equality in C?

Select an option to see the answer and solution.

What is the purpose of the 'const' keyword in C?

Select an option to see the answer and solution.