Question 9.
(b) Equal
Question 10.
(c) Answer is 27
Question
11.
(b) 11
Question
12.
(d)
The code doesn't compile since the scope of i is limited to the for loop.
The answer would
have been
i
+ k = 8
if i had been declared outside the loop.
Question
13.
(c)
for(int i=2; i==1; i++){do something...}
Question
14.
(d) for(int i=2;
i!=1; i++){
Question
15.
(a)
for(int i=1; i<=10; i++){
|