Programming Logic and Design Quiz
05 Q&A
The Sentinel value will check the loop condition.
T/F - ANSWER-True
The DO LOOP WHILE is a post-test loop and exits BEFORE going through the loop.
T/F - ANSWER-False
A loop can be classed as a pre-test or a post-test.
T/F - ANSWER-True
Every loop has a sentinel.
T/F - ANSWER-True
What symbol do we use in a flowchart for looping?
Select one:
a. Input
b. Process
c. Data
d. Decision - ANSWER-d. Decision
What kind of loop is the following loop?
>DO
>Input salary
>Valid statement
>LOOP UNTIL salary = 10000
Select one:
a. DO LOOP UNTIL
b. DO LOOP WHILE
c. DO UNTIL LOOP
d. DO WHILE LOOP - ANSWER-a. DO LOOP UNTIL
ALL loop conditions have to be FALSE to exit the loops.
T/F - ANSWER-False
The purpose of using a loop is to allow a user to process more than one record at a
time.
T/F - ANSWER-True
We cannot have a loop inside another loop.
T/F - ANSWER-False
05 Q&A
The Sentinel value will check the loop condition.
T/F - ANSWER-True
The DO LOOP WHILE is a post-test loop and exits BEFORE going through the loop.
T/F - ANSWER-False
A loop can be classed as a pre-test or a post-test.
T/F - ANSWER-True
Every loop has a sentinel.
T/F - ANSWER-True
What symbol do we use in a flowchart for looping?
Select one:
a. Input
b. Process
c. Data
d. Decision - ANSWER-d. Decision
What kind of loop is the following loop?
>DO
>Input salary
>Valid statement
>LOOP UNTIL salary = 10000
Select one:
a. DO LOOP UNTIL
b. DO LOOP WHILE
c. DO UNTIL LOOP
d. DO WHILE LOOP - ANSWER-a. DO LOOP UNTIL
ALL loop conditions have to be FALSE to exit the loops.
T/F - ANSWER-False
The purpose of using a loop is to allow a user to process more than one record at a
time.
T/F - ANSWER-True
We cannot have a loop inside another loop.
T/F - ANSWER-False