What will happen for the below pseudocode:
Set Integer res = 0
do
–res
display res
res++
While(res >= 0)
End do-while
(A)
The program will not enter the loop.
(B)
Code will run infinite number of times.
(C)
Code will execute and the value of res will be displayed once.
(D)
Code will execute and the value of res will be displayed twice.
Answer: (B)
Explanation:
Quiz of this Question
Please comment below if you find anything wrong in the above post
Article Tags :
Uncategorized
Recommended Articles