Which of the following commands will create a list?

List - Class XI

Quiz
•
Computers
•
11th Grade
•
Hard
Rachna Bajaj
Used 21+ times
FREE Resource
10 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”)?
[‘hello’]
[‘h’, ‘e’, ‘l’, ‘l’, ‘o’]
[‘llo’]
[‘olleh’]
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What will be the output of the following Python code?
a=[10,23,56,[78]]
b=list(a)
a[3][0]=95
a[1]=34
print(b)
[10,34,56,[95]]
[10,23,56,[78]]
[10,23,56,[95]]
[10,34,56,[78]]
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following would give an error?
list1=[]
list1=[]*3
list1=[2,8,7]
None of the above
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is True regarding lists in Python?
Lists are immutable.
Size of the lists must be specified before its initialization
Elements of lists are stored in contagious memory location.
size(list1) command is used to find the size of lists.
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What will be the output of below Python code?
list1=[8,0,9,5]
print(list1[::-1])
[5,9,0,8]
[8,0,9]
[8,0,9,5]
[0,9,5]
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What will be the output of following Python code?
list1=["Python","Java","c","C","C++"]
print(min(list1))
c
C++
C
min function cannot be used on string elements
Create a free account and access millions of resources
Similar Resources on Quizizz
10 questions
Exploring Python: Input and Output Essentials

Quiz
•
9th Grade - University
15 questions
Python Lists

Quiz
•
8th - 12th Grade
10 questions
Python Variables

Quiz
•
7th - 12th Grade
14 questions
Lists, Subroutines and Sequence in Pseudocode - Python

Quiz
•
1st - 11th Grade
10 questions
python(strings)

Quiz
•
11th Grade
15 questions
ASK F2 -KOD ARAHAN (PYTHON)

Quiz
•
1st Grade - University
15 questions
Basic Python Coding

Quiz
•
11th - 12th Grade
7 questions
list

Quiz
•
11th Grade
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