
LIST-TUPLES-SET-DICTIONARY
Authored by Sundeep Kanthety
Computers
Professional Development
Used 23+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec ⢠1 pt
Which of the following commands will create a list?
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)
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
20 questions
Tecnologias EspecĂficas ECL
Quiz
â˘
Professional Development
20 questions
2021 SAT Christmas Party
Quiz
â˘
Professional Development
20 questions
EvaluaciĂłn de InvestigaciĂłn Preliminar
Quiz
â˘
University - Professi...
20 questions
2Âş-DAM-EvaluaciĂłn Inicial-HLC
Quiz
â˘
Professional Development
20 questions
0309 MF3-UF1 Tema 2
Quiz
â˘
Professional Development
20 questions
Basic 2 Python
Quiz
â˘
12th Grade - Professi...
20 questions
TUGAS 2 PROTOCOL DAN IP ADDRESS
Quiz
â˘
Professional Development
20 questions
Sains Komputer Tingkatan 5 - 1.3.1 Menerangkan get logik
Quiz
â˘
1st Grade - Professio...
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
â˘
3rd Grade
20 questions
Equivalent Fractions
Quiz
â˘
3rd Grade
25 questions
Multiplication Facts
Quiz
â˘
5th Grade
29 questions
Alg. 1 Section 5.1 Coordinate Plane
Quiz
â˘
9th Grade
22 questions
fractions
Quiz
â˘
3rd Grade
11 questions
FOREST Effective communication
Lesson
â˘
KG
20 questions
Main Idea and Details
Quiz
â˘
5th Grade
20 questions
Context Clues
Quiz
â˘
6th Grade
Discover more resources for Computers
15 questions
LOTE_SPN2 5WEEK3 Day 2 Itinerary
Quiz
â˘
Professional Development
20 questions
Black History Month Trivia Game #1
Quiz
â˘
Professional Development
20 questions
90s Cartoons
Quiz
â˘
Professional Development
42 questions
LOTE_SPN2 5WEEK2 Day 4 We They Actividad 3
Quiz
â˘
Professional Development
6 questions
Copy of G5_U6_L3_22-23
Lesson
â˘
KG - Professional Dev...
20 questions
Employability Skills
Quiz
â˘
Professional Development