Question PSC-BIT-0003
EasyWhat will be the output of the following pseudocode?
Integer a = 12, b = 10
Print a | b
- A.
22
- B.
14
- C.
Show answer and explanation
Answer: B
1100 OR 1010 = 1110 = 14.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Bitwise Operators question
What will be the output of the following pseudocode?
Integer a = 12, b = 10
Print a | b
22
14
Answer: B
1100 OR 1010 = 1110 = 14.
6
8