iGET

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

Q.1Easy

Which of the following is NOT a fundamental data type in C?

Q.2Easy

What is the size of an 'int' variable in a 32-bit system?

Q.3Easy

Which variable declaration is correct in C?

Q.4Medium

What will be the output of the following code? int x = 5; float y = x; printf("%f", y);

Q.5Medium

Which of the following occupies maximum memory in a 64-bit system?

Q.6Medium

What is the range of unsigned int in a 32-bit system?

Q.7Easy

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

Q.8Medium

What is the difference between 'static' and 'extern' variables?

Q.9Medium

What is the output of the following code? int x = 10; int *p = &x; printf("%d", *p);

Q.10Easy

Which of the following is a derived data type in C?

Q.11Hard

What will be the size of the following structure? struct test { char c; int i; float f; };

Q.12Medium

Which variable storage class has default initialization to 0?

Q.13Medium

What is the output of this code? float x = ; printf("%f", x);

Q.14Easy

How many bits are used to store a 'short int' in a standard C environment?

Q.15Medium

What happens when you declare a variable without initializing it?

Q.16Hard

Which of the following correctly demonstrates pointer arithmetic?

Q.17Hard

What is the output of the following code? int a = 5; int *p = &a; int q = &p; printf("%d", q);

Q.18Medium

Which data type is most suitable for storing a decimal number with high precision?

Q.19Easy

What is the range of values for a signed char in C?

Q.20Easy

Which keyword is used to modify a variable so that it cannot be changed?