| | | | MCQ Tutorial - C->C Basics | | | | 6.) Which of the following is not a valid variable name declaration? | | Options are: | | A.) int a3_;
| | B.) int _a3;
| | C.) int a_3;
| | D.) int 3_a;
| | Correct Option: D | | | | | | | 7.) C99 standard guarantess uniqueness of _____ characters for external names | | Options are: | | A.) 30
| | B.) 32
| | C.) 29
| | D.) 31
| | Correct Option: D | | | | | | | 8.) C99 standard guarantees uniqueness of ____ characters for internal names | | Options are: | | A.) 31
| | B.) 63
| | C.) 64
| | D.) 32
| | Correct Option: B | | | | | | | 9.) What is the out put of following C code:
#include int main() { int a[5] = {1, 2, 3, 4, 5}; int i; for (i = 0; i < 5; i++) if ((char)a[i] == '5') printf("%d ", a[i]); else printf("FAIL "); } | | Options are: | | A.) Program will compile and print the output 5
| | B.) Program will compile and print the ASCII value of 5
| | C.) The compiler will flag an error
| | D.) Program will compile and print FAIL for 5 times
| | Correct Option: A | | | | | | | 10.) The format identifier '%i' is also used for _____ data type? | | Options are: | | A.) double
| | B.) float
| | C.) int
| | D.) char
| | Correct Option: C | | | | | | | | | | | |