What does this code do?
print("Hello world!")
Python Quiz
Quiz
•
Computers
•
9th Grade
•
Hard
Chris Dunn
Used 945+ 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
15 questions
C# Loops (All)
Quiz
•
9th - 12th Grade
15 questions
Variables Constants Datatypes
Quiz
•
8th - 12th Grade
21 questions
AP CSP Unit 5 Ch 1 Quiz
Quiz
•
9th - 12th Grade
20 questions
Python Recap
Quiz
•
7th Grade - University
15 questions
Python Introduction
Quiz
•
9th Grade
17 questions
Cyber Camps 2018 - Review Day 3 Windows
Quiz
•
7th - 12th Grade
20 questions
Electronic Spreadsheet
Quiz
•
9th Grade
22 questions
App Inventor Basics Quiz
Quiz
•
9th - 12th Grade
15 questions
Character Analysis
Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
10 questions
American Flag
Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension
Quiz
•
5th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25
Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers
Quiz
•
6th - 8th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
20 questions
Taxes
Quiz
•
9th - 12th Grade
17 questions
Parts of Speech
Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression
Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing
Quiz
•
9th - 12th Grade
10 questions
Identifying equations
Quiz
•
KG - University