Deck 15: Control-Break Processing

Full screen (f)
exit full mode
Question
A group-indicated report does not output detail lines.
Use Space or
up arrow
down arrow
to flip the card.
Question
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
Question
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
Question
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
Question
Given the following pseudocode:
Start
FINAL-ACCUM =0= 0
NAME-ACCUM =0= 0
Read NAME, AMT
SAVE-NAME == NAME
DOWHILE not EOF
IF NAME \neq SAVE-NAME THEN
Write NAME-ACCUM
FINAL-ACCUM = FINAL-ACCUM + NAME-ACCUM
NAME-ACCUM =0= 0
SAVE-NAME == NAME
ELSE
Write NAME, AMT
NAME-ACCUM =NAMEACCUM+AMT= \mathrm { NAME } - \mathrm { ACCUM } + \mathrm { AMT }
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
Question
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
Question
It is always better to output a detail-printed report since this type of report contains the most information.
Question
Given the following pseudocode:
Start
FINAL-ACCUM =0= 0
NAME-ACCUM =0= 0
Read NAME, AMT
SAVE-NAME = NAME
DOWHILE not EOF
IF NAME \neq SAVE-NAME THEN
Write NAME-ACCUM
FINAL-ACCUM = FINAL-ACCUM + NAME-ACCUM
NAME-ACCUM =0= 0
(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
Question
Given the following pseudocode:
FINAL-ACCUM =0= 0
NAME-ACCUM =0= 0
Read NAME, AMT
SAVE-NAME = NAME
DOWHILE not EOF
IF NAME \neq SAVE-NAME THEN
Write NAME-ACCUM
FINAL-ACCUM = FINAL-ACCUM + NAME-ACCUM
NAME-ACCUM =0= 0
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.
Question
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
Question
A detail-printed report only outputs detail lines.
Question
Given the following pseudocode:
Start
FINAL-ACCUM =0= 0
NAME-ACCUM =0= 0
Read NAME, AMT
SAVE-NAME == NAME
DOWHILE not EOF
IF NAME \neq SAVE-NAME THEN
Write NAME-ACCUM
FINAL-ACCUM = FINAL-ACCUM + NAME-ACCUM
NAME-ACCUM =0= 0
ELSE
Write NAME, AMT
NAME-ACCUM == NAME-ACCUM +AMT+ \mathrm { AMT }
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
Question
Given the following pseudocode:
Start
FINAL-ACCUM =0= 0
NAME-ACCUM =0= 0
Read NAME, AMT
SAVE-NAME == NAME
DOWHILE not EOF
IF NAME \neq SAVE-NAME THEN
Write NAME-ACCUM
FINAL-ACCUM == FINAL-ACCUM + NAME-ACCUM
NAME-ACCUM =0= 0
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
Question
In control-break processing,the input records must be in some type of sequence.
Question
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.
Question
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
Question
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
Question
Given the following pseudocode:
Start
FINAL-ACCUM =0= 0
NAME-ACCUM =0= 0
Read NAME, AMT
SAVE-NAME = NAME
DOWHILE not EOF
IF NAME \neq 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
Question
A group-printed report never outputs detail lines.
Question
What type of report outputs only intermediate total lines?

A)detail-printed
B)group-printed
C)record-printed
D)both a and c
Question
Group-indicated reports generally appear less cluttered and easier to read than detail-printed reports.
Question
An intermediate total and a final total can be computed using the same accumulator.
Question
We know that a control break has occurred when the last detail record in a group is processed.
Question
An intermediate total reflects accumulated data about all the input records.
Question
In a control-break program,it is possible to output detail lines,intermediate total lines,and final total lines all on one page.
Question
The control field is the field that determines when a control break is to occur.
Question
A CASE control structure is likely to be used to determine if a control break has occurred.
Question
The module to process the steps required as a result of a control break is called each time the main processing loop is executed.
Question
When a control break occurs,an intermediate-total line is always output.
Question
The detail-processing module is called each time the main processing loop is executed.
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/30
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
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
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
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
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 =0= 0
NAME-ACCUM =0= 0
Read NAME, AMT
SAVE-NAME == NAME
DOWHILE not EOF
IF NAME \neq SAVE-NAME THEN
Write NAME-ACCUM
FINAL-ACCUM = FINAL-ACCUM + NAME-ACCUM
NAME-ACCUM =0= 0
SAVE-NAME == NAME
ELSE
Write NAME, AMT
NAME-ACCUM =NAMEACCUM+AMT= \mathrm { NAME } - \mathrm { ACCUM } + \mathrm { AMT }
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
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 =0= 0
NAME-ACCUM =0= 0
Read NAME, AMT
SAVE-NAME = NAME
DOWHILE not EOF
IF NAME \neq SAVE-NAME THEN
Write NAME-ACCUM
FINAL-ACCUM = FINAL-ACCUM + NAME-ACCUM
NAME-ACCUM =0= 0
(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 =0= 0
NAME-ACCUM =0= 0
Read NAME, AMT
SAVE-NAME = NAME
DOWHILE not EOF
IF NAME \neq SAVE-NAME THEN
Write NAME-ACCUM
FINAL-ACCUM = FINAL-ACCUM + NAME-ACCUM
NAME-ACCUM =0= 0
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
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 =0= 0
NAME-ACCUM =0= 0
Read NAME, AMT
SAVE-NAME == NAME
DOWHILE not EOF
IF NAME \neq SAVE-NAME THEN
Write NAME-ACCUM
FINAL-ACCUM = FINAL-ACCUM + NAME-ACCUM
NAME-ACCUM =0= 0
ELSE
Write NAME, AMT
NAME-ACCUM == NAME-ACCUM +AMT+ \mathrm { AMT }
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 =0= 0
NAME-ACCUM =0= 0
Read NAME, AMT
SAVE-NAME == NAME
DOWHILE not EOF
IF NAME \neq SAVE-NAME THEN
Write NAME-ACCUM
FINAL-ACCUM == FINAL-ACCUM + NAME-ACCUM
NAME-ACCUM =0= 0
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.
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
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
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 =0= 0
NAME-ACCUM =0= 0
Read NAME, AMT
SAVE-NAME = NAME
DOWHILE not EOF
IF NAME \neq 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
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
locked card icon
Unlock Deck
Unlock for access to all 30 flashcards in this deck.