GIAC
GPYC · Question #8
What is the output of the following line of code typed into a Python interactive session? >>> print(bin(0b101010 ^ 0b111000))
The correct answer is C. 0b10010. You've hit your limit · resets 1pm (America/New_York)
Python Fundamentals & Command Line Tools
Question
What is the output of the following line of code typed into a Python interactive session?
print(bin(0b101010 ^ 0b111000))
Options
- A0b10101
- B18
- C0b10010
- D0b101101
How the community answered
(46 responses)- A15% (7)
- B9% (4)
- C72% (33)
- D4% (2)
Explanation
You've hit your limit · resets 1pm (America/New_York)
Topics
#bitwise XOR#binary arithmetic#bit manipulation#operators
Community Discussion
No community discussion yet for this question.