
python
Authored by Auzoom four
Education
Professional Development
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
16 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the time complexity of accessing an element by index in a list in Python?
a) O(1)
b) O(n)
c) O(log n)
d) O(n^2)
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the following code output?
lst = [1, 2, 3, 4]
lst[1:3] = [9, 8]
print(lst)
[1, 9, 8, 4]
[1, 2, 9, 8, 4]
[1, 9, 8]
Error
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code?
lst = [1, 2, 3]
lst.insert(1, 10)
print(lst)
a) [1, 10, 2, 3]
b) [10, 1, 2, 3]
c) [1, 2, 3, 10]
d) Error
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How would you remove all elements from a list lst?
a) lst.clear()
b) lst.remove()
c) lst.delete()
d) lst.reset()
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the following code output?
lst = [5, 10, 15, 20]
lst[1:3] = [8, 12]
print(lst)
a) [5, 8, 12, 20]
b) [5, 8, 12, 15, 20]
c) [5, 8, 12]
d) [5, 8, 12, 15, 20]
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code?
my_set = {1, 2, 3, 4, 5}
my_set.add(5)
print(my_set)
a) {1, 2, 3, 4, 5}
b) {5, 1, 2, 3, 4}
c) {1, 2, 3, 4, 5, 5}
d) Error
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of the following operation?
a = {1, 2, 3}
b = {3, 4, 5}
result = a & b
print(result)
a) {1, 2}
b) {3}
c) {3, 4, 5}
d) {1, 2, 3, 4, 5}
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
20 questions
Pre Test Workshop Penguatan IKM
Quiz
•
Professional Development
15 questions
Pengetahuan Am Permainan Catur
Quiz
•
KG - Professional Dev...
11 questions
Integritas Integritas Integritas!
Quiz
•
12th Grade - Professi...
15 questions
SEKOLAH MINGGU
Quiz
•
Professional Development
20 questions
Tema 7: El juego como recurso lúdico y educativo
Quiz
•
Professional Development
20 questions
Singleview Account
Quiz
•
Professional Development
15 questions
Primeiros Socorros
Quiz
•
Professional Development
20 questions
Gypsum Product - Final
Quiz
•
Professional Development
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
Discover more resources for Education
10 questions
How to Email your Teacher
Quiz
•
Professional Development
6 questions
3RD GRADE DECLARATION OF INDEPENDENCE EXIT TICKET
Quiz
•
Professional Development
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
22 questions
Multiplying Exponents with the Same Base
Quiz
•
9th Grade - Professio...
40 questions
Flags of the World
Quiz
•
KG - Professional Dev...