
Python Data Structures
Quiz
•
Computers
•
University - Professional Development
•
Practice Problem
•
Hard
secondary purpose
Used 144+ times
FREE Resource
Enhance your content in a minute
26 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
s = 0
for d in range(0, 5, 0.1):
s += d
print(s)
Syntax Error
Type Error
Name Error
Traceback Error
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Output of: max(''please help '')
please help
Error
p
s
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What command is used to shuffle a list ‘L’?
L.shuffle()
random.shufflelist(L)
shuffle(L)
random.shuffle(L)
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is used to define a block of code (body of loop, if else etc.) in Python?
Indentation
Curly Braces
Parenthesis
Quotation
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In the following code, i is a/an _______?
i = (2)
String
Tuple
Int
Boolean
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the output of the following program?
language = ['P', 'y', 't', 'h', 'o', 'n']
print(language[:-4])
['t']
['P','y']
['P','y','t']
['t','h','o','n']
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Suppose a tuple test contains 5 elements. How can you set the 3rd element of the tuple to ‘Python’?
test[2] = 'Python'
test[3] = 'Python'
test(2) = 'Python'
Elements of tuple cannot be changed
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
22 questions
Weekly Test - 2
Quiz
•
Professional Development
22 questions
Round 1: Hack The Quest
Quiz
•
8th Grade - University
21 questions
CCNA4-Repaso Unidad 5
Quiz
•
University
21 questions
Internet Technologies(Quiz 3)
Quiz
•
Professional Development
21 questions
Repaso1 Digitación Multimedia
Quiz
•
University
21 questions
OOP - session 2.1 - JVM, Array, Stack
Quiz
•
University
21 questions
Quiz do CCNP ENCOR - capítulos 1 a 4
Quiz
•
University
22 questions
Almacenamiento de información
Quiz
•
University
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
Discover more resources for Computers
10 questions
Identifying Phishing Emails Quiz
Quiz
•
Professional Development
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
14 questions
2019 Logos
Quiz
•
Professional Development
9 questions
Principles of the United States Constitution
Interactive video
•
University
18 questions
Realidades 2 2A reflexivos
Quiz
•
7th Grade - University
10 questions
Dichotomous Key
Quiz
•
KG - University
25 questions
Integer Operations
Quiz
•
KG - University
