
Python Basics Quiz
Authored by Hamza Motiyar
Other
9th Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
14 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to assign a value to a variable in Python?
x
#
/* */
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does len("hello") return?
4
5
6
Error
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you take user input in Python 3?
input()
readline()
raw_input()
scanf()
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of: python Copy Edit x = 5 y = 2 print(x // y)
2.5
2
3
1
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a list in Python?
{1, 2, 3}
(1, 2, 3)
[1, 2, 3]
1, 2, 3
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to define a function in Python?
function myFunc():
def myFunc:
define myFunc():
def myFunc():
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does this loop do? python Copy Edit for i in range(3): print(i)
Prints 1 to 3
Prints 0 to 3
Prints 0, 1, 2
Prints 1, 2, 3
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
10 questions
Ура, каникулы!
Quiz
•
1st Grade - Professio...
12 questions
Rancho Library Quiz
Quiz
•
9th Grade
10 questions
楽典基礎問題①:音符休符の長さ
Quiz
•
1st - 9th Grade
10 questions
FISIOLOGIA RESPIRATORIA
Quiz
•
1st - 10th Grade
13 questions
funnymike true fans
Quiz
•
1st Grade - University
15 questions
Honda Sport Bike
Quiz
•
1st Grade - University
17 questions
Fundamental Rights Bharat #12
Quiz
•
7th - 12th Grade
18 questions
Il centralino
Quiz
•
9th - 12th Grade
Popular Resources on Wayground
8 questions
2 Step Word Problems
Quiz
•
KG - University
20 questions
Comparing Fractions
Quiz
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Latin Bases claus(clois,clos, clud, clus) and ped
Quiz
•
6th - 8th Grade
22 questions
fractions
Quiz
•
3rd Grade
7 questions
The Story of Books
Quiz
•
6th - 8th Grade
Discover more resources for Other
8 questions
2 Step Word Problems
Quiz
•
KG - University
10 questions
Martin Luther King, Jr. For Kids
Interactive video
•
1st - 12th Grade
10 questions
Dr. King's Speech and Its Impact
Interactive video
•
7th - 12th Grade
20 questions
El Verbo IR Practice
Quiz
•
9th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
20 questions
Graphing Inequalities on a Number Line
Quiz
•
6th - 9th Grade
7 questions
Anti-Bullying ARS 15-341
Quiz
•
9th - 12th Grade
10 questions
Capitalize Countries and Places Quiz
Quiz
•
9th Grade