What will be the output of the following pseudocode? integer a, b, c; Set a =…
PYQ Accenture Hiring Assessment 2023
What will be the output of the following pseudocode?
integer a, b, c;
Set a = 6;
b = 84;
while (b > 0)
b = b / 2;
a = a + 6;
c = a + b;
while (c > 40)
if (c mode 2 is equal to 0)
Print a
else
Print b c = c / 10;
End while Print c
- A.
12 1 4 48
- B.
12 1 48 4
- C.
1 12 48 4
- D.
10 12 4 48
Attempted by 16 students.
Sign up free to check your answer
Sign up freeLoading lesson…

