Year 9 Python Programming Quiz
Quiz
•
Computers
•
8th Grade
•
Practice Problem
•
Hard
Mr McCallion
Used 6+ times
FREE Resource
Enhance your content in a minute
16 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct syntax for outputting text in Python?
display("Hello World")
print("Hello World")
output("Hello World")
show("Hello World")
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the function used to convert a value to an integer in Python?
str()
float()
int()
bool()
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the input() function in Python?
To display text on the screen
To perform calculations
To receive input from the user
To create a loop
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which statement is used to create a selection statement in Python?
loop
while
if
for
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of indentation in Python code?
To show blocks of code that may or may not be executed depending on a condition
To show blocks of code in a more readable way so that the programmer can understand more easily
To comment out code, so that the words are treated as words for humans and not for the computer to execute
To define variables
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What type of loop iterates for a fixed number of times?
for loop
while loop
if statement
else statement
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which symbol is used to start a comment in Python?
//
/*
'
#
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
16 questions
Python Basics
Quiz
•
KG - University
19 questions
Pokemon
Quiz
•
1st Grade - Professio...
20 questions
Python Recap
Quiz
•
7th Grade - University
13 questions
Operating systems
Quiz
•
7th - 10th Grade
20 questions
CPA Revision MCQ1
Quiz
•
8th - 9th Grade
15 questions
Networking Quiz
Quiz
•
8th - 9th Grade
15 questions
History of Computers
Quiz
•
6th - 12th Grade
15 questions
Microsoft PowerPoint 2016
Quiz
•
8th Grade
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
