

MCQOPTIONS
Saved Bookmarks
This section includes 15 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. |
Which among the following option is the full set of character class Hexadecimal digits? |
A. | { 0 1 2 3 4 5 6 7 8 9 A B C D E F } |
B. | { 0 1 2 3 4 5 6 7 8 9 a b c d e f } |
C. | { 0 1 2 3 4 5 6 7 8 9 A B C D E F a b c d e f } |
D. | { 0 1 2 3 4 5 6 7 8 9} |
Answer» D. { 0 1 2 3 4 5 6 7 8 9} | |
2. |
The toupper() function converts a ______ to the corresponding ______ |
A. | uppercase, lowercase |
B. | lowercase, uppercase |
C. | binary, decimal |
D. | decimal, binary |
Answer» C. binary, decimal | |
3. |
THE_STANDARD_WHITE-SPACE_CHARACTERS_ARE_THE_FOLLOWING:_SPACE_('_'_),_FORM_FEED_('_\_F_'_),?$ |
A. | , horizontal tab (' \tr), and vertlcal tab (' \v' ) can be tested with function. |
B. | ispunct() |
C. | isalpha() |
D. | isgraph() |
Answer» E. | |
4. |
WHICH_AMONG_THE_FOLLOWING_OPTION_IS_THE_FULL_SET_OF_CHARACTER_CLASS_HEXADECIMAL_DIGITS??$ |
A. | { 0 1 2 3 4 5 6 7 8 9 A B C D E F } |
B. | { 0 1 2 3 4 5 6 7 8 9 a b c d e f } |
C. | { 0 1 2 3 4 5 6 7 8 9 A B C D E F a b c d e f } |
D. | { 0 1 2 3 4 5 6 7 8 9} |
Answer» E. | |
5. |
This function checks whether the passed character is white-space? |
A. | ispunct() |
B. | isgraph() |
C. | isspace() |
D. | isalpha() |
Answer» E. | |
6. |
ch = 0xC is hexadecimal characte? |
A. | ch = 0xC is not hexadecimal character |
B. | compile error |
C. | run-time error |
Answer» D. | |
7. |
Which function returns true only for the characters defined as lowercase letters? |
A. | islow() |
B. | islower() |
C. | isalpa() |
D. | isalnum() |
Answer» E. | |
8. |
The C library function checks whether the passed character is printable. |
A. | isgraph() |
B. | isalpha() |
C. | isprint() |
D. | ispunct() |
Answer» B. isalpha() | |
9. |
tests for only space character |
A. | tests for only digit |
B. | tests for only lower case |
C. | tests for any printing character |
Answer» C. tests for any printing character | |
10. |
ch = ‘ ‘ can be printed$ |
A. | ch = ‘ ‘ cannot be printed |
B. | compile error |
C. | run-time error |
Answer» D. | |
11. |
isalpha() function is used to detect characters both in uppercase and lowercase. |
A. | true |
B. | false |
Answer» B. false | |
12. |
fgetc, getc, getchar are all declared in ________ |
A. | stdio. h |
B. | ctype. h |
C. | assert. h |
D. | stdarg. h |
Answer» B. ctype. h | |
13. |
The______function tests for any character for which isalpha or isdigit is true. |
A. | isxdigit() |
B. | isspace() |
C. | isalnum() |
D. | isupper() |
Answer» D. isupper() | |
14. |
The toupper() function converts a______to the corresponding______ |
A. | uppercase, lowercase |
B. | lowercase, uppercase |
C. | binary, decimal |
D. | decimal, binary |
Answer» C. binary, decimal | |
15. |
The________function converts an uppercase letter to the corresponding lowercase letter. |
A. | islower() |
B. | isupper() |
C. | toupper() |
D. | tolower() |
Answer» E. | |