C Programming - MCQ Practice Questions
Practice free C Programming multiple-choice questions with detailed answers and explanations. Perfect for competitive exam preparation.
978 questions | 100% Free
What is the scope of a variable declared inside a function block?
Which of the following is a storage class in C?
What is the difference between initialization and assignment in C?
What is the size of a 'float' data type in C on most 32-bit systems?
What is the range of 'signed char' in C?
What happens if you assign a double value to an int variable without casting?
What is the size of the 'char' data type in C on most modern systems?
What is the difference between 'signed' and 'unsigned' char?
Which data type would be most appropriate to store a person's age in a program?
What is the output of: int a = 5, b = 2; printf("%d", a / b);
In C programming, which of the following is NOT a fundamental data type?
What is the size of a 'long long int' variable in C on a 64-bit system?
Which keyword is used to declare a variable that cannot be modified after initialization?
Which of the following variable declarations will occupy the LEAST memory?
In C programming, when you declare a variable as 'const int x = 5;', what happens if you try to modify it within the program?
What will be the output of the following C code? int x = 5; if (x > 3) printf("A"); else printf("B");
Which of the following is NOT a valid control flow statement in C?
What is the output of this code? for (int i = 0; i < 3; i++) printf("%d ", i);
What is the difference between 'break' and 'continue' in loops?
Analyze the ternary operator: int x = (5 > 3) ? 10 : 20; What is the value of x?