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
View Answer
32. Which is the format modifier used for unsigned char in C programming?
A. %d
B. %c
C. %u
D. %ld
View Answer
33. Which is the format modifier used for long unsigned int in C programming?
A. %d
B. %f
C. %ld
D. %lu
View Answer
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
View Answer
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
View Answer
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
View Answer
37. Which is the format modifier used for float in C programming?
A. %d
B. %f
C. %lf
D. %Lf
View Answer
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
View Answer
39. In which year C programming language was developed?
A. 1992
B. 1982
C. 1972
View Answer
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
View Answer
