Question PSC-BIT-0058
MediumWhat will be printed by the following pseudocode?
Integer n = 19, mask = 15
Print n & mask, n | mask, n ^ mask
- A.
15 19 4
- B.
4 31 28
- C.
3 31 28
- D.
3 31 12
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
Bitwise Operators question
What will be printed by the following pseudocode?
Integer n = 19, mask = 15
Print n & mask, n | mask, n ^ mask
15 19 4
4 31 28
3 31 28
3 31 12
Sign up free to see the answer and a step-by-step explanation.