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
14 questions
PowerPoint Techniques

Quiz
•
6th - 8th Grade
15 questions
G-8-Python Basics Quiz

Quiz
•
8th Grade
20 questions
Basics Python

Quiz
•
8th - 10th Grade
16 questions
Python programming

Quiz
•
6th - 12th Grade
20 questions
Class 8A Unit 9.1 Python Basic

Quiz
•
6th - 8th Grade
15 questions
Python Quiz

Quiz
•
8th Grade
15 questions
Code.org Express Course Quiz 2

Quiz
•
6th - 8th Grade
11 questions
Python L24 Debugging Skill

Quiz
•
6th - 8th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
15 questions
Acceptable Use Policy (Quiz)

Quiz
•
6th - 8th Grade
25 questions
Career Vs. Job

Quiz
•
6th - 8th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
30 questions
Introduction to Computers

Quiz
•
8th - 9th Grade
20 questions
Copyright and Fair Use

Quiz
•
6th - 8th Grade
15 questions
Computer Components Video

Interactive video
•
8th Grade
20 questions
Hardware vs. Software Quiz

Quiz
•
7th - 10th Grade