Solved

What Is the Value of COUNT After the Steps in the Following

Question 18

Multiple Choice

What is the value of COUNT after the steps in the following pseudocode are executed?
 COUNT =0 TOTAL =5 PASS =4 DOWHILE PASS < TOTAL  NEXT = PASS +1 DOWHILE NEXT  TOTAL  COUNT = COUNT +1 NEXT = NEXT +1 ENDDO  PASS = PASS +1\begin{array} { l } \text { COUNT } = 0 \\\text { TOTAL } = 5 \\\text { PASS } = 4 \\\text { DOWHILE PASS } < \text { TOTAL } \\\quad \text { NEXT } = \text { PASS } + 1 \\\text { DOWHILE NEXT } \leq \text { TOTAL } \\\quad \text { COUNT } = \text { COUNT } + 1 \\\quad \text { NEXT } = \text { NEXT } + 1 \\\text { ENDDO } \\\text { PASS } = \text { PASS } + 1\end{array}
ENDDO


A) 4
B) 5
C) 10
D) none of the above

Correct Answer:

verifed

Verified

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

Related Questions