Exam 15: Control-Break Processing

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

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

(Multiple Choice)
5.0/5
(31)

In control-break processing,the input records must be in some type of sequence.

(True/False)
4.7/5
(34)

What type of report outputs one line of information for each input record processed?

(Multiple Choice)
4.8/5
(42)

An intermediate total and a final total can be computed using the same accumulator.

(True/False)
4.8/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 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

(Multiple Choice)
4.8/5
(33)

We know that a control break has occurred when the last detail record in a group is processed.

(True/False)
4.8/5
(41)

An intermediate total reflects accumulated data about all the input records.

(True/False)
4.9/5
(30)

The detail-processing module is called each time the main processing loop is executed.

(True/False)
4.9/5
(39)

It is always better to output a detail-printed report since this type of report contains the most information.

(True/False)
4.9/5
(32)

A detail-printed report only outputs detail lines.

(True/False)
4.9/5
(32)
Showing 21 - 30 of 30
close modal

Filters

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