Actual Exam Questions With Reviewed
100% Correct Detailed Answers
Guaranteed Pass!!
Case 1
You have just starting working at Quantum Company. As a new programmer, you
have been asked to review and correct various pseudocode.
The following pseudocode is not working properly. The message should display 10
times. What needs to be changed?
for count = 0 to 10
output "I love programming!"
endfor - ANSWER The for statement should be:
for count = 0 to 9 step 1
When one loop is nested within another, the loop that is contained is the ____
loop. - ANSWER Inner
Program logic gets more complicated when you must use loops within loops,
creating ____ loops. - ANSWER Nested
,The decision that controls every loop is always based on a ____ expression. -
ANSWER Boolean
A(n) ____ is a variable that you use to gather or accumulate values. - ANSWER
Accumulator
The ____ statement uses a loop control variable and provides you with three
actions automatically in one compact statement: initialization, evaluation and
incrementation. - ANSWER For
When a loop control variable is numeric, its value is often altered by ____ it, or
adding to it. - ANSWER Incrementing
Business reports that list no individual detail records, just totals, are called ____
reports. - ANSWER Summary
When one loop is nested within another, the containing loop is the ____ loop. -
ANSWER Outer
As long as a Boolean expression remains true, a ____ loop's body executes. -
ANSWER While
You can use any of the ____ comparison operators to control a loop. - ANSWER
Six
,Often, the value of a loop control variable is not altered by arithmetic, but instead
is altered by ____. - ANSWER User Input
The ____ is the location on your computer screen at which you type entries to
communicate with the computer's operating system using text. - ANSWER
Command Prompt
Case 1
You have just starting working at Quantum Company. As a new programmer, you
have been asked to review and correct various pseudocode.
In the following pseudocode, what will be the value of sum after the code is run?
Declarations
num count = 0
num sum = 0
while count < 3
for X = 1 to 2 step 1
sum = sum + X
endfor
count = count + 1
endwhile - ANSWER 9
Case 1
, You have just starting working at Quantum Company. As a new programmer, you
have been asked to review and correct various pseudocode.
The following pseudocode is not working properly. The message should display 10
times. This is not working because the programmer made which common loop
mistake?
for count = 1 to 10
output "Hello"
endfor - ANSWER Neglecting to alter the loop control variable
Which of the following is NOT a mistake that programmers commonly make with
loops? - ANSWER Including statements outside the loop that belong inside
the loop
Case 1
You have just starting working at Quantum Company. As a new programmer, you
have been asked to review and correct various pseudocode.
The following pseudocode is not working properly. The message should display
five times. What needs to be changed?
Declarations
string message = "OK"
while count < 5