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
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)
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
first round quiz

Quiz
•
Professional Development
20 questions
Module 2 Review

Quiz
•
Professional Development
20 questions
CodeHS - Intro to Python - Basics and Console Interaction

Quiz
•
9th Grade - Professio...
27 questions
Python Quiz

Quiz
•
Professional Development
20 questions
Examen de Python

Quiz
•
Professional Development
20 questions
Python QUIZ 02

Quiz
•
KG - Professional Dev...
20 questions
Python Programming - Test 1

Quiz
•
University - Professi...
22 questions
Python basics

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