Exam 8: Dountil Control Structure
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
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:
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:
C
If condition q is NUM ≠ VALUE,what is condition not q?
Free
(Multiple Choice)
4.9/5
(39)
Correct Answer:
C
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?
DOUNTIL COUNT
COUNT COUNT + 1
ENDDO
ANSWER
(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 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?
DOUNTIL COUNT
COUNT COUNT + 1
Write ACCUM
ENDDO
(Multiple Choice)
4.9/5
(36)
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?
SUM
DOUNTIL COUNT
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)
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
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)