
Python Quiz
Authored by Servus Snap
Computers
University
Used 10+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
45 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which statement is incorrect
a=!b
a!=b
a=[1,2,3]
B=(9,6,5)
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Output? :
a = "You're Pretty"
Print(a)
You're Pretty
"You're Pretty"
a
NameError: name 'Print' is not defined
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output for the below program:
A="Hyperboloid"
print(len("A")
11
911
12
1
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does my_list.append(5) do?
Removes the last element from the list.
Creates a new list with only the number 5.
Appends the number 5 to the end of the list.
Adds 5 to the beginning of the list.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Used to define a function:
Def
def
define
Define
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output for the below program:
for i in range(10<11):
print(i)
10
11
0
Error: logical operators cannot be used inside range()
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
[1,2,3,4,5,6,7,8,9,10]
1,2,3,4,5,6,7,8,9,10
[0,1,2,3,4,5,6,7,8,9]
0,1,2,3,4,5,6,7,8,9
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
40 questions
PAK
Quiz
•
University
40 questions
ข้อสอบปลายภาควิชาการออกแบบสิ่งพิมพ์
Quiz
•
10th Grade - University
40 questions
OP 4 SPECIAL EXAM MIDTERM
Quiz
•
University
40 questions
[SMP-VIII] ASAS 2024 Ganjil
Quiz
•
8th Grade - University
50 questions
InfoMgt Long Quiz 1
Quiz
•
University
50 questions
Midterm Exam for AST 122
Quiz
•
University
40 questions
[SMP-IX] ASAS 2024 Ganjil
Quiz
•
9th Grade - University
50 questions
LATIHAN SOAL
Quiz
•
10th 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