Python Lists

Quiz
•
Other
•
Professional Development
•
Hard

Ajay Tech
Used 78+ times
FREE Resource
50 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you create an empty list in python
[ ]
{ }
( )
2.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
How to create a new empty list in python
[ ]
list ( )
list.init( )
create.list ( )
3.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
grades = [2.0, 3.0, 4.0]
Which of the following code can be used to iterate over the grades list ?
for grade in grades :
# todo
i = 0
while i < len(grades) :
#todo
i = i + 1
[print ( i ) for i in grades]
for i, grade in enumerate(grades) :
# todo
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
grades = [2.0, 3.0, 4.0]
How do you get the length of the list above
len(grades)
length(grades)
list.length(grades)
list.len(grades)
5.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
a = [ 1, 3, 5 ]
b = [ 7, 9, 11 ]
How do you merge these two lists ?
a + b
a.extend(b)
a.merge(b)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
numbers [-3]
What is numbers [-3]
8
9
7
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
numbers = [1,2,3,4,5,6,7,8,9,10]
print ( numbers[-3] == numbers[7])
The output of the program above is
True
False
Create a free account and access millions of resources
Similar Resources on Wayground
50 questions
II_III Years-Java, Python, and C Quiz

Quiz
•
Professional Development
49 questions
2018 International Plumbing Code

Quiz
•
Professional Development
46 questions
Test Your Knowledge_AS_New_EN

Quiz
•
Professional Development
55 questions
Excel Assessment

Quiz
•
Professional Development
50 questions
Đề TM Testing Genius Part 1

Quiz
•
Professional Development
49 questions
Chapter 27

Quiz
•
Professional Development
50 questions
QUIZ PARTBOOK

Quiz
•
Professional Development
50 questions
Database Management Quiz

Quiz
•
Professional Development
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