Menu

L Single Choice Questions 2 10 20 1 Following Variable Name Correct C Language Welcometo Q43819734

L. Single Choice Questions (2-10-20%) 1. Which of the following variable name is not correct in C language? A. welcome_to C.L. Single Choice Questions (2-10-20%) 1. Which of the following variable name is not correct in C language? A. welcome_to C. welcome2to B. welcome to D. welcomto 2. Which of the following statement is correct for reading data from a file? A. scanf(file1,“%d”,&a); C. fscanf(file1,“%d”,&a); 3. What is the result of the following statement: printf(“whereb is”) A. whereb is B. fscanf(file 1,“%d”,a); D. scanf(file1,”%d”,a); B. wher is D. none of above C. whereb is ( ) 4. What is the result of the following statement: printf(“%.3f”, 6.72); B. 6.72 A. 6.720 D. 6.00 C. 6.7. 5. How to print a character “a”? ( ) A. getche(a) C. getchar(a) 6. Which of the following statement is not correct for initializing an array? A. double record[5]={1,20,31}; B. putchar(‘a’) D. none of above ( B. float a5[]={11,22,33 }; D. int a={33,67,93}; ) C. int aa[1+1]={12,22}; 7. What is the scope of the variable if it is active only within the function in which it was defined A. file scope B. function scope 8. int i=2, score[] = {1,2,3,4,5}, what is the value of the a[i++]++? ( C. prototype scope D. block scope %3D A. 4 B. 5 C. 3 D. 6 Page L Show transcribed image text L. Single Choice Questions (2-10-20%) 1. Which of the following variable name is not correct in C language? A. welcome_to C. welcome2to B. welcome to D. welcomto 2. Which of the following statement is correct for reading data from a file? A. scanf(file1,“%d”,&a); C. fscanf(file1,“%d”,&a); 3. What is the result of the following statement: printf(“whereb is”) A. whereb is B. fscanf(file 1,“%d”,a); D. scanf(file1,”%d”,a); B. wher is D. none of above C. whereb is ( ) 4. What is the result of the following statement: printf(“%.3f”, 6.72); B. 6.72 A. 6.720 D. 6.00 C. 6.7. 5. How to print a character “a”? ( ) A. getche(a) C. getchar(a) 6. Which of the following statement is not correct for initializing an array? A. double record[5]={1,20,31}; B. putchar(‘a’) D. none of above ( B. float a5[]={11,22,33 }; D. int a={33,67,93}; ) C. int aa[1+1]={12,22}; 7. What is the scope of the variable if it is active only within the function in which it was defined A. file scope B. function scope 8. int i=2, score[] = {1,2,3,4,5}, what is the value of the a[i++]++? ( C. prototype scope D. block scope %3D A. 4 B. 5 C. 3 D. 6 Page L

Expert Answer


Answer to L. Single Choice Questions (2-10-20%) 1. Which of the following variable name is not correct in C language? A. welcome_t…

OR