Python Quiz

Quiz
•
Computers
•
9th Grade
•
Hard

Chris Dunn
Used 963+ 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
EDPM Quiz

Quiz
•
9th Grade
15 questions
Python Casting and Input

Quiz
•
8th - 11th Grade
20 questions
AP Computer Science EOT 1 (option 1)

Quiz
•
9th - 12th Grade
20 questions
Digital Media - Chapter 1

Quiz
•
9th - 12th Grade
20 questions
CODEHS KAREL

Quiz
•
7th - 9th Grade
20 questions
Excel Spreadsheet Intro

Quiz
•
KG - University
15 questions
RGB vs CMKY

Quiz
•
9th - 12th Grade
20 questions
binary, hexadecimal, and octal

Quiz
•
8th - 10th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

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

Interactive video
•
6th - 10th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade