Essentials
Accenture Technical PrimermediumEssentialsSoftware Fundamentals

Accenture Essentials Practice Question

What will be the output for WHILE loop?

 

BEGIN

DECLARE number

SET number <-- 30

WHILE number>0

            number <-- number-4

END WHILE

PRINT number

END

Answer options

A
-2
B
FOR loop
C
WHILE loop
D
DO-WHILE loop

Correct answer: -2

Explanation

Quick AnswerThe correct answer is -2 because it directly addresses the core logic of Essentials.

The correct answer is: -2.

Related Accenture Essentials questions

Practice more Accenture Essentials questions

PrimerPrep has 1400+ practice questions, 2026 simulations and coding hands-on — all free.

Watch Walkthroughs!