Python - Lists, Dictionaries and Loops
Quiz
•
Computers
•
9th - 12th Grade
•
Medium
Roberto Frontera
Used 151+ times
FREE Resource
40 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
list[a:b] will return the portion of list starting with index a and ending before index b.
True
False
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the value of last_jedi after the following code is run?
["kylo", "rey", "finn", "luke"]
["kylo", "rey", "finn"]
3
4
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the value of authors after the following code is run?
["Martin", "Rowling", "Tolkien"]
["Martin"]
["Rowling"]
["Tolkien", "Rowling", "Martin"]
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will this code print?
6
1
pants
"pants": 6
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the value of colors after the following code is run?
["light blue", "pink"]
["light blue", "yellow", "pink"]
["pink", "yellow"]
["light blue", "yellow"]
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct syntax to write a for loop to iterate through the list grades?
for variable:
for variable in grades
variable in grades:
for variable in grades:
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What does the following code do?
It prints [0, 6].
It prints all numbers in range(0, 6) in a list.
It prints all numbers in range(0, 6) separately.
It prints True or False.
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
40 questions
Visual Basic Kelas XI Quiz
Quiz
•
11th Grade
44 questions
Properties of Digital Graphics
Quiz
•
9th - 10th Grade
40 questions
AutoCAD Quiz
Quiz
•
9th Grade
35 questions
Empowerment Technologies
Quiz
•
11th Grade
40 questions
KUIS
Quiz
•
10th Grade
35 questions
SKT5 : Bab 3 : c) Standard Library, Subaturcara, Tatasusunan
Quiz
•
10th - 12th Grade
37 questions
Ôn tập giữa kỳ 2 - Python
Quiz
•
10th Grade
40 questions
Penilaian Akhir Semester Ganjil - PBO Kelas XI RPL -SMK_AB
Quiz
•
11th Grade
Popular Resources on Wayground
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Order of Operations
Quiz
•
5th Grade
20 questions
Halloween
Quiz
•
5th Grade
16 questions
Halloween
Quiz
•
3rd Grade
12 questions
It's The Great Pumpkin Charlie Brown
Quiz
•
1st - 5th Grade
20 questions
Possessive Nouns
Quiz
•
5th Grade
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
