What statement(s) are unnecessary in the following pseudocode?
SUM
Read VALUE
DOWHILE VALUE
SUM SUM + VALUE
COUNT COUNT + 1
Read VALUE
ENDDO
Write SUM
A) COUNT = 0 and COUNT = COUNT + 1
B) SUM = 0 and SUM = SUM + VALUE
C) The first Read VALUE
D) The second Read VALUE
Correct Answer:
Verified
Q12: A total line is a line of
Q13: The empty file condition can occur in
Q14: The priming read is placed
A)before the loop
B)within
Q15: The loop read in a loop controlled
Q16: How many times will the loop
Q18: Where is the write statement for a
Q19: The automatic end-of-file facility is implemented differently
Q20: How many times will the loop
Q21: If you are using the automatic end-of-file
Q22: Line count and page count are special
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents