Question PSC-LOOP-0025
EasyWhat will be the output of the following pseudocode?
Integer x = 1
repeat 5 times
x = x * 2
end repeat
Print x
- A.
32
- B.
16
- C.
64
- D.
10
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Loops question
What will be the output of the following pseudocode?
Integer x = 1
repeat 5 times
x = x * 2
end repeat
Print x
32
16
64
10
Sign up free to see the answer and a step-by-step explanation.