Exam 5: Dowhile Control Structuretrailer Record Logic
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
If you are using the automatic end-of-file facility,you need to include a special record at the end of the input denoting that there is no more data to process.
Free
(True/False)
4.9/5
(31)
Correct Answer:
False
How many times will the loop steps in the instructions corresponding to the following pseudocode be executed,assuming 5 values - 5,6,7,3,0 - are input,one on each record?
Read SCORE
DOWHILE SCORE
Write SCORE
ENDDO
Free
(Multiple Choice)
4.9/5
(32)
Correct Answer:
D
A heading line serves as a title to a report that is output.
Free
(True/False)
4.9/5
(42)
Correct Answer:
True
A line that outputs the average grade for each student can be considered in some cases,both a detail line and a total line.
(True/False)
4.8/5
(38)
What value of COUNT will be output after the instructions corresponding to the following pseudocode are executed,assuming 7 values - 5,6,7,3,0,4,2 - are input,one on each record?
COUNT =0 SUM =0 VALUE =1 DOWHILE VALUE >0 Write Value SUM = SUM + VALUE COUNT = COUNT +1 Read VALUE ENDDO Write SUM, COUNT
(Multiple Choice)
4.8/5
(32)
The loop read in a loop controlled using trailer record logic is usually placed as the last step in the loop.
(True/False)
5.0/5
(45)
A trailer record must contain special information that differentiates it from the rest of the input.
(True/False)
4.9/5
(36)
What value of COUNT will be output after the instructions corresponding to the following pseudocode are executed,assuming 7 values - 5,6,7,3,0,4,2 - are input,one on each record?
COUNT =0 SUM =0 VALUE =1 Read VALUE DOWHILE VALUE >0 Write Value SUM = SUM + VALUE COUNT = COUNT +1 Read VALUE ENDDO Write SUM, COUNT
(Multiple Choice)
4.8/5
(36)
How many times will the loop steps in the instructions corresponding to the following pseudocode be executed,assuming 5 values - 0,6,7,3,0 - are input,one on each record?
DOWHILE SCORE
Read SCORE Write SCORE
ENDDO
(Multiple Choice)
4.7/5
(37)
A variable whose value does not change during program execution is called a
(Multiple Choice)
4.9/5
(39)
The automatic end-of-file facility is implemented differently in different programming languages.
(True/False)
4.9/5
(34)
Where is the write statement for a total line generally placed?
(Multiple Choice)
4.8/5
(33)
How many times will the loop steps in the instructions corresponding to the following pseudocode be executed,assuming 5 values - 5,6,7,3,0 - are input,one on each record?
Read SCORE
DOWHILE SCORE
Read SCORE
Write SCORE
ENDDO
(Multiple Choice)
5.0/5
(26)
How many times will the loop steps in the instructions corresponding to the following pseudocode be executed,assuming 5 values - 5,6,7,3,0 - are input,one on each record?
Read SCORE
DOWHILE SCORE
Write SCORE
Read SCORE
ENDDO
(Multiple Choice)
5.0/5
(37)
Showing 1 - 20 of 30
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)