Try out our new practice tests completely free!

# Tools for Structured

Computing

Bookmark

## Quiz 8 : Dountil Control Structure

If condition q is NUM < VALUE,what is condition not q?
Free
Multiple Choice

D

What is the value of the variable ACCUM after instructions corresponding to the following pseudocode are executed? ACCUM = 1 COUNT = 0 DOUNTIL COUNT ≥ 4 ACCUM = ACCUM + ACCUM COUNT = COUNT + 1 ENDDO
Free
Multiple Choice

B

If the value input for START is 8,how many times will the loop steps in instructions corresponding to the following pseudocode be executed? Read START COUNT = START DOUNTIL COUNT < START COUNT = COUNT - 1 Write COUNT ENDDO
Free
Multiple Choice

B

A DOWHILE loop is more flexible than a DOUNTIL loop.
True False
If condition q is NUM ≤ VALUE,what is condition not q?
Multiple Choice
A DOWHILE loop is composed of a combination of the SIMPLE SEQUENCE control structure and the DOUNTIL control structure.
True False
If the value input for START is 8,how many times will the loop steps in the instructions corresponding to the following pseudocode be executed? Read START COUNT = START DOUNTIL COUNT ≥ START COUNT = COUNT - 1 Write COUNT ENDDO
Multiple Choice
To create a properly formed DOUNTIL loop you must
Multiple Choice
What is the value of ANSWER after the instructions corresponding to the following pseudocode are executed? COUNT = 1 SUM = 3 DOUNTIL COUNT ≤ 1 SUM = SUM + COUNT COUNT = COUNT - 1 ENDDO ANSWER = SUM
Multiple Choice
When a DOUNTIL loop is encountered during processing,the steps in the DOUNTIL loop must be executed at least once.
True False
What is the value of ANSWER after the instructions corresponding to the following pseudocode are executed? COUNT = 0 SUM = 100 DOUNTIL COUNT ≥ 5 SUM = SUM + 5 COUNT = COUNT +1 ENDDO ANSWER = SUM
Multiple Choice
If the value input for START is 8,how many times will the loop steps in instructions corresponding to the following pseudocode be executed? Read START COUNT = START DOUNTIL COUNT ≤ START COUNT = COUNT + 1 Write COUNT ENDDO
Multiple Choice
In a DOUNTIL loop the priming read is placed at the beginning of the loop steps.
True False
How many values will be output when the instructions corresponding to the following pseudocode are executed? ACCUM = 1 COUNT = 0 DOUNTIL COUNT > 4 ACCUM = ACCUM + ACCUM COUNT = COUNT + 1 Write ACCUM ENDDO
Multiple Choice
What is the value of ANSWER after the instructions corresponding to the following pseudocode are executed? COUNT = 5 SUM = 100 DOUNTIL COUNT < 5 SUM = SUM + 5 COUNT = COUNT - 1 ENDDO ANSWER = SUM
Multiple Choice
What is the value of ANSWER after the instructions corresponding to the following pseudocode are executed? COUNT = 2 SUM = 100 DOUNTIL COUNT > 5 SUM = SUM + 5 COUNT = COUNT +1 ENDDO ANSWER = SUM
Multiple Choice