C Data Types 1 Questions and Answers
Practice ModeShowing 10 of 50 questions
Q11
What does the "unsigned" modifier do?
Answer: Option A
Explanation: unsigned removes the sign bit, allowing only positive numbers and doubling the positive range.
Q12
Which data type provides the highest precision for decimal numbers?
Answer: Option C
Explanation: long double provides the highest precision among floating-point types.
Q13
What is the size of "float" data type in C?
Answer: Option B
Explanation: float typically occupies 4 bytes of memory.
Q14
Which of the following is a derived data type in C?
Answer: Option C
Explanation: Arrays are derived data types constructed from fundamental types.
Q15
What is the range of "unsigned int" on a 32-bit system?
Answer: Option C
Explanation: unsigned int ranges from 0 to 4,294,967,295 on 32-bit systems.
Q16
Which format specifier is used for "unsigned long" in C?
Answer: Option A
Explanation: %lu is used for unsigned long in printf/scanf functions.
Q17
What is the purpose of "void" data type?
Answer: Option A
Explanation: void is used to indicate no type, commonly used for functions that return nothing.
Q18
Which data type would you use for a variable that stores age?
Answer: Option B
Explanation: unsigned int is suitable for age as it cannot be negative.
Q19
What is the difference between "float" and "double"?
Answer: Option A
Explanation: double has higher precision and larger range compared to float.
Q20
Which of the following is a valid character constant?
Answer: Option B
Explanation: Single quotes are used for character constants in C, and 'A' is a valid character.