Question PSC-LOOP-0067
HardWhat is the output of this pseudocode?
Integer x = 1, i
for (each i from 1 to 20)
x = (x * 3) mod 11
end for
Print x
- A.
1
- B.
3
- C.
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 is the output of this pseudocode?
Integer x = 1, i
for (each i from 1 to 20)
x = (x * 3) mod 11
end for
Print x
1
3
Sign up free to see the answer and a step-by-step explanation.
5
9