Python Quiz

Quiz
•
Computers
•
9th Grade
•
Hard

Chris Dunn
Used 956+ 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
22 questions
Scratch

Quiz
•
9th Grade
18 questions
Limbajul PASCAL

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

Quiz
•
9th - 12th Grade
15 questions
Introduction to Programming

Quiz
•
6th - 9th Grade
20 questions
Code.org Discoveries Conditional Blocks

Quiz
•
6th - 9th Grade
20 questions
Python First Steps Homework Quiz

Quiz
•
7th - 9th Grade
20 questions
Basics Python

Quiz
•
8th - 10th Grade
20 questions
Problem solving VB.NET PREP 3 First chapter

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade