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 - Suppose 'str' is a string. Which among the following returns the character at index "i"?

Show Answer
 Answer is : Option C

Q 2 - Python variables cannot start with?

Show Answer
 Answer is : Option C

Q 3 - Python is a _________ language?

Show Answer
 Answer is : Option D

Q 4 - Which of has same precedence? a. Addition and subtraction b. Exponentiation and Multiplication c. Multiplication and Addition d Division and subtraction

Show Answer
 Answer is : Option A

Q 5 - What will the output of the statement, type('hello')?

Show Answer
 Answer is : Option C

Q 6 - a = 123 print (type(type(a)))?

Show Answer
 Answer is : Option D

Q 7 - Which of the following identifier is invalid in python?

Show Answer
 Answer is : Option D

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

Show Answer
 Answer is : Option D

Q 9 - import math print (type(math.inf)). The above code outputs?In python 3.x

Show Answer
 Answer is : Option B

Q 10 - def student_list(*kwargs): for i in kwargs: print(i) student_list(roll_no=1, name='Tom'). Output?

Show Answer
 Answer is : Option C