Python Multiple Choice Quiz Form
Test your Python knowledge by answering the questions in this Python Multiple Choice Quiz Form.
What is the output of print(2 ** 3)?
*
6
8
9
5
Which of the following is a valid variable name in Python?
*
2variable
_variable
variable-name
variable name
Select the correct output of print('Hello' + str(5))
*
Hello5
Hello 5
Error
5Hello
Which keyword is used to define a function in Python?
*
func
def
function
define
What is the data type of the result of: 3 / 2 in Python 3?
*
int
float
str
bool
Which of these is a mutable data type in Python?
*
tuple
list
str
int
Match the Python function to its description.
*
Rows
Prints output
Returns length
Gets user input
Select the correct function for each description
print()
input()
len()
type()
print()
input()
len()
type()
print()
input()
len()
type()
How confident are you in your answers to this quiz?
*
1
2
3
4
5
Which of the following statements about Python dictionaries is true?
*
They are ordered collections
They store key-value pairs
They allow duplicate keys
They are immutable
Briefly explain why you want to improve your Python skills.
*
Submit Quiz
Should be Empty: