






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
python programming Assignment solved with Answer.
Typology: Assignments
1 / 10
This page cannot be seen from the preview
Don't miss anything!







1 What is the result of the snippet of code shown below if x=1? x<< a) 8 b) 1 c) 2 d) 4 Ans:(d) 2 The output of the expression is: bin(29) a) ‘0b10111’ b) ‘0b11101’ c) ‘0b11111’ d) ‘0b11011’ Ans:(b)‘0b11101’ 3 What is the value of x if: x>>2= a) 8 b) 4 c) 2 d) 1 Ans:(a)
Ans:(c) 12
Ans:(a) a<<
elif (9 > 0) or False: print("good") else: print("bad") a) error b) hello c) good d) bad Ans:(c) good
d) ”’That’s okay”’ Ans:(c) ‘3\’
d) None Ans:(a) int
Ans:(d) **