Online Examination – Python

Question 1

Who developed the Python programming language?

Question 2

Which of the following is the correct file extension for Python files?

Question 3

Which keyword is used to define a function in Python?

Question 4

Which data type is immutable in Python?

Question 5

What is the output of: print(type(10))

Question 6

Which operator is used for exponentiation in Python?

Question 7

What is the correct way to create a list in Python?

Question 8

Which function is used to take input from the user in Python?

Question 9

Which loop is used to iterate over a sequence in Python?

Question 10

What will be the output of: print(2 * 3 + 4)

1
2
3
4
5
6
7
8
9
10