Question PSC-BIT-0024
EasyWhat is the output of this pseudocode?
Print 12 ^ 10
- A.
8
- B.
2
- C.
Show answer and explanation
Answer: C
^ is XOR: 1100 ^ 1010 = 0110, which is 6.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Bitwise Operators question
What is the output of this pseudocode?
Print 12 ^ 10
8
2
Answer: C
^ is XOR: 1100 ^ 1010 = 0110, which is 6.
6
14