Accenture Primer
Accenture DumpmediumAccenture PrimerLooping statements

Predict the output of the given flowchart.

Answer options

A
2
B
1
C
1
D
2
E
2
F
2
G
1
H
1
I
Print statement is executed first, and prints count as 1. Count is incremented to 1 and the condition will be checked. When it becomes false, the final
J
count value 2 gets printed

Correct answer: 1, 2

Explanation

The 8 options before the explanation form 4 paired answer choices: (0,1)='2,1'; (2,3)='1,2'; (4,5)='2,2'; (6,7)='1,1'. The embedded explanation states the print executes first printing count as 1, then count is incremented, and when the condition becomes false the final value 2 is printed. Output is '1' then '2', matching options at indices 2 and 3.

Related Accenture Accenture Primer questions

Practice more Accenture Accenture Primer questions

PrimerDumps has 1400+ primer questions, 2026 mocks and coding hands-on — all free.