Python Quiz

Quiz
•
Computers
•
9th Grade
•
Hard

Chris Dunn
Used 960+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
What does this code do?
print("Hello world!")
Displays 'Hello world!' in the shell window.
Sends 'Hello world!' to the printer.
Waits for the user to type in 'Hello world!'
Displays 'hello, world.' in the shell window.
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What symbol do you type in to add a short comment?
"""
#
@
/
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
True or False:
phone.number is a good name for a variable.
True
False
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What does this function do?
input()
Opens the CD tray.
Asks the user to type something in.
Displays the word 'input'.
Exits the program.
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is a variable?
A number such as 25.
Plus, minus, multiply, divide or equals.
An array of text.
A storage location in the program which stores a value.
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
True or False:
5.0 is an example of the 'float' datatype.
True
False
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
You write a program where the user types how many apples they want to buy. The program calculates the total cost and displays it on the screen in pounds. What is the output?
numberOfApples (integer)
totalPrice = numberOfApples*25/100
totalPrice (float)
totalPrice = numberOfApples
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Intro to Computers

Quiz
•
9th - 12th Grade
16 questions
Internet Services

Quiz
•
6th - 12th Grade
20 questions
VR & AR Quiz

Quiz
•
9th - 10th Grade
15 questions
File Formats

Quiz
•
9th - 12th Grade
16 questions
Environmental impact

Quiz
•
7th - 11th Grade
20 questions
Principles of IT Basics 2021

Quiz
•
8th - 12th Grade
18 questions
MS Excel

Quiz
•
9th Grade
15 questions
Databases

Quiz
•
9th - 12th 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
20 questions
Digital Citizenship

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

Quiz
•
8th - 9th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
20 questions
Hardware vs. Software Quiz

Quiz
•
7th - 10th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade