Python Fundamentals Quiz 5

Python Fundamentals Quiz 5

Welcome to the Python Fundamentals Quiz!

Test your knowledge on Python basics with this quiz. Each question has four options, and only one of them is correct. Read carefully and select the correct answer. Good luck!

1 / 10

How do you define a function in Python?

2 / 10

Which of the following loops in Python is entry-controlled?

3 / 10

Which of the following operators is used for equality comparison in Python?

4 / 10

What is the result of the following expression?

not True

5 / 10

What is the output of the following code?

print(type([1, 2, 3]))

6 / 10

Which of the following is NOT a Python keyword?

7 / 10

What does the len() function do in Python?

8 / 10

How do you create a tuple in Python?

9 / 10

What is the output of the following code?

 

print(len([1, 2, 3, 4]))

10 / 10

How do you create a list in Python?

Your score is

The average score is 40%

0%