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 - What will the output of the statement, type('hello')?

Show Answer
 Answer is : Option C

Q 2 - l = [1,2,3,4,5] l1 = l*2 print(l1). What will be the output?

Show Answer
 Answer is : Option C

Q 3 - a = 5 a &= 0 print(a) Outputs?

Show Answer
 Answer is : Option A

Q 4 - Which of the following built-in function only accept iterables as parameter?

Show Answer
 Answer is : Option C

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

Show Answer
 Answer is : Option D

Q 6 - What is the difference between find() and rfind()?

Show Answer
 Answer is : Option C

Q 7 - print (~0), will print ___

Show Answer
 Answer is : Option A

Q 8 - Which of the following list comprehension results in a cascaded list of number and its squre ?

Show Answer
 Answer is : Option D

Q 9 - Who created the Python programming language?

Show Answer
 Answer is : Option B

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

Show Answer
 Answer is : Option D