Solved

Given the Following Pseudocode:
FINAL-ACCUM =0= 0 NAME-ACCUM =0= 0 Read NAME, AMT
SAVE-NAME = NAME
DOWHILE Not EOF
IF

Question 15

Multiple Choice

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.

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions