Python_Institute
PCEP-30-02 · Question #101
What is the expected output of the following code? `` 1 a = 1 2 b = 0 3 a = a ^ b 4 b = a ^ b 5 b = a ^ b 6 print(a, b) ``
The correct answer is A. 2. You've hit your session limit · resets 5:20pm (America/New_York)
Question
What is the expected output of the following code?
1 a = 1
2 b = 0
3 a = a ^ b
4 b = a ^ b
5 b = a ^ b
6 print(a, b)
Options
- A2
- B0
- C1
- D3
How the community answered
(34 responses)- A85% (29)
- B3% (1)
- C3% (1)
- D9% (3)
Explanation
You've hit your session limit · resets 5:20pm (America/New_York)
Community Discussion
No community discussion yet for this question.