
Python Data Structures
Authored by secondary purpose
Computers
University - Professional Development
Used 148+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
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
24 questions
Ujian KSI
Quiz
•
University
25 questions
Java Review
Quiz
•
9th Grade - University
25 questions
Rekayasa Perangkat Lunak
Quiz
•
University
21 questions
Quiz 3.1
Quiz
•
Professional Development
25 questions
Soal Aij
Quiz
•
University
25 questions
Office Word
Quiz
•
University
23 questions
Test 2 T1
Quiz
•
University
23 questions
ÔN TẬP CUỐI HKII
Quiz
•
4th Grade - University
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
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade