Exam 15: Control-Break Processing

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

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:
Verified

A

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

Free
(Multiple Choice)
4.9/5
(30)
Correct Answer:
Verified

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:
Verified

False

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

(Multiple Choice)
4.8/5
(32)

Which of the following statements is a true statement?

(Multiple Choice)
4.9/5
(39)

A group-printed report never outputs detail lines.

(True/False)
4.8/5
(37)

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)

A group-indicated report does not output detail lines.

(True/False)
4.9/5
(26)

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 =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?

(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 =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

(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)

What type of report outputs only intermediate total lines?

(Multiple Choice)
4.9/5
(33)

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
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)