iGET

C Programming - MCQ Practice Questions

C questions in placement tests and university exams are rarely about syntax alone. Most of what you will find here is output prediction, pointer arithmetic, arrays and strings, structures and unions, storage classes, recursion, and file handling. The explanations walk through memory behaviour step by step, which is usually where the confusion sits rather than in the code itself.

972 questions | 100% Free

Q.41Easy

What is the scope of a variable declared inside a function block?

Q.42Easy

Which of the following is a storage class in C?

Q.43Easy

What is the difference between initialization and assignment in C?

Q.44Easy

What is the size of a 'float' data type in C on most 32-bit systems?

Q.45Easy

What is the range of 'signed char' in C?

Q.46Easy

What happens if you assign a double value to an int variable without casting?

Q.47Easy

What is the size of the 'char' data type in C on most modern systems?

Q.48Easy

What is the difference between 'signed' and 'unsigned' char?

Q.49Easy

Which data type would be most appropriate to store a person's age in a program?

Q.50Easy

What is the output of: int a = 5, b = 2; printf("%d", a / b);

Q.51Easy

In C programming, which of the following is NOT a fundamental data type?

Q.52Easy

What is the size of a 'long long int' variable in C on a 64-bit system?

Q.53Easy

Which keyword is used to declare a variable that cannot be modified after initialization?

Q.54Easy

Which of the following variable declarations will occupy the LEAST memory?

Q.55Easy

In C programming, when you declare a variable as 'const int x = 5;', what happens if you try to modify it within the program?

Q.56Easy

What will be the output of the following C code?
int x = 5;
if (x > 3)
printf("A");
else
printf("B");

Q.57Easy

Which of the following is NOT a valid control flow statement in C?

Q.58Easy

What is the output of this code?
for (int i = 0; i < 3; i++)
printf("%d ", i);

Q.59Easy

What is the difference between 'break' and 'continue' in loops?

Q.60Easy

Analyze the ternary operator: int x = (5 > 3) ? 10 : 20; What is the value of x?