Pseudo Codes Questions Set 2
Q.1. What will be output of following pseudo code:
- True
- False
- Error
- No Output
Answer:- (2)
Q.2. What will be output of following pseudo code:
- 1 2 3 4 5
- 1 2 3 4
- 0 1 2 3 4
- Infinite loop
Answer:- (1)
Q.3. What will be output of following pseudo code:
- 195
- 131
- Error
- Undefined Behavior
Answer:- (1)
Q.4. What will be output of following pseudo code:
- A
- B
- C
- D
Answer:- (3)
Q.5. What will be output of following pseudo code:
- 64
- 16
- 4
- Garbage Value
Answer:- (1)
Q.6. What will be output of following pseudo code:
- 1 3 3
- 1 3 5
- 1
- 3
Answer:- (1)
Q.7. What will be output of following pseudo code:
- To print all the integer from 1 to n which are multiple of 7
- To print all the integer from 1 to n omitting those integers which are divisible by 7
- None of the mentioned option
- To print all the integer from 1 to n which are divisible of 7
Answer:- (1)
Q.8. What will be output of following pseudo code:
- 1 4 3 5 7
- 1 4 2 5 7
- 1 4 2 5 3
- 1 4 3 5 3
Answer:- (3)
Q.9. What will be output of following pseudo code:
- 6
- 16
- 4
- 2
Answer:- (2)
Q.10. What will be output of following pseudo code:
- 91
- 100
- 110
- 121
Answer:- (1)
Q.11. What will be output of following pseudo code:
- 8 4
- 4 8
- 16 8
- 8 1
Answer:- (2)
Q.12. What will be output of following pseudo code if input given is "pqr"?
- rrqrrqp
- ppqqrr
- rqppqr
- None of mentioned
Answer:- (1)
Q.13. What will be output of following pseudo code if n=1?
- 1 2 3 4 5
- 1 2 4 6 8
- 1 2 5 3 4
- None of the above
Answer:- (4)
Q.14. What will be output of following pseudo code:
- 18
- 10
- 11
- 14
Answer:- (2)
Q.15. What will be output of following pseudo code:
- 4
- 6
- 2
- 8
Answer:- (1)