Year 8 Python Quiz
Quiz
â¢
Computers
â¢
8th Grade
â¢
Hard
Michael Porter
Used 13+ times
FREE Resource
Enhance your content in a minute
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.
Access all questions and much more by creating a free account
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
Already have an account?
Similar Resources on Wayground
20 questions
Mobile Apps PayKu
Quiz
â¢
1st Grade - Professio...
19 questions
Year 7 Digi Tech - Terms 1 & 3
Quiz
â¢
7th - 8th Grade
20 questions
Navigating Excel
Quiz
â¢
5th - 12th Grade
20 questions
ASTS Kelas 7 "Ms. Excel"
Quiz
â¢
7th Grade - University
20 questions
MS EXCEL
Quiz
â¢
8th - 10th Grade
20 questions
Yr 8.1 Spreadsheet/Excel Models
Quiz
â¢
6th - 8th Grade
20 questions
Rješavanje problema i programiranje
Quiz
â¢
8th Grade
19 questions
Spreadsheet
Quiz
â¢
5th - 9th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
â¢
3rd Grade
20 questions
Equivalent Fractions
Quiz
â¢
3rd Grade
25 questions
Multiplication Facts
Quiz
â¢
5th Grade
22 questions
fractions
Quiz
â¢
3rd Grade
20 questions
Main Idea and Details
Quiz
â¢
5th Grade
20 questions
Context Clues
Quiz
â¢
6th Grade
15 questions
Equivalent Fractions
Quiz
â¢
4th Grade
20 questions
Figurative Language Review
Quiz
â¢
6th Grade
