Year 8 Python Quiz
Quiz
•
Computers
•
8th Grade
•
Hard

Michael Porter
Used 11+ times
FREE Resource
24 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
Which function outputs text to the terminal/shell?
write()
print()
output()
type()
Answer explanation
The function that outputs text to the terminal is print(). It is specifically designed to display text on the screen.
2.
MULTIPLE CHOICE QUESTION
1 min • 2 pts
What letter will be printed on the screen after running this code:
e
x
t
Nothing prints
Answer explanation
The letter 't' will be printed on the screen after running the code because the code snippet does not contain any syntax errors and the last print statement outputs the letter 't'.
3.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
What output will this code produce?
Exeter
4
6
city
Answer explanation
The code will output 6 because the variable 'city' is assigned the value 6 before the print statement. 'Exeter' and 4 are not referenced in the code.
4.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
What will the output be from the following code?
print("Hello world!")
SyntaxError
Hello world!
"Hello world!"
print(Hello world!)
Answer explanation
The correct output will be 'Hello world!' as the code will print the string 'Hello world!' to the console.
5.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
What is an Integer?
A data type that contains whole numbers. eg: 3, 45, 124
Numbers with decimal point. eg: 0.5, 2.45, 56.04
Group of characters between quotation marks. eg: "dog"
Data type that can only be True or False.
Answer explanation
An Integer is a data type that contains whole numbers like 3, 45, 124. It does not include numbers with decimal points or characters in quotation marks.
6.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
What is a Float?
A data type that contains whole numbers. eg: 3, 45, 124
Numbers with decimal point. eg: 0.5, 2.45, 56.04
Group of characters between quotation marks. eg: "dog"
Data type that can only be True or False.
Answer explanation
Numbers with decimal point are known as Floats, such as 0.5, 2.45, 56.04. They are used to represent real numbers in programming.
7.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
What is a Boolean?
A data type that contains whole numbers. eg: 3, 45, 124
Numbers with decimal point. eg: 0.5, 2.45, 56.04
Group of characters between quotation marks. eg: "dog"
Data type that can only be True or False.
Answer explanation
Data type that can only be True or False.
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple

Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
20 questions
Computer Basics
Quiz
•
6th - 8th Grade
19 questions
Hardware Basics
Quiz
•
7th - 8th Grade
22 questions
Input and Output Devices Recap
Quiz
•
8th - 11th Grade
20 questions
How Computers Work
Quiz
•
7th - 8th Grade
21 questions
Struktur kawalan ulangan
Quiz
•
1st - 12th Grade
20 questions
S2 - Lesson 1 - Introduction to Programming (Python) G8
Quiz
•
8th Grade
25 questions
Python Revisoin
Quiz
•
8th Grade
20 questions
Revision Quiz on Input & Output Devices
Quiz
•
7th - 8th Grade
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
20 questions
ELA Advisory Review
Quiz
•
7th Grade
15 questions
Subtracting Integers
Quiz
•
7th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade