

MCQOPTIONS
Saved Bookmarks
This section includes 7 Mcqs, each offering curated multiple-choice questions to sharpen your C Programming knowledge and support exam preparation. Choose a topic below to get started.
1. |
Which of the following is true for variable names in C? |
A. | They can contain alphanumeric characters as well as special characters |
B. | It is not an error to declare a variable to be one of the keywords(like goto, static) |
C. | Variable names cannot start with a digit |
D. | Variable can be of any length |
Answer» D. Variable can be of any length | |
2. |
Which of the following is not a valid C variable name? |
A. | int number; |
B. | float rate; |
C. | int variable_count; |
D. | int $main; |
Answer» E. | |
3. |
Variable name resolution (number of significant characters for the uniqueness of variable) depends on ___________ |
A. | Compiler and linker implementations |
B. | Assemblers and loaders implementations |
C. | C language |
D. | None of the mentioned |
E. | depends on ___________a) Compiler and linker implementationsb) Assemblers and loaders implementationsc) C languaged) None of the mentioned |
Answer» B. Assemblers and loaders implementations | |
4. |
All keywords in C are in ____________ |
A. | LowerCase letters |
B. | UpperCase letters |
C. | CamelCase letters |
D. | None of the mentioned |
Answer» B. UpperCase letters | |
5. |
Why do variable names beginning with the underscore is not encouraged? |
A. | It is not standardized |
B. | To avoid conflicts since assemblers and loaders use such names |
C. | To avoid conflicts since library routines use such names |
D. | To avoid conflicts with environment variables of an operating system |
Answer» D. To avoid conflicts with environment variables of an operating system | |
6. |
C99 standard guarantees uniqueness of ___________ characters for external names. |
A. | 31 |
B. | 6 |
C. | 12 |
D. | 14 |
Answer» B. 6 | |
7. |
C99 standard guarantees uniqueness of __________ characters for internal names. |
A. | 31 |
B. | 63 |
C. | 12 |
D. | 14 |
Answer» C. 12 | |