| | | | MCQ Tutorial - C->C Basics | | | | 1.) Which of the following is not a valid C variable name? | | Options are: | | A.) float rate;
| | B.) int $main;
| | C.) int variable_count;
| | D.) int number;
| | Correct Option: B | | | | | | | 2.) Variable name resolving (number of significant characters for uniqueness of variable) depends on | | Options are: | | A.) Machine architecture
| | B.) Assemblers and loaders implementations
| | C.) C language
| | D.) Compiler and linker implementations
| | Correct Option: D | | | | | | | 3.) Which of the following is true for variable names in C? | | Options are: | | A.) Variable can be of any length
| | B.) Variable names cannot start with a digit
| | C.) They can contain alphanumeric characters as well as special characters
| | D.) It is not an error to declare a variable to be one of the keywords (like goto, static)
| | Correct Option: C | | | | | | | 4.) Variable names beginning with underscore is not encouraged. Why? | | Options are: | | A.) It is not standardized
| | B.) To avoid conflicts since library routines use such names
| | C.) To avoid conflicts with environment variables of an operating system
| | D.) To avoid conflicts since assemblers and loaders use such names
| | Correct Option: B | | | | | | | 5.) All keywords in C are in | | Options are: | | A.) AnyCase letters
| | B.) CamelCase letters
| | C.) LowerCase letters
| | D.) UpperCase letters
| | Correct Option: C | | | | | | | | | | | |