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

PS: PLEASE IF YOU DON\'T KNOW , DON\'T ANSWER OR LEAVE IT BLANK 1. Each repetiti

ID: 3651587 • Letter: P

Question

PS: PLEASE IF YOU DON'T KNOW , DON'T ANSWER OR LEAVE IT BLANK

1.
Each repetition in a loop is referred to as a(n) ____.
A) iteration
B) selection
C) statement
D) condition
2.
Once a repetition statement is chosen, the other ____ elements of a loop are generally controlled by a single loop-control variable.
A) two
B) three
C) four
D) five
3.
In a(n) ____ loop the condition is tested at the end of the repeating section of code.
A) pretest
B) posttest
C) fixed-count
D) condition-controlled
4.
A(n) ____ is a condition-controlled loop where one specific value is required to terminate the loop.
A) input-validation
B) sentinel-controlled
C) condition-controlled
D) counter-controlled
5.
In the following statements, the printf statement will be executed ____ times.

count = 10;
while (count <= 10)
printf("%d ",count);
A) 0
B) 1
C) 10
D) an infinite number of
6.
total = total + num; is equivalent to ____.
A) total += num;
B) total =+ num;
C) total ++ num;
D) total +=+ num;
7.
Before accumulating values, the accumulator variable should be initialized to ____.
A) -1
B) 0
C) 1
D) NULL
8.
The ____ statement is similar to the break statement but applies only to loops created with while, do-while, and for statements.
A) stop
B) loop
C) exit
D) continue
9.
The ____ semicolons must always be present within the for statement

Explanation / Answer

D) condition

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Chat Now And Get Quote