How many times will the following loop execute?
int j; for(j = 1; j <= 10; j = j-1) printf("INFOMAX");
Forever
Never
0
10
break stops the loop, continue skips the rest of the iteration
Both stop the loop
break skips to the next iteration, continue exits the loop
Both skip to the next iteration
It breaks out of both loops.
It only breaks out of the innermost loop.
It causes a compile-time error.
It stops the program.
What will the following code print?
int x = 5; if (x = 0) printf("Zero"); else printf("Not zero");
Zero
Not zero
Compilation error
Error
Program will terminate with an error
Undefined behavior
Array index will wrap around
1
2
3
Undefined
Nested structure
Recursive structure
Union structure
Inline structure
arr[2]
arr(2)
arr[3]
arr[1]