Question: 4. The correct description of the for loop below is (). A. The for loop can only be used when the number of cycles has

 4. The correct description of the for loop below is ().

4. The correct description of the for loop below is (). A. The for loop can only be used when the number of cycles has been determined B. The for loop executes the loop bodystatement first, and then judges the expression C. Using break and continue statements in the loop body has the same effect D. The loop style sentence of the for loop can conta in multiple statements, but must be enclosed by curly brackets {} 5. Defined inti:char x[7];". To assign a value to the X array, the following correct statement is (). A. x[6]="Hello!"; B. x="Hello!"; C. X[0]="Hello!"; D. strcpy(x, "Hello!"); 6. If so stated: int a[][3]={1.2.3.4.5.6.7.8); Then the first dimension size of array A is A. 2 B 3 C. 4 D. No definite valve 7. The following incorrect string constants are(): A. " B. "12'12" C. "000" D."000" 8. The following statements that enable correct input of the character arraystr are( A. scanf("%c",str); B. scanf("%s",str[0]); C. scanf("%s",str); D. for(i=0;Ksizeof(str); i++)scanf("%c",str[i]); 9. If the variables a and i have been correctly defined and i has been correctly assigned, the legal statement is (). A. a+==1; B. Hii C. a=a++=5; D. doi: 10. In C language, the storage form of int integer data in memory is (). A. Complement B. Inverse code C. IEEE R32.24 D. Original code 11. Let the following variables be of type int, and which is the expression whose value is not 7 ). A. (x=y=6 x+y.x+1) B. (x=y=6,x+y;y+1) C. (x=6_x+1, y=6,++x+1) D. (y=6,1+y.x=yx+1) 12. Let int 2=2,6=3.c; Then the value of the expression ++a-b&&b+c| a+b>c&&b=c&&ais (). A. 3 B. 6 C. O D. 1 13. There is the following program, and its output result is) : int maino { int a=2,b=-1,c=++a

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!