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
Desarrollo de aplicaciones

Quiz
•
Professional Development
30 questions
Excel Básico COLMEDICA

Quiz
•
Professional Development
20 questions
C CODE MASTER A

Quiz
•
Professional Development
20 questions
Python day1 quiz

Quiz
•
Professional Development
20 questions
MTA - Mobility and Devices Fundamentals Part 1

Quiz
•
10th Grade - Professi...
20 questions
Python

Quiz
•
Professional Development
20 questions
Module 1 Exercise (Python)

Quiz
•
Professional Development
20 questions
Quiz-1

Quiz
•
University - Professi...
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
11 questions
All about me

Quiz
•
Professional Development
10 questions
How to Email your Teacher

Quiz
•
Professional Development
15 questions
Fun Random Trivia

Quiz
•
Professional Development
22 questions
Anne Bradstreet 1612-1672

Quiz
•
Professional Development
18 questions
Spanish Speaking Countries and Capitals

Quiz
•
KG - Professional Dev...
14 questions
Fall Trivia

Quiz
•
11th Grade - Professi...
15 questions
Disney Characters Quiz

Quiz
•
Professional Development
15 questions
Quiz to Highlight Q types & other great features in Wayground

Quiz
•
Professional Development