
Python Data Structures

Quiz
•
Computers
•
University - Professional Development
•
Hard
secondary purpose
Used 144+ times
FREE Resource
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
Similar Resources on Wayground
25 questions
Mock 2nd MCQ Python

Quiz
•
University
23 questions
PYTHON - 14.07.2023

Quiz
•
University
26 questions
Quiz 2.2

Quiz
•
Professional Development
30 questions
Java Programming

Quiz
•
University
25 questions
python loop 7th

Quiz
•
7th Grade - University
30 questions
String

Quiz
•
10th Grade - University
22 questions
Tin học - Bài 25

Quiz
•
10th Grade - University
26 questions
Codify Day 4

Quiz
•
Professional Development
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
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
15 questions
Fun Random Trivia

Quiz
•
Professional Development