Which of the following commands will create a list?
LIST-TUPLES-SET-DICTIONARY

Quiz
•
Computers
•
Professional Development
•
Hard
Sundeep Kanthety
Used 23+ times
FREE Resource
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
list1 = list()
list1 = list()
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’]
[‘hello’]
None of the Above
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
To shuffle the list(say list1) what function do we use?
list1.shuffle()
shuffle(list1)
random.shuffle(list1)
random.shuffleList(list1)
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Suppose list1 is [2, 33, 222, 14, 25], What is list1[:-1]?
[2, 33, 222, 14]
Error
25
[25, 14, 222, 33, 2]
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
>>>names = ['Amir', 'Bear', 'Charlton', 'Daman'] >>>print(names[-1][-1])
A
Daman
Error
n
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Suppose list1 is [3, 4, 5, 20, 5], what is list1.index(5)?
0
1
4
2
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
To insert 5 to the third position in list1, we use which command?
list1.insert(3, 5)
list1.insert(2, 5)
list1.add(3, 5)
list1.append(3, 5)
Create a free account and access millions of resources
Similar Resources on Quizizz
21 questions
CÂU LỆNH WHILE

Quiz
•
Professional Development
20 questions
Fundamentals I. Mitad de módulo

Quiz
•
Professional Development
30 questions
ML/AI internship Intermediate assessment

Quiz
•
Professional Development
20 questions
js_edu_wrap_up

Quiz
•
1st Grade - Professio...
20 questions
Fundamentals I. Principio de módulo

Quiz
•
Professional Development
20 questions
Round-1 Technical Aptitude

Quiz
•
11th Grade - Professi...
20 questions
Q1 PYTHON EXPRESSION

Quiz
•
Professional Development
20 questions
PL SQL

Quiz
•
University - Professi...
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade