Year 8 Python EOT 3 test

Quiz
•
Computers
•
8th Grade
•
Hard

Shamim Fatima
Used 2+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Python basics

Quiz
•
6th - 8th Grade
13 questions
Program Development - Python: Errors

Quiz
•
8th - 10th Grade
14 questions
Python Basics - Year 8

Quiz
•
7th - 9th Grade
12 questions
Python

Quiz
•
7th - 9th Grade
12 questions
Python

Quiz
•
7th - 8th Grade
20 questions
Python Basics (CodeHS)

Quiz
•
7th - 12th Grade
20 questions
Grade 7 Python Programming Quiz

Quiz
•
7th Grade - University
12 questions
Python Print Statement

Quiz
•
6th - 10th Grade
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Computers
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
24 questions
Flinn Lab Safety Quiz

Quiz
•
5th - 8th Grade
15 questions
Wren Pride and School Procedures Worksheet

Quiz
•
8th Grade
10 questions
Essential Lab Safety Practices

Interactive video
•
6th - 10th Grade
10 questions
Converting Repeating Decimals to Fractions

Quiz
•
8th Grade