
Python_Lists
Quiz
•
Computers
•
12th Grade - Professional Development
•
Practice Problem
•
Hard
Pravallika Nakarikanti
Used 11+ times
FREE Resource
Enhance your content in a minute
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following are true of Python lists?
These represent the same list:
['a', 'b', 'c'] and ['c', 'a', 'b']
All elements in a list must be of the same type
A given object may appear in a list more than once
A list may contain any type of object except another list
2.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Consider the above list a. Which of the following outputs are correct?(Multi Correct)
3.
FILL IN THE BLANK QUESTION
45 sec • 1 pt
x = [10, [3.141, 20, [30, 'baz', 2.718]], 'foo']
Consider the above list x what is the expression that return 'z' in 'baz' from x
4.
FILL IN THE BLANK QUESTION
1 min • 1 pt
x = [10, [3.141, 20, [30, 'baz', 2.718]], 'foo']
Consider the list x shown above. What is the expression that returns ['baz', 2.718] from x. (Use Indexing and Slicing).
5.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
a = [1, 2, 3, 4, 5]
Consider the list a as shown above. Select all of the following statements that remove the middle element 3 from a so that it equals [1, 2, 4, 5]:
del a[2]
a.remove(3)
a[2:3] = []
a[2:2] = []
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
Condicionales en Racket
Quiz
•
University
10 questions
Bài tập Tin học lớp 4
Quiz
•
1st - 12th Grade
10 questions
Algorithm analysis: divide & conquer theory
Quiz
•
University
10 questions
Hàm
Quiz
•
Professional Development
10 questions
Programacion Orientada a Objetos
Quiz
•
12th Grade - University
9 questions
Test Excel
Quiz
•
10th - 12th Grade
10 questions
Information systems concepts
Quiz
•
University
10 questions
Web-II-Loop and Function
Quiz
•
University
Popular Resources on Wayground
8 questions
2 Step Word Problems
Quiz
•
KG - University
20 questions
Comparing Fractions
Quiz
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Latin Bases claus(clois,clos, clud, clus) and ped
Quiz
•
6th - 8th Grade
22 questions
fractions
Quiz
•
3rd Grade
7 questions
The Story of Books
Quiz
•
6th - 8th Grade
Discover more resources for Computers
8 questions
2 Step Word Problems
Quiz
•
KG - University
10 questions
Martin Luther King, Jr. For Kids
Interactive video
•
1st - 12th Grade
10 questions
Dr. King's Speech and Its Impact
Interactive video
•
7th - 12th Grade
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
7 questions
Anti-Bullying ARS 15-341
Quiz
•
9th - 12th Grade
13 questions
Model Exponential Growth and Decay Scenarios
Quiz
•
9th - 12th Grade
15 questions
TSI Math Practice Questions
Quiz
•
8th - 12th Grade
24 questions
Identify Properties of Polygons and Quadrilaterals
Quiz
•
9th - 12th Grade
