
python collection
Authored by Mohd. Khan
Computers
University
Used 43+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
29 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these codes is correct for creating a list of numbers?
num = ('10', '29', '37', '109')
num = [10, 29, 37, 109]
num == ('10', '29', '37', '109')
num = ['10 29 37 109']
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
How do i remove something from a list?
variable.append()
variable.delete()
variable.remove()
variable=(new variable)
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which code would i use to add an item to a list?
variable.add()
variable.append()
append.variable()
add.variable()
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What brackets are used to create a list?
()
[]
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What sort of loop is this?
Count Controlled
Condition Controlled
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What does the '#' allow you to do?
Repeat code
Comment on code
Print code
End code
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
A condition controlled loop is...
A while loop
A for loop
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?