
Python_Lists

Quiz
•
Computers
•
12th Grade - Professional Development
•
Hard
Pravallika Nakarikanti
Used 11+ times
FREE Resource
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] = []
Similar Resources on Wayground
10 questions
Lists in python

Quiz
•
University
10 questions
Python Sets

Quiz
•
University
10 questions
SQL transakcje

Quiz
•
12th Grade
10 questions
AFP Midtvejsevaluering

Quiz
•
University
10 questions
Python Collections

Quiz
•
Professional Development
8 questions
Programování - opakování

Quiz
•
University
10 questions
Programming Basics

Quiz
•
11th - 12th Grade
10 questions
basic programming quiz

Quiz
•
University
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