Exam 8: Dountil Control Structure

arrow
  • Select Tags
search iconSearch Question
  • Select Tags

In a trailing-decision program loop,the test for the loop terminating condition is not made until the other processing steps in the loop have been executed.

Free
(True/False)
4.9/5
(31)
Correct Answer:
Verified

True

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

Free
(Multiple Choice)
4.9/5
(30)
Correct Answer:
Verified

C

If condition q is NUM ≠ VALUE,what is condition not q?

Free
(Multiple Choice)
4.9/5
(39)
Correct Answer:
Verified

C

If condition q is NUM < VALUE,what is condition not q?

(Multiple Choice)
4.8/5
(35)

A DOWHILE loop is composed of a combination of the SIMPLE SEQUENCE control structure and the DOUNTIL control structure.

(True/False)
4.9/5
(37)

In header record logic the DOUNTIL loop is not controlled by a counter as it is with a DOWHILE loop.

(True/False)
4.9/5
(44)

What is the value of ANSWER after the instructions corresponding to the following pseudocode are executed? COUNT =1 SUM =3 DOUNTIL COUNT \leq1 SUM = SUM + COUNT COUNT = COUNT -1 ENDDO ANSWER = SUM

(Multiple Choice)
4.9/5
(36)

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)
4.8/5
(35)

What is the value of ANSWER after the instructions corresponding to the following pseudocode are executed? COUNT=0\mathrm { COUNT } = 0 SUM=100\mathrm { SUM } = 100 DOUNTIL COUNT 5\geq 5 SUM=SUM+5\mathrm { SUM } = \mathrm { SUM } + 5 COUNT == COUNT + 1 ENDDO ANSWER =SUM= \mathrm { SUM }

(Multiple Choice)
4.9/5
(31)

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 \leq START COUNT == COUNT + 1 Write COUNT ENDDO

(Multiple Choice)
4.8/5
(37)

How many values will be output when the instructions corresponding to the following pseudocode are executed? ACCUM=1\mathrm { ACCUM } = 1 COUNT=0\mathrm { COUNT } = 0 DOUNTIL COUNT >4> 4 ACCUM=ACCUM+ACCUM\mathrm { ACCUM } = \mathrm { ACCUM } + \mathrm { ACCUM } COUNT == COUNT + 1 Write ACCUM ENDDO

(Multiple Choice)
4.9/5
(36)

A DOWHILE loop is more flexible than a DOUNTIL loop.

(True/False)
4.9/5
(37)

A connector symbol must be placed at the entry point of a DOUNTIL loop just as it is placed at the entry point of a DOWHILE loop.

(True/False)
4.9/5
(33)

The READ statement used to input the header record must be placed before the DOUNTIL loop test.

(True/False)
4.9/5
(34)

What is the value of ANSWER after the instructions corresponding to the following pseudocode are executed? COUNT=2\mathrm { COUNT } = 2 SUM =100= 100 DOUNTIL COUNT >5> 5 SUM=SUM+5\mathrm { SUM } = \mathrm { SUM } + 5 COUNT == COUNT + 1 ENDDO ANSWER == SUM

(Multiple Choice)
4.9/5
(41)

The steps within a DOUNTIL loop are always placed on the line after DOUNTIL and are indented a few positions for clarity.

(True/False)
4.8/5
(36)

If condition q is NUM ≤ VALUE,what is condition not q?

(Multiple Choice)
4.9/5
(43)

A DOUNTIL loop is exited when the tested condition is true.

(True/False)
4.9/5
(37)

To create a properly formed DOUNTIL loop on a program flowchart you must place the loop test after all the steps within the loop.

(True/False)
4.8/5
(33)

To create a properly formed DOUNTIL loop you must place the loop steps in the YES path of the loop.

(True/False)
4.8/5
(42)
Showing 1 - 20 of 30
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)