Explore topic-wise MCQs in C Multiple Choice.

This section includes 14 Mcqs, each offering curated multiple-choice questions to sharpen your C Multiple Choice knowledge and support exam preparation. Choose a topic below to get started.

1.

The minimum value of CHAR_BIT is equal to ________

A. 2
B. 4
C. 8
D. 16
Answer» D. 16
2.

What will be the output of the following C code if the value of UCHAR_MAX is 127?

A. Error
B. 127
C. Alphabet corresponding to the value 127
D. Junk valueView Answer
Answer» E.
3.

The macros defined under the header file limits.h are not defined under any other header file.

A. False
B. True
Answer» C.
4.

The macro definition of INT_MIN is ____________

A. –INT_MAX – 1
B. INT_MAX – 1
C. –INT_MAX + 1
D. INT_MAX + 1
Answer» B. INT_MAX – 1
5.

Given that the value of SHRT_MAX is equal to 32767 and that of SHRT_MIN is equal to -32768, What will be the output of the following C code?

A. -1
B. error
C. 1
D. 0View Answer
Answer» E.
6.

256?$

A. Error
B. 1
C. 128
Answer» C. 128
7.

The macro definition of INT_MIN is ___________?

A. –INT_MAX – 1
B. INT_MAX – 1
C. –INT_MAX + 1
D. INT_MAX + 1
Answer» E.
8.

The value of CHAR_MAX will be equal to SCHAR_MAX when:

A. char represents positive value
B. char represents value equal to 0
C. char represents negative value
D. char represents an exponential value
Answer» D. char represents an exponential value
9.

_____________ defines the minimum value for a short integer.

A. SHINT_MIN
B. SHRT_MIN
C. SINT_MIN
D. SHORT_MIN
Answer» C. SINT_MIN
10.

The macro MB_LEN_MAX is used to find _________

A. Maximum number of bytes in a multi-byte character
B. Whether the given function is valid or not
C. The maximum time taken for the execution of a particular function
D. Maximum number of bits in a multi-byte character
Answer» D. Maximum number of bits in a multi-byte character
11.

Minimum negative value of float

A. Maximum positive value of float
B. Error
C. Minimum positive value of float
Answer» D.
12.

The macro __________ defines the number of bits in a byte, which is equal to _______

A. CHAR_BIT, 4
B. CHAR_BYTE, 8
C. CHAR_BIT, 8
D. CHAR_BYTE, 4
Answer» D. CHAR_BYTE, 4
13.

-2147483648 (The minimum value of LONG)

A. 0.000000
B. 0
C. error
Answer» D.
14.

Which of the following macros is not defined?

A. ULONG_MIN
B. LONG_MIN
C. ULONG_MAX
D. LONG_MAX
Answer» E.