
Blank Quiz
Authored by ROHIT K
others
KG

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
48 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid variable name in Python?
1variable
variable-1
variable_1
variable 1
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these data types is immutable in Python?
List
Dictionary
Tuple
Set
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of len("Hello")?
4
5
6
Error
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the following code do? my_list = [1, 2, 3] my_list.append(4) print(my_list)
Print [1, 2, 3]
Print [1, 2, 3, 4]
Error
None of the above
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to create a dictionary in Python?
my_dict = {}
my_dict = []
my_dict = ()
my_dict = ""
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these is not a Python keyword?
def
return
assert
function
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you create a single-line comment in Python?
// comment
/* comment */
# comment
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?