Python Programming Quiz


Play this Python quiz that will help you to excel in C++ certification exams, placements etc. This Python programming quiz consist of 10 questions that you need to solve in 10 minutes. We’ve specially designed this quiz so that you can quickly acquaint to the pattern of questions you can be asked in placement drives, certification exams etc. This Python programming test enables you to assess your knowledge of Python programming.

Take the Free Practice Test



Python MCQs

Practice Python MCQ Questions, which will help you to understand Python programming related concepts and also helps you to prepare for placements, technical rounds, interviews, competitive exams etc.

Python Quiz

Try Free Python Quiz, to start a quiz you need to login first, after login you will get start quiz button and then by clicking on that you can start quiz. You will get 10 Minutes to answer all questions.

Python Quiz

1. Which of these are keyword?

in
is
assert
All of the above

2. Which of the following will give error?

a=b=c=1
a,b,c=1
a,b,c=1, “python”, 1.5
None of the above

3. In python, what is method inside class?

attribute
object
argument
function

4. Which of the following is incorrect?

List is a built-in data structure in Python
List can only have elements of same data type.
List is mutable.
Index of lists can be positive as well as negative.

5. Which of the following is not valid variable name in Python?

_var
var_name
var11
11var

6. Which of the following is True regarding lists in Python?

Lists are immutable.
Size of the lists must be specified before its initialization
Elements of lists are stored in contagious memory location.
size(list1) command is used to find the size of lists.

7. Which one of the following is False regarding data types in Python?

In python, explicit data type conversion is possible
Mutable data types are those that can be changed.
Immutable data types are those that cannot be changed.
None of the above

8. Which one of the following is mutable data type?

set
int
str
tupl

9. Which of the following is correct with respect to above Python code?

d={"a":3,"b":7}

a dictionary d is created.
a and b are the keys of dictionary d.
3 and 7 are the values of dictionary d
All of the above.

10. What will the below Python code will return?

If str1="save paper,save plants"
str1.find("save")

It returns the first index position of the first occurance of "save" in the given string str1.
It returns the last index position of the last occurance of "save" in the given string str1.
It returns the last index position of the first occurance of "save" in the given string str1.
It returns the first index position of the first occurance of "save" in the given string str1.

Results