Python Lists

Quiz
•
Instructional Technology
•
8th Grade
•
Hard
Issam Al Salman
Used 3+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the uses of a list in Python?
A data type used for representing a single value
A collection of elements that are ordered and mutable
A function used for mathematical calculations
A loop used for iterationg over sequences
2.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
How do you create an empty list in Python?
Note: 2 choices are correct
empty_list = {}
empty_list = ()
empty_list = []
empty_list = list()
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following is the correct way of accessing the first element in a list called students?
students[1]
students(1)
students.first()
students[0]
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the 'append()' method do for lists?
Removes the last element from lists
Adds an element to the end of lists
Reverse the order of the elements in lists
Sorts the elements in lists
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following methods can be used to remove an element by its value from a list?
'remove( )'
'delete( )'
'pop( )'
'discard( )'
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you find the number of elements in a list?
size(list)
count(list)
length(list)
len(list)
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the output of the following code?
[1, 2, 3, 4]
[5, 2, 3, 4]
[1, 2, 3, 5]
[1, 5, 3, 4]
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
SEACSO cat 5 mock test

Quiz
•
8th Grade
11 questions
Technology Quiz - STEAM Week 23

Quiz
•
8th Grade
15 questions
7th Grade Digital Wellness Quiz

Quiz
•
6th - 8th Grade
15 questions
Yellow Belt Level 3

Quiz
•
6th - 8th Grade
10 questions
EVALUATION

Quiz
•
8th Grade
15 questions
Recipes

Quiz
•
7th - 8th Grade
10 questions
Research Skills

Quiz
•
7th - 9th Grade
10 questions
Programming

Quiz
•
6th - 8th Grade
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Instructional Technology
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
24 questions
Flinn Lab Safety Quiz

Quiz
•
5th - 8th Grade
15 questions
Wren Pride and School Procedures Worksheet

Quiz
•
8th Grade
10 questions
Essential Lab Safety Practices

Interactive video
•
6th - 10th Grade
10 questions
Converting Repeating Decimals to Fractions

Quiz
•
8th Grade