Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

GIAC Exam GPYC Topic 3 Question 40 Discussion

Actual exam question for GIAC's GPYC exam
Question #: 40
Topic #: 3
[All GPYC Questions]

What is the output of the following line of code typed into a Python interactive session?

>>>print (8 <<1)

Show Suggested Answer Hide Answer
Suggested Answer: B

Contribute your Thoughts:

Iola
2 hours ago
That makes sense. So the answer is B) 16. Thanks for explaining!
upvoted 0 times
...
Tresa
1 days ago
I think the output is B) 16 because the << operator is a bitwise left shift operator.
upvoted 0 times
...
Iola
6 days ago
What is the output of the following line of code typed into a Python interactive session?
upvoted 0 times
...

Save Cancel