Test your knowledge on fundamentals of data types in C with this quiz which covers topics like data type sizes, ranges, type conversions, and mixed-type operations.
Question 3
Which of the following can be used to find the memory size of any data type in C?
memsize()
length()
size()
sizeof
Question 5
What is the range of char in C (signed by default)?
0 to 255
-128 to 127
-127 to 127
-256 to 255
Question 6
Which data type would you use to store a large floating-point number with high precision?
float
char
int
double
Question 7
What is the keyword for an unsigned integer in C?
no_sign
negative sign
unsigned
positive
Question 9
Which data type is used for storing numbers in exponential form?
char
float
double
both B and C
Question 10
What is the size of a double on most 64-bit systems?
4 bytes
6 bytes
8 bytes
10 bytes
There are 19 questions to complete.