Tutorial Study Image

Python Online Quiz

Following quiz provides Multiple Choice Questions (MCQs) related to Python . You will have to read all the given answers and click over the correct answer. If you are not sure about the answer then you can check the answer using Show Answer button. You can use Next Quiz button to check new set of questions in the quiz.


Q 1 - a = 5 a >>= 2 print(a). What will be result of the above code?

Show Answer
 Answer is : Option B

Q 2 - What is the result of 3**2*5//2?

Show Answer
 Answer is : Option D

Q 3 - What is the output of l = [1,2,3] l.append([4,5]) print(l)

Show Answer
 Answer is : Option C

Q 4 - What is math.inf in python?

Show Answer
 Answer is : Option A

Q 5 - a = 5 a |= 0 print(a)

Show Answer
 Answer is : Option C

Q 6 - If n is a number what will be ~n?

Show Answer
 Answer is : Option D

Q 7 - l = list([]). Find a statement from the below options which gives the same result.

Show Answer
 Answer is : Option D

Q 8 - What is the return value of the function id()?

Show Answer
 Answer is : Option D

Q 9 - a = 5 a <<= 2 print(a). what is will be output?

Show Answer
 Answer is : Option D

Q 10 - If dict is a dictionary, what will be the output of for i in dict: print i

Show Answer
 Answer is : Option D