Solved

What Is the Value of ANSWER After the Instructions Corresponding

Question 7

Multiple Choice

What is the value of ANSWER after the instructions corresponding to the following pseudocode are executed?
 COUNT =1 SUM =3 DOUNTIL COUNT 1 SUM = SUM + COUNT  COUNT = COUNT 1 ENDDO  ANSWER = SUM \begin{array} { l } \text { COUNT } = 1 \\\text { SUM } = 3 \\\text { DOUNTIL COUNT } \leq 1 \\\quad \text { SUM } = \text { SUM } + \text { COUNT } \\\quad \text { COUNT } = \text { COUNT } - 1 \\\text { ENDDO } \\\text { ANSWER } = \text { SUM }\end{array}


A) 3
B) 4
C) 5
D) 6

Correct Answer:

verifed

Verified

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

Related Questions