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 - l=['Mumbai','Chennai','Kolkata'] print(l[-1][0])

Show Answer
 Answer is : Option B

Q 2 - What is math.inf in python?

Show Answer
 Answer is : Option A

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

Show Answer
 Answer is : Option B

Q 4 - Identify correct statement

Show Answer
 Answer is : Option C

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

Show Answer
 Answer is : Option D

Q 6 - print('2' * 'wow')

Show Answer
 Answer is : Option C

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

Show Answer
 Answer is : Option D

Q 8 - Which among the following ecsape characters indicates hexadecimal numbers?

Show Answer
 Answer is : Option A

Q 9 - If num is an integer. which among the below finds the sum of numbers?

Show Answer
 Answer is : Option B

Q 10 - a = [1,2,3] b = a a[2]=4 print(b). What will be the output?

Show Answer
 Answer is : Option C