GIAC
GPYC · Question #60
What is the output of the following line of code typed into a Python interactive session? >>>print(8 << 1)
The correct answer is B. 16. 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(8 << 1)Options
- AFalse
- B16
- CSyntaxError: invalid syntax
- DTrue
How the community answered
(40 responses)- A3% (1)
- B90% (36)
- C3% (1)
- D5% (2)
Explanation
You've hit your limit · resets 1pm (America/New_York)
Topics
#bitwise operators#left shift#binary arithmetic#integer operations
Community Discussion
No community discussion yet for this question.