Exam 15: Control-Break Processing
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
Given the following input records,how many lines would be output if a control break program was used to output a group-printed report,containing intermediate lines but not final totals or heading lines?
John 20.00
John 30.00
Mary 10.00
Sue 6.00
Sue 8.00
Sue 13.00
Free
(Multiple Choice)
4.8/5
(38)
Correct Answer:
A
Given the following pseudocode:
Start
FINAL-ACCUM
NAME-ACCUM
Read NAME, AMT
SAVE-NAME = NAME
DOWHILE not EOF
IF NAME SAVE-NAME THEN
Write NAME-ACCUM
FINAL-ACCUM = FINAL-ACCUM + NAME-ACCUM SAVE-NAME NAME
(ELSE)
ENDIF
Write NAME, AMT
NAME-ACCUM = NAME-ACCUM + AMT
Read NAME, AMT
ENDDO
Stop
If the following records are input,what is the value of NAME-ACCUM after the instructions corresponding to the pseudocode are executed?
John 20.00
John 30.00
Mary 10.00
Sue 50.00
Free
(Multiple Choice)
4.9/5
(30)
Correct Answer:
D
A CASE control structure is likely to be used to determine if a control break has occurred.
Free
(True/False)
4.8/5
(40)
Correct Answer:
False
Given the following pseudocode:
Start
FINAL-ACCUM
NAME-ACCUM
Read NAME, AMT
SAVE-NAME NAME
DOWHILE not EOF
IF NAME SAVE-NAME THEN
Write NAME-ACCUM
FINAL-ACCUM = FINAL-ACCUM + NAME-ACCUM
NAME-ACCUM
SAVE-NAME NAME
ELSE
Write NAME, AMT
NAME-ACCUM
ENDIF
Read NAME, AMT
ENDDO
Write FINAL-ACCUM
Stop
How many lines will be output if the following records are input?
John 20.00
John 30.00
Mary 10.00
Mary 6.00
Sue 8.00
Sue 5.00
(Multiple Choice)
4.8/5
(32)
Given the following input records,how many lines would be output if a control break program was used to output a group-printed report,containing intermediate and final total lines but no heading lines?
John 20.00
John 30.00
Mary 10.00
Sue 6.00
Sue 8.00
Sue 13.00
(Multiple Choice)
4.8/5
(37)
The module to process the steps required as a result of a control break is called each time the main processing loop is executed.
(True/False)
4.9/5
(37)
In a control-break program,it is possible to output detail lines,intermediate total lines,and final total lines all on one page.
(True/False)
4.9/5
(35)
When a control break occurs,an intermediate-total line is always output.
(True/False)
4.8/5
(35)
Given the following input records,how many lines would be output if a control break program was used to output a detail-printed report,containing intermediate and final total lines but no heading lines?
John 20.00
John 30.00
Mary 10.00
Sue 6.00
Sue 8.00
Sue 13.00
(Multiple Choice)
4.9/5
(37)
A control break occurs when what type of processing is interrupted when a value in a designated field in the input changes?
(Multiple Choice)
4.9/5
(35)
Group-indicated reports generally appear less cluttered and easier to read than detail-printed reports.
(True/False)
4.9/5
(37)
Given the following pseudocode:
FINAL-ACCUM
NAME-ACCUM
Read NAME, AMT
SAVE-NAME = NAME
DOWHILE not EOF
IF NAME SAVE-NAME THEN
Write NAME-ACCUM
FINAL-ACCUM = FINAL-ACCUM + NAME-ACCUM
NAME-ACCUM
SAVE-NAME = NAME
ELSE
Write NAME, AMT
NAME-ACCUM = NAME-ACCUM + AMT
ENDIF
Read NAME, AMT
ENDDO
Which of the following statements is a true statement,assuming there is at least one input record?
(Multiple Choice)
4.8/5
(34)
What is the name of the entity that determines when a control break is to occur?
(Multiple Choice)
4.7/5
(41)
Given the following pseudocode:
Start
FINAL-ACCUM
NAME-ACCUM
Read NAME, AMT
SAVE-NAME NAME
DOWHILE not EOF
IF NAME SAVE-NAME THEN
Write NAME-ACCUM
FINAL-ACCUM FINAL-ACCUM + NAME-ACCUM
NAME-ACCUM
SAVE-NAME NAME
(ELSE)
ENDIF
Write NAME, AMT
NAME-ACCUM NAME-ACCUM + AMT
Read NAME, AMT
ENDDO
Stop
If the following records are input,what is the value of NAME-ACCUM after the instructions corresponding to the pseudocode are executed?
John 20.00
John 30.00
Mary 10.00
Sue 50.00
(Multiple Choice)
4.8/5
(35)
The control field is the field that determines when a control break is to occur.
(True/False)
4.9/5
(30)
Given the following input records,how many lines would be output if a control break program was used to output a group-indicated report,containing intermediate lines but not final totals or heading lines?
John 20.00
John 30.00
Mary 10.00
Sue 6.00
Sue 8.00
Sue 13.00
(Multiple Choice)
4.8/5
(38)
Showing 1 - 20 of 30
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)