Year 8 Python EOT 3 test
Quiz
•
Computers
•
8th Grade
•
Practice Problem
•
Hard
Shamim Fatima
Used 2+ times
FREE Resource
Enhance your content in a minute
17 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is a correct syntax to output "Hello World" in Python?
write (Hello World)
Print('Hello World')
print "Hello World"
print('Hello World')
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the syntax error in the following code?
print('Hello)
Missing parentheses
Missing closing quote
Incorrect indentation
Missing colon
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is a string in Python?
A number
A sequence of characters
A boolean value
A function
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
How would you fix the following code to use a single quote inside the string?
print('I'm using a single quote!')
Use double quotes around the string
Remove the single quote
Use a backslash before the single quote
Use triple quotes around the string
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the name of the variable in the following code?
greeting='Hello!'
name
Hello
greeting
variable
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which one is NOT a legal variable name?
flavour
flavour_choice
flavour!!
flavour123
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Why is xyz not a good variable name?
It is too short and not descriptive
It contains invalid characters
It starts with a number
It is a reserved word in Python
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
15 questions
Internet Basics
Quiz
•
5th Grade - University
13 questions
ICT and Retail Industry
Quiz
•
8th - 12th Grade
20 questions
Colour Theory
Quiz
•
3rd Grade - University
20 questions
Hardware and Software
Quiz
•
8th - 11th Grade
20 questions
Design your website
Quiz
•
7th - 12th Grade
20 questions
Artificial Intelligence and SketchUp
Quiz
•
8th - 10th Grade
13 questions
Year 8 Understanding Computers PART 1
Quiz
•
8th Grade
15 questions
Excel Chapter 12 Charts
Quiz
•
8th - 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
