Python Intermediate Quizzes
1 / 24
How do you define a global variable?
2 / 24
Will the following work?
a, b, c = 3, 7, 10
3 / 24
What will the following output?
4 / 24
What’s the outcome?
5 / 24
6 / 24
What is the outcome of the following?
7 / 24
What is the result of the scenario below?
8 / 24
How do you create a list?
9 / 24
How do you remove the last item from a list?
10 / 24
What is the result of the following?
11 / 24
What will be the output of the example below?
12 / 24
13 / 24
What will the following produce?
14 / 24
Select the correct output:
15 / 24
What is the output of the following:
16 / 24
17 / 24
Functions: does the number of parameters must match the number of arguments?
18 / 24
Select the correct outcome?
19 / 24
20 / 24
Classes: can del be used to delete both object properties and entire objects?
21 / 24
What is the function of pass in a class?
22 / 24
If the file “file.txt” already exists, what will happen if we run the following?
23 / 24
What does \n produce?
24 / 24
Select the correct answer:
Your score is
The average score is 64%
Restart quiz