Which of the following commands will create a list?

python

Quiz
•
Other
•
University
•
Hard
G.SWAMINATHAN PLT
Used 4+ times
FREE Resource
24 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
list1 = list()
list1 = []
list1 = list([1, 2, 3])
all of the mentioned
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output when we execute list(“hello”)?
[‘h’, ‘e’, ‘l’, ‘l’, ‘o’]
[‘hello’]
[‘llo’]
[‘olleh’]
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Suppose listExample is [‘h’,’e’,’l’,’l’,’o’], what is len(listExample)?
5
4
None
Error
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Suppose list1 is [2445,133,12454,123], what is max(list1)?
2445
133
12454
123
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code snippet?
list1 = [1, 2, 3]
list2 = list1
list2.append(4)
print(list1)
[1, 2, 3]
[1, 2, 3, 4]
[1, 2, 3, 4, 4]
Error
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Given list1 = [10, 20, 30, 40, 50], what is list1[-2]?
30
40
50
20
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of the following code snippet?
list1 = [1, 2, 3]
list2 = list1
list2[0] = 100
print(list1)
[1, 2, 3]
[100, 2, 3]
[1, 2, 3, 100]
Error
Create a free account and access millions of resources
Similar Resources on Quizizz
20 questions
Korban & Aqiqah

Quiz
•
6th Grade - University
20 questions
Escalas

Quiz
•
University
20 questions
Pendidikan Pancasila & Kewarganegaraan

Quiz
•
KG - Professional Dev...
19 questions
Gerbang Logika

Quiz
•
10th Grade - University
20 questions
Quiz 3

Quiz
•
University
20 questions
QUIZ 1 : ADOBE ILLUSTRATOR BASIC TOOLS

Quiz
•
University
20 questions
Q6-2: Probabilidades - 2

Quiz
•
University
20 questions
Intervalos

Quiz
•
University
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade