Exam 4: Dowhile Control Structurecounter-Controlled Loops
Exam 1: Introduction to Structured Design30 Questions
Exam 2: Simple Sequence Control Structure30 Questions
Exam 3: Ifthenelse Control Structure30 Questions
Exam 4: Dowhile Control Structurecounter-Controlled Loops30 Questions
Exam 5: Dowhile Control Structuretrailer Record Logic30 Questions
Exam 6: Modularization30 Questions
Exam 7: Case Control Structure30 Questions
Exam 8: Dountil Control Structure30 Questions
Exam 9: Introduction to Arrays30 Questions
Exam 10: Introduction to Object-Oriented Design30 Questions
Exam 11: Inheritance30 Questions
Exam 12: Other Class and Object Relationships30 Questions
Exam 13: Array Applications30 Questions
Exam 14: Master File Update Processing30 Questions
Exam 15: Control-Break Processing30 Questions
Select questions type
A program that can be viewed as a single statement is called a
Free
(Multiple Choice)
4.8/5
(42)
Correct Answer:
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:
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:
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)
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 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?
DOWHILE COUNT
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?
COUNT
DOWHILE
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
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)