
python lists

Quiz
•
Computers
•
7th Grade
•
Hard

Anjali Malik
Used 1+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
Select all the correct options to join two lists in Python
listOne = ['a', 'b', 'c', 'd']
listTwo = ['e', 'f', 'g']
newList = listOne + listTwo
newList.extend(listOne, listTwo)
newList = listOne.extend(listTwo)
newList = extend(listOne, listTwo)
2.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
Select all the correct options to copy a list
aList = ['a', 'b', 'c', 'd']
newList = copy(aList)
newList = aList.copy()
newList.copy(aList)
newList = list(aList)
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
fruitlist = ["banana","grapes","apple"]
fruitlist.sort()
print(fruitlist)
["banana","grapes","apple"]
["bananas","grapes","apple"]
["apple","banana","grapes"]
["banana","grapes","applez"]
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
fruitlist = ["banana","grapes","apple"]
var = "banana" in fruitlist
print(var)
False
True
5.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Study the following function:
any([5>8, 6>3, 3>1])
What will be the output of this code?
True
None of these
Invalid code
False
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
fruitlist = ["apple","grapes","banana"]
fruitlist.reverse()
print(fruitlist)
["apple","grapes","banana"]
["banana","grapes","apple"]
["banana","grapes","apples"]
["bananas","grapes","apple"]
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Suppose list1 is [1, 3, 2], What is list1 * 2 ?
[1,6,4]
[1, 3, 2, 1, 3, 2]
[1, 3, 2, 3, 2, 1]
[2, 6, 4].
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Scratch basics

Quiz
•
7th Grade
10 questions
Syntax python G7 (Post test)

Quiz
•
7th Grade
14 questions
Advanced Functions

Quiz
•
6th - 8th Grade
12 questions
Python - Data Types and Operators

Quiz
•
7th Grade
10 questions
Basic Programming Review

Quiz
•
6th - 8th Grade
18 questions
Quiz Ôn tập

Quiz
•
7th Grade - University
20 questions
Exploring Python Basics Quiz

Quiz
•
7th Grade
10 questions
Introduction to HTML/CSS Quiz 1: Overview and Setup

Quiz
•
6th - 12th Grade
Popular Resources on Wayground
10 questions
Video Games

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

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

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

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

Interactive video
•
6th - 10th Grade
18 questions
Company Logos

Quiz
•
6th - 8th Grade
10 questions
Exploring Cybersecurity Techniques and Threats

Interactive video
•
6th - 10th Grade
10 questions
Understanding the Internet and Data Transmission

Interactive video
•
7th - 12th Grade
25 questions
How to Email a Teacher- https://youtu.be/NioeNhfpVfI

Quiz
•
6th - 8th Grade
20 questions
Computer Hardware

Quiz
•
6th - 8th Grade
21 questions
Gear Ratio Practice

Quiz
•
6th - 8th Grade