Question PSC-OPS-0002
EasyWhat will be the output of the following pseudocode?
Integer a = 17, b = 5
Print a mod b
- A.
2
- B.
0
- C.
Show answer and explanation
Answer: A
17 = 3 × 5 + 2, so the remainder is 2.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Operators and Expressions question
What will be the output of the following pseudocode?
Integer a = 17, b = 5
Print a mod b
2
0
Answer: A
17 = 3 × 5 + 2, so the remainder is 2.
3
5