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

C programming language MCQs - All MCQs

basics, Variables, Data Types

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

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

A. %d

B. %c

C. %u

D. %ld

Answer: B

33. Which is the format modifier used for long unsigned int in C programming?

A. %d

B. %f

C. %ld

D. %lu

Answer: D

34. Which is not the right Rule for constructing an Character constant?

A. A character constant is a single alphabet

B. Single special symbol enclosed within double inverted commas

C. A single-digit or a single special symbol enclosed within single inverted commas

Answer: B

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

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

37. Which is the format modifier used for float in C programming?

A. %d

B. %f

C. %lf

D. %Lf

Answer: B

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

39. In which year C programming language was developed?

A. 1992

B. 1982

C. 1972

Answer: C

40. What is constant in programming?

A. an entity that may change

B. an entity that does not have value

C. an entity that does not change

Answer: C