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. When a child class inherits from only one parent class, it is called?

single inheritance
singular inheritance
Multiple inheritance
Multilevel inheritance

2. Which of the following two Python codes will give same output?
(i) print(tupl[:-1])
(ii) print(tupl[0:5])
(iii) print(tupl[0:4])
(iv) print(tupl[-4:])

If tupl=(5,3,1,9,0) 

i, ii
ii, iv
i, iv
i, iii

3. All keyword in python are in

Lowercase
Uppercase
Both uppercase & Lowercase
None of the above

4. What will be the output of below Python code?

tuple1=(2,4,3)
tuple3=tuple1*2
print(tuple3)

(4,8,6)
(2,4,3,2,4,3)
(2,2,4,4,3,3)
Error

5. What is the output of the following program : print((1, 2) + (3, 4))

(1, 2), (3, 4)
(4, 6)
(1, 2, 3, 4)
Invalid Syntax

6. Which of the follwing are the keys in the given statement : abc = {"first":10, "second":20}

10, 20
first, second
first, 10, second, 20
first, 20

7. What will be the output of below Python code?

list1=[1,3,5,2,4,6,2]
list1.remove(2)
print(sum(list1))

18
19
21
22

8. All classes have a function called?

__init__
__init__()
init
init()

9. Which of the following statements is used to create an empty set?

[]
{}
()
set()

10. The marks of a student on 6 subjects are stored in a list, list1=[80,66,94,87,99,95]. How can the student's average mark be calculated?

print(avg(list1))
print(sum(list1)/len(list1))
print(sum(list1)/sizeof(list1))
print(total(list1)/len(list1))

Results