Question PSC-BIT-0018
HardWhat will be the output of the following pseudocode?
Integer n = 64
if (n > 0 AND (n & (n - 1)) == 0)
Print "Yes"
else
Print "No"
end if
- A.
0
- B.
64
- C.
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 the output of the following pseudocode?
Integer n = 64
if (n > 0 AND (n & (n - 1)) == 0)
Print "Yes"
else
Print "No"
end if
0
64
Sign up free to see the answer and a step-by-step explanation.
Yes
No