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.

1. What is the range of signed char data type in C Programming?

A. 0 to 255

B. -128 to +127

C. -32768 to +32767

D. 0 to 65535

Answer: B

2. What is the range of unsigned char data type in C Programming?

A. -128 to + 127

B. 0 to 255

C. -32768 to +32767

D. 0 to 65535

Answer: B

3. What is the range of short signed int data type in C Programming?

A. -128 to + 127

B. 0 to 255

C. -32768 to +32767

D. 0 to 65535

Answer: C

4. What is the range of short unsigned int data type in C Programming?

A. -128 to + 127

B. 0 to 255

C. -32768 to +32767

D. 0 to 65535

Answer: D

5. How many byte(s) reserved by signed char in C programming?

A. 1 byte

B. 2 bytes

C. 4 bytes

D. 8 bytes

Answer: A

6. Which is the format modifier used for signed char in C programming?

A. %d

B. %c

C. %u

D. %ld

Answer: B

7. How many byte(s) reserved by unsigned char in C programming?

A. 1 byte

B. 2 bytes

C. 4 bytes

D. 8 bytes

Answer: A

8. Which is the format modifier used for unsigned char in C programming?

A. %d

B. %c

C. %u

D. %ld

Answer: B

9. What is the range of signed int data type in C Programming?

A. -128 to + 127

B. 0 to 255

C. -32768 to +32767

D. 0 to 65535

Answer: C

10. How many byte(s) reserved by signed int in C programming?

A. 1 byte

B. 2 bytes

C. 4 bytes

D. 8 bytes

Answer: B