
Python-List

Quiz
•
Computers
•
8th Grade
•
Hard
harshit shukla
Used 5+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Suppose list1 is [1, 3, 2, 4, 5, 2, 1, 0],
What is list1[-1]?
3
5
1
0
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Suppose list1 is [3, 4, 5, 20, 5], what is
print(list1.index(5))
3
2
IndexError: list index out of range
4
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Suppose list1 is [3, 4, 5, 20, 5.0, "5", 1, 3, 5, 5.0],
what is
print(list1.count(5))
2
3
4
5
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following would give an error?
lista = []
lista = []*3
lista = [2, 8, 7,]
None of the Above
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Suppose list1 is [3, 4, 5, 20, 5, 25, 1, 3], what is list1 after
print(list1.[::-2])
[3, 1, 25, 5,
20, 5, 4, 3]
[3, 4, 5, 20, 5,
25, 1, 3]
[3, 25, 20, 4]
[1, 5, 5, 3]
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Suppose listExample is [5, 3, 8, 15, 4], what is listExample after
print(listExample.popitem())
AttributeError: 'list' object has
no attribute 'popitems'
[5, 3, 8, 15, 4]
[5, 3, 8, 15]
[3, 8, 15, 4]
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Select the correct options to join two lists in Python.
list1 = [‘a’, ‘b’, ‘c’, ‘d’]
list2 = [‘e’, ‘f’, ‘g’]
Can have multiple correct Answers
newList =
list1 * list2
newList =
list1 + list2
newList.extend
(list1, list2)
newList = extend(list1, list2)
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Python Operator by Resha

Quiz
•
8th Grade
10 questions
SC102- Lesson 3 (Recap)

Quiz
•
8th Grade
15 questions
HTML Quiz

Quiz
•
7th - 12th Grade
10 questions
Online Communication

Quiz
•
6th - 9th Grade
15 questions
파이썬복습퀴즈

Quiz
•
6th - 8th Grade
10 questions
Code.org ~ HTML & CSS Basics

Quiz
•
6th - 8th Grade
12 questions
Google Suite

Quiz
•
5th - 8th Grade
10 questions
VB Quiz

Quiz
•
5th Grade - University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
15 questions
Acceptable Use Policy (Quiz)

Quiz
•
6th - 8th Grade
25 questions
Career Vs. Job

Quiz
•
6th - 8th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
30 questions
Introduction to Computers

Quiz
•
8th - 9th Grade
20 questions
Copyright and Fair Use

Quiz
•
6th - 8th Grade
15 questions
Computer Components Video

Interactive video
•
8th Grade
20 questions
Hardware vs. Software Quiz

Quiz
•
7th - 10th Grade