Ready to test your Knowledge?
Try out our new practice tests completely free!
exam preparation banner icon

Tools for Structured

Computing

Quiz 8 :

Dountil Control Structure

Quiz 8 :

Dountil Control Structure

search
arrow
If condition q is NUM < VALUE,what is condition not q?
Free
Multiple Choice
Answer:

Answer:

D

arrow
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
Answer:

Answer:

B

arrow
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
Answer:

Answer:

B

arrow
A DOWHILE loop is more flexible than a DOUNTIL loop.
True False
Answer:
arrow
If condition q is NUM ≤ VALUE,what is condition not q?
Multiple Choice
Answer:
arrow
A DOWHILE loop is composed of a combination of the SIMPLE SEQUENCE control structure and the DOUNTIL control structure.
True False
Answer:
arrow
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
Answer:
arrow
To create a properly formed DOUNTIL loop you must
Multiple Choice
Answer:
arrow
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
Answer:
arrow
When a DOUNTIL loop is encountered during processing,the steps in the DOUNTIL loop must be executed at least once.
True False
Answer:
arrow
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
Answer:
arrow
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
Answer:
arrow
In a DOUNTIL loop the priming read is placed at the beginning of the loop steps.
True False
Answer:
arrow
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
Answer:
arrow
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
Answer:
arrow
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
Answer:
arrow
What type of loop is always executed a predetermined number of times?
Multiple Choice
Answer:
arrow
Which of the following is not one of the basic control structures?
Multiple Choice
Answer:
arrow
A DOUNTIL loop is a leading-decision program loop.
True False
Answer:
arrow
If condition q is NUM ≠ VALUE,what is condition not q?
Multiple Choice
Answer:
Showing 1 - 20 of 30