Exam 4: Dowhile Control Structurecounter-Controlled Loops

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

To create a properly formed DOWHILE loop you must

(Multiple Choice)
4.7/5
(40)

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

(True/False)
4.8/5
(39)

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

(True/False)
4.7/5
(29)

If the value input for START is 8,how many times will the instructions within the loop below be executed? Read START COUNT == START DOWHILE COUNT \geq START COUNT == COUNT - 1 Write COUNT ENDDO

(Multiple Choice)
4.8/5
(28)

The test for the No-Data condition is implemented in program design with a(n)

(Multiple Choice)
4.9/5
(39)

What is the value of ANSWER after the instructions corresponding to the following pseudocode are executed? COUNT =5 SUM =100 DOWHILE COUNT >5 SUM = SUM +5 COUNT = COUNT +1 ENDDO ANSWER = SUM

(Multiple Choice)
4.9/5
(41)

If the value input for START is 8,how many times will the instructions within the loop below be executed? Read START COUNT == START DOWHILE COUNT \leq START COUNT == COUNT - 1 Write COUNT ENDDO

(Multiple Choice)
4.7/5
(33)

How many values will be output when the instructions corresponding to the following pseudocode are executed? ACCUM=1\mathrm { ACCUM } = 1 COUNT =0= 0 DOWHILE COUNT <4< 4 ACCUM=ACCUM+ACCUMA C C U M = A C C U M + A C C U M COUNT == COUNT + 1 Write ACCUM ENDDO\mathrm { ENDDO } Write ACCUM

(Multiple Choice)
4.8/5
(44)

A counter used to control a loop can be either incremented or decremented.

(True/False)
4.8/5
(41)

A READ statement used to input a header record must be placed within the loop that a value in the header record is controlling.

(True/False)
4.8/5
(38)
Showing 21 - 30 of 30
close modal

Filters

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