Year 9 Python Programming Quiz

Quiz
•
Computers
•
8th Grade
•
Hard
Mr McCallion
Used 6+ times
FREE Resource
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?
//
/*
'
#
Create a free account and access millions of resources
Similar Resources on Wayground
16 questions
Python Basics

Quiz
•
KG - University
13 questions
Python

Quiz
•
7th - 8th Grade
16 questions
Iteration Recap

Quiz
•
8th - 9th Grade
20 questions
Intro to Python

Quiz
•
6th - 8th Grade
20 questions
Scratch Year 7 End of Unit Quiz

Quiz
•
7th - 8th Grade
17 questions
Python KS3

Quiz
•
6th - 9th Grade
15 questions
Python Basics

Quiz
•
KG - University
20 questions
Python year 9

Quiz
•
8th - 11th Grade
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Computers
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
24 questions
Flinn Lab Safety Quiz

Quiz
•
5th - 8th Grade
15 questions
Wren Pride and School Procedures Worksheet

Quiz
•
8th Grade
10 questions
Essential Lab Safety Practices

Interactive video
•
6th - 10th Grade
10 questions
Converting Repeating Decimals to Fractions

Quiz
•
8th Grade