
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
15 questions
Ulangan Bahasa Indonesia
Quiz
•
9th Grade
10 questions
Ke-Al Azhar 8 an
Quiz
•
7th Grade - University
15 questions
ESP 9 Karapatan at Tungkulin - Subukin
Quiz
•
7th - 10th Grade
11 questions
Обучение грамоте
Quiz
•
1st - 11th Grade
10 questions
PSA ÉTICA 3° Periodo
Quiz
•
9th Grade
10 questions
Lección 4 Pathfinder 7
Quiz
•
1st - 12th Grade
10 questions
ทดสอบความรู้
Quiz
•
9th Grade
13 questions
disney princesses
Quiz
•
KG - Professional Dev...
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 Other
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
15 questions
Main Idea and Supporting Details.
Quiz
•
4th - 11th Grade
10 questions
Theme
Quiz
•
9th Grade
12 questions
Exponential Growth and Decay
Quiz
•
9th Grade
20 questions
Exponent Rules Review
Quiz
•
8th - 9th Grade
25 questions
Complementary and Supplementary Angles
Quiz
•
7th - 10th Grade