Python LIST

Quiz
•
Professional Development
•
Professional Development
•
Hard
Vijayakumar R
Used 98+ times
FREE Resource
10 questions
Show all answers
1.
FILL IN THE BLANK QUESTION
1 min • 1 pt
What is the output of Following code?
List = ['spam', 2.0, 5, [10, 20]]
print(List[2])
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output of Following code?
cheeses = ['Cheddar', 'Edam', 'Gouda']
numbers = [42, 123]
print(cheeses, numbers)
['Cheddar', 'Edam', 'Gouda'] [42, 123]
[42, 123] ['Cheddar', 'Edam', 'Gouda']
Compilation Error
No output
3.
FILL IN THE BLANK QUESTION
1 min • 1 pt
What is output of the following Code (Execute in Intrepreter)
cheeses = ['Cheddar', 'Edam', 'Gouda']
'Edam' in cheeses
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In Python, list is mutable
True
False
5.
MULTIPLE SELECT QUESTION
1 min • 1 pt
Which of the following commands will create a list?
list1 = list()
list1 = []
list1 = list([1, 2, 3])
list1 = new List()
6.
FILL IN THE BLANK QUESTION
1 min • 1 pt
What is the output of the following code?
list = [1,2,3,4,5,6,7,8,9,10]
print(list[1:2])
7.
FILL IN THE BLANK QUESTION
1 min • 1 pt
What is the output of the following code?
list = [1,2,3,4,5,6,7,8,9,10]
print(list[2:1])
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Day 4

Quiz
•
Professional Development
10 questions
Simple Easy Basic Lua Quiz

Quiz
•
4th Grade - Professio...
15 questions
Simple Python Quiz

Quiz
•
Professional Development
14 questions
operators in python

Quiz
•
Professional Development
14 questions
Fundamental Python

Quiz
•
Professional Development
10 questions
Day-4 IOAC - ML Python Assessment_12th-Feb-2023

Quiz
•
Professional Development
10 questions
Flutter_Q5

Quiz
•
Professional Development
10 questions
Python Test 3A

Quiz
•
Professional Development
Popular Resources on Wayground
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
10 questions
"LAST STOP ON MARKET STREET" Vocabulary Quiz

Quiz
•
3rd Grade
19 questions
Fractions to Decimals and Decimals to Fractions

Quiz
•
6th Grade
16 questions
Logic and Venn Diagrams

Quiz
•
12th Grade
15 questions
Compare and Order Decimals

Quiz
•
4th - 5th Grade
20 questions
Simplifying Fractions

Quiz
•
6th Grade
20 questions
Multiplication facts 1-12

Quiz
•
2nd - 3rd Grade