Exam 4: Dowhile Control Structurecounter-Controlled Loops

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

A program that can be viewed as a single statement is called a

Free
(Multiple Choice)
4.8/5
(42)
Correct Answer:
Verified

B

To create a properly formed DOWHILE loop you must place the loop test after all other steps within the loop.

Free
(True/False)
4.8/5
(37)
Correct Answer:
Verified

False

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

Free
(Multiple Choice)
4.8/5
(33)
Correct Answer:
Verified

A

A connector symbol must be placed at the exit point of a DOWHILE loop just as it is placed at the exit point of an IFTHENELSE control structure.

(True/False)
4.9/5
(31)

Any solution algorithm can be expressed using one or more of the three basic control structures.

(True/False)
5.0/5
(35)

A sequence of processing steps that must be repeated is called a

(Multiple Choice)
4.8/5
(42)

In a counter-controlled loop,the value of the counter must be changed by some statement within the loop..

(True/False)
4.8/5
(31)

A counter-controlled loop is more flexible than a loop controlled by a header record value.

(True/False)
5.0/5
(40)

When header record logic is used in loop processing,the loop is controlled by a counter.

(True/False)
4.8/5
(37)

What type of loop is executed a predetermined number of times?

(Multiple Choice)
4.7/5
(40)

The loop steps are placed between the DOWHILE statement and the ENDDO statement and are not indented.

(True/False)
4.8/5
(44)

An accumulator always adds or accumulates by a constant amount.

(True/False)
4.8/5
(35)

Which program flowcharting symbol can be used to represent an initialization step in a program flowchart?

(Multiple Choice)
4.9/5
(40)

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

(Multiple Choice)
4.9/5
(33)

A partial sum cannot have the same value as the corresponding total sum.

(True/False)
4.7/5
(41)

A DOWHILE loop is a leading-decision program loop.

(True/False)
4.8/5
(40)

A variable that is used to hold the sum of a group of values is called a(n)

(Multiple Choice)
4.9/5
(45)

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

(Multiple Choice)
4.8/5
(37)

What is the value of the variable ACCUM after the instructions corresponding to the following pseudocode are executed? ACCUM=1\mathrm { ACCUM } = 1 COUNT =0= 0 DOWHILE COUNT4C O U N T \leq 4 ACCUM=ACCUM+ACCUM\mathrm { ACCUM } = \mathrm { ACCUM } + \mathrm { ACCUM } COUNT=COUNT+1\mathrm { COUNT } = \mathrm { COUNT } + 1 ENDDO

(Multiple Choice)
4.9/5
(29)

A preparation symbol should be used in a program flowchart to initialize a counter prior to entering a loop.

(True/False)
4.9/5
(34)
Showing 1 - 20 of 30
close modal

Filters

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