Home
MCQs
C programming language MCQs
All MCQs
C programming language MCQs

C programming language MCQs - All MCQs

basics, Variables, Data Types

11. How many types of constant in the C programming language?

A. 3 types

B. 2 types

C. 4 types

Answer: B

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

A. -32768 to +32767

B. 0 to 65535

C. -2147483648 to +2147483647

D. 0 to 4294967295

Answer: C

13. What is variable in programming?

A. an entity that may change

B. an entity that does not have value

C. an entity that does not change

Answer: A

14. In programming, A character denotes any Alphabet, digit, or _____ ?

A. Constant

B. Special Symbol

C. Variable

D. Keyword

Answer: B

15. Which is the type not in Secondary Constants?

A. Array

B. Pointer

C. Integer

D. Structure

Answer: C

16. Which type of result will be returned after performing an arithmetic operation between an integer and an integer?

A. Character

B. Integer

C. Real

D. Null

Answer: B

17. 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

18. Which is not the right Rule for constructing an Integer constant?

A. An integer constant must have at least one digit

B. It must not have a decimal point

C. It can be either positive or negative

D. Commas or blanks are allowed within an integer constant

Answer: D

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

A. %d

B. %c

C. %u

D. %ld

Answer: B

20. Which is the format modifier used for long signed int in C programming?

A. %d

B. %f

C. %ld

D. %lu

Answer: C