Sorting Simple List and List processing in Python

Quiz
•
Computers
•
9th Grade
•
Medium
William Lugo
Used 8+ times
FREE Resource
17 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
You can use the sort() method to add all the elements of a list.
True
False
2.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
What will be the output of this snippet .
[1, 2, 3, 4, 5]
[5, 3, 1, 2, 4]
[5, 3, 1, 2, 4]
[1, 2, 3, 4, 5]
[1, 2, 3, 4, 5]
[5, 3, 1, 2, 4]
3.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
The list method called reverse(), can be used to reverse the order of the values in a list.
True
False
4.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
What will be the output of the snippet?
['d', 'c', 'b', 'a']
['a', 'b', 'c', 'd']
['d', 'c', 'b', 'a']
['a', 'b', 'c', 'd']
['a', 'b', 'c', 'd']
['d', 'c', 'b', 'a']
5.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
What is the output of the following snippet?
[ a, c, b]
[ ]
['Chispi', 'Mauro', 'Yuki']
NameError: name 'Mauro' is not defined
6.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
What is the output of the following snippet?
[ 'A',' ', 'C', 'B',]
[' ', 'C', 'B', 'A']
['A', 'B', 'C', ' ']
7.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
If you have a list l1, then the following assignment: l2 = l1 does not make a copy of the l1 list, but makes the variables l1 and l2 point to one and the same list in memory.
True
False
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Java Conditional Constructs

Quiz
•
9th - 10th Grade
20 questions
Python 3 Review Part 1

Quiz
•
9th - 12th Grade
15 questions
Java Script Quiz

Quiz
•
9th - 12th Grade
15 questions
Python Basics Quiz 1

Quiz
•
8th Grade - University
22 questions
mod 4 test

Quiz
•
9th - 12th Grade
15 questions
Selection in Python

Quiz
•
1st - 9th Grade
15 questions
Python End of Topic Quiz

Quiz
•
8th Grade - University
12 questions
Homework 1 Edublocks

Quiz
•
7th - 9th Grade
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade