Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

14. Relational expressions evaluate to 0 or 1? A) True B) False 15. In a while l

ID: 3637995 • Letter: 1

Question

14. Relational expressions evaluate to 0 or 1?
A) True
B) False
15. In a while loop, the initialization, condition, and increment are all in the header?
A) True
B) False
16. Which kind of loop is best if the body of the loop must execute at least one time?
A) for
B) while
C) nested-iterative
D) do-while
17. What will be the value of y after the following loop is run?

int x;

int y=10;

for(x=0; x<10;x++) {

--y;

}

A) 0
B) 1
C) 10
D) -1
18. What will be the value of k after the following loop is run?

int i, j, k=0;

for (i=0; i<10;i++)

for(j=0;j<10;j++)

k++;

A) 10
B) 100
C) 1000
D) 99
19. A for loop can count by 10?
A) True
B) False
20. Structures can at most be nest 3 deep?
A) True
B) False

Explanation / Answer

14: A 15: B 16: D 17: A 18: B 19: A 20: B

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at drjack9650@gmail.com
Chat Now And Get Quote