Deck 15: Control-Break Processing
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/30
Play
Full screen (f)
Deck 15: Control-Break Processing
1
A group-indicated report does not output detail lines.
False
2
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
A)3
B)4
C)9
D)10
John 20.00
John 30.00
Mary 10.00
Sue 6.00
Sue 8.00
Sue 13.00
A)3
B)4
C)9
D)10
D
3
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
A)3
B)4
C)9
D)10
John 20.00
John 30.00
Mary 10.00
Sue 6.00
Sue 8.00
Sue 13.00
A)3
B)4
C)9
D)10
A
4
What type of report outputs one line of information for each input record processed?
A)detail-printed
B)group-printed
C)record-printed
D)both a and c
A)detail-printed
B)group-printed
C)record-printed
D)both a and c
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
5
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
A)7
B)9
C)10
D)11
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
A)7
B)9
C)10
D)11
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
6
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
A)3
B)4
C)9
D)10
John 20.00
John 30.00
Mary 10.00
Sue 6.00
Sue 8.00
Sue 13.00
A)3
B)4
C)9
D)10
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
7
It is always better to output a detail-printed report since this type of report contains the most information.
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
8
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
(ELSE)
ENDIF
Write NAME, AMT
NAME-ACCUM NAME-ACCUM + AMT
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
A)7
B)9
C)10
D)11
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
(ELSE)
ENDIF
Write NAME, AMT
NAME-ACCUM NAME-ACCUM + AMT
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
A)7
B)9
C)10
D)11
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
9
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?
A)All the detail records will be processed successfully.
B)Some of the detail records will be processed successfully.
C)None of the detail records will be processed successfully.
D)Only the first detail record will be processed successfully.
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?
A)All the detail records will be processed successfully.
B)Some of the detail records will be processed successfully.
C)None of the detail records will be processed successfully.
D)Only the first detail record will be processed successfully.
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
10
A control break occurs when what type of processing is interrupted when a value in a designated field in the input changes?
A)initialization
B)detail processing
C)intermediate total processing
D)final total processing
A)initialization
B)detail processing
C)intermediate total processing
D)final total processing
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
11
A detail-printed report only outputs detail lines.
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
12
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
ELSE
Write NAME, AMT
NAME-ACCUM 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
A)7
B)9
C)10
D)11
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
ELSE
Write NAME, AMT
NAME-ACCUM 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
A)7
B)9
C)10
D)11
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
13
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
A)10
B)50
C)60
D)110
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
A)10
B)50
C)60
D)110
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
14
In control-break processing,the input records must be in some type of sequence.
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
15
Which of the following statements is a true statement?
A)A detail-printed report can output detail lines,intermediate total lines and final total lines.
B)A group-printed report can output detail lines,intermediate total lines and final total lines.
C)A detail-printed report must output detail lines,intermediate total lines and final total lines.
D)A group-printed report must output detail lines,intermediate total lines and final total lines.
A)A detail-printed report can output detail lines,intermediate total lines and final total lines.
B)A group-printed report can output detail lines,intermediate total lines and final total lines.
C)A detail-printed report must output detail lines,intermediate total lines and final total lines.
D)A group-printed report must output detail lines,intermediate total lines and final total lines.
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
16
What is the name of the entity that determines when a control break is to occur?
A)key code
B)control field
C)search key
D)break key
A)key code
B)control field
C)search key
D)break key
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
17
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
A)3
B)4
C)9
D)10
John 20.00
John 30.00
Mary 10.00
Sue 6.00
Sue 8.00
Sue 13.00
A)3
B)4
C)9
D)10
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
18
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
A)10
B)50
C)60
D)110
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
A)10
B)50
C)60
D)110
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
19
A group-printed report never outputs detail lines.
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
20
What type of report outputs only intermediate total lines?
A)detail-printed
B)group-printed
C)record-printed
D)both a and c
A)detail-printed
B)group-printed
C)record-printed
D)both a and c
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
21
Group-indicated reports generally appear less cluttered and easier to read than detail-printed reports.
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
22
An intermediate total and a final total can be computed using the same accumulator.
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
23
We know that a control break has occurred when the last detail record in a group is processed.
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
24
An intermediate total reflects accumulated data about all the input records.
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
25
In a control-break program,it is possible to output detail lines,intermediate total lines,and final total lines all on one page.
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
26
The control field is the field that determines when a control break is to occur.
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
27
A CASE control structure is likely to be used to determine if a control break has occurred.
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
28
The module to process the steps required as a result of a control break is called each time the main processing loop is executed.
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
29
When a control break occurs,an intermediate-total line is always output.
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
30
The detail-processing module is called each time the main processing loop is executed.
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck