
Python List Quiz 1
Quiz
•
Other
•
9th - 12th Grade
•
Hard
Talent Ltd
Used 2+ times
FREE Resource
Enhance your content in a minute
9 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following commands will create a list?
list1 = list()
list1 = []
list1 = list([1, 2, 3])
all of the mentioned
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output when we execute list("hello")?
['h', 'e', 'l', 'l', 'o']
['hello']
['llo']
['olleh']
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Suppose listExample is ['h','e','l','l','o'], what is len(listExample)?
5
4
None
Error
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Suppose list1 is [2445,133,12454,123], what is max(list1)?
2445
133
12454
123
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Suppose list1 is [3, 5, 25, 1, 3], what is min(list1)?
3
5
25
1
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Suppose list1 is [1, 5, 9], what is sum(list1)?
1
9
15
Error
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Suppose list1 is [4, 2, 2, 4, 5, 2, 1, 0], Which of the following is correct syntax for slicing operation?
print(list1[2:])
print(list1[:2])
print(list1[:-2])
all of the mentioned
8.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Suppose list1 is [2, 33, 222, 14, 25], What is list1[-1]?
Error
None
25
2
9.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Suppose list1 is [2, 33, 222, 14, 25], What is list1[:-1]?
[2, 33, 222, 14]
Error
25
[25, 14, 222, 33, 2]
Similar Resources on Wayground
10 questions
Discord quiz 2021
Quiz
•
3rd Grade - Professio...
12 questions
Minecraft - A-Level OCR
Quiz
•
12th Grade
10 questions
Use of Articles
Quiz
•
12th Grade
13 questions
Food and Bev
Quiz
•
11th Grade
12 questions
HOW TO GIVE DIRECTIONS
Quiz
•
10th Grade - Professi...
13 questions
Remarkable People Quiz
Quiz
•
10th Grade
10 questions
The EU
Quiz
•
11th Grade
10 questions
Childrens day special
Quiz
•
6th - 10th Grade
Popular Resources on Wayground
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
20 questions
MINERS Core Values Quiz
Quiz
•
8th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
20 questions
Multiplying and Dividing Integers
Quiz
•
7th Grade
10 questions
How to Email your Teacher
Quiz
•
Professional Development
15 questions
Order of Operations
Quiz
•
5th Grade
Discover more resources for Other
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
13 questions
Halloween Trivia
Quiz
•
9th Grade
12 questions
Graphing Inequalities on a Number Line
Quiz
•
9th Grade
20 questions
Cell Organelles
Quiz
•
9th Grade
20 questions
Cell Transport
Quiz
•
9th Grade
28 questions
Ser vs estar
Quiz
•
9th - 12th Grade
20 questions
Translations, Reflections & Rotations
Quiz
•
8th - 10th Grade
