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.121Hard

What is true about the variable declared as 'extern int count;' inside a function?

Q.122Hard

Consider a structure with int (4 bytes), char (1 byte), and double (8 bytes). What is the minimum size due to alignment requirements?

Q.123Hard

Which of the following statements about type qualifiers is INCORRECT?

Q.124Easy

What is the default data type of a floating-point constant in C?

Q.125Medium

What is the size of int data type on a 32-bit system according to C standard?

Q.126Medium

In the declaration 'int arr[10], *ptr;', which statement is correct?

Q.127Medium

Which of the following correctly declares a constant integer variable?

Q.128Easy

What is the range of unsigned char in C?

Q.129Medium

What happens when you assign a larger data type value to a smaller one?

Q.130Hard

In the declaration 'volatile int x;', what does volatile signify?

Q.131Easy

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

Q.132Easy

Which of the following is a storage class in C?

Q.133Medium

What is the output of: printf("%d", sizeof(int) + sizeof(char))?

Q.134Medium

What is the difference between 'char' and 'unsigned char' for character representation?

Q.135Medium

In C, what is the result of: int x = 5.7?

Q.136Easy

What is the difference between initialization and assignment in C?

Q.137Medium

What will happen if you declare a variable without initializing it?

Q.138Medium

Which format specifier is used for printing a long integer?

Q.139Hard

In the declaration 'int *p, q;', what are the data types?

Q.140Hard

What is the purpose of the 'restrict' keyword in modern C?