Home
MCQs
C programming language MCQs
Data Types
C programming language MCQs

C programming language MCQs - Data Types

There are three varieties of data types MCQs in C programming languages char, int, and float. These primary data types have several sub types for different usages. To fully understand and learn about these data types, you need to explore it through solving MCQs with answers.

21. How many byte(s) reserved by double in C programming?

A. 2 bytes

B. 4 bytes

C. 8 bytes

D. 10 bytes

Answer: C

22. Which is the format modifier used for double in C programming?

A. %d

B. %f

C. %lf

D. %Lf

Answer: C

23. What is the range of double data type in C Programming?

A. 0 to 4294967295

B. -3.4e38 to +3.4e38

C. -1.7e308 to +1.7e308

D. -1.7e4932 to +1.7e4932

Answer: C

24. What is the range of long double data type in C Programming?

A. 0 to 4294967295

B. -3.4e38 to +3.4e38

C. -1.7e308 to +1.7e308

D. -1.7e4932 to +1.7e4932

Answer: D

25. Which is the format modifier used for long double in C programming?

A. %d

B. %f

C. %lf

D. %Lf

Answer: D

26. How many byte(s) reserved by long double in C programming?

A. 2 bytes

B. 4 bytes

C. 8 bytes

D. 10 bytes

Answer: D