Font size
WorksheetsYear 8 Alternative EOT 2 Quiz
Total questions: 40
Worksheet time: 21mins
Identify this Operation !=
not equal to
equal to
surprise! equal
Identify this Operation <=
Less than or equal to
Greater than or equal to
Moving left really fast
A Boolean data type can have what two values?
True and False
Yes and No
Yeah and Nah
What will the program print?
number = 10
print(number+10)
20
10
number+10
Is this true or false?
22 == 11 * 2
True
False
Does the # affect the program?
No
Yes
Look at this code. What is name called in Python?
function
variable
name
answer
Look at this code. How do we call in Python something enclosed in speech marks?
function
string
name
answer
What is the correct order of the following?
if
elif
else
if
elif
else
elif
if
else
elif
else
if
Read these lines of code.
1. x = "Hello"
2. y = "Hola"
3. z = "Ciao"
4. y = x
5. z = y
What will be the output print(z)?
(a)
x = 1
while True:
if x % 5 = = 0:
break
print(x)
x + = 1
What will be the output of this code?
error
2 1
0 3 1
None of these
Study the following function:
any([5>8, 6>3, 3>1])
What will be the output of this code?
False
True
Invaid Code
None of these
Study the following program:
a = 1
while True:
if a % 7 = = 0:
break
print(a)
a += 1
Which of the following is correct output of this program?
1 2 3 4 5
1 2 3 4 5 6
1 2 3 4 5 6 7
Invalid Syntax
i = 0
while i < 3:
print(i)
i += 1
else:
print(0)
what will be the output?
0 1
0 1 2
0 1 2 0
0 1 2 3
What happens when '2' == 2 is executed?
False
True
ValueError occurs
TypeError occurs
What is Boolean Logic?
A computer that can think logically
A sea located in Southern Europe
A part of code that uses 1 and 0 to represent "true" or "false" inputs
A sequenced set of steps to perform a task
What is debugging?
The process of finding and correcting errors in a computer program
Removing all the bugs from your house
Special commands that affect your data
Removing all the bugs from your computer
In Python, when are quotation marks used? (" ")
When you want to get the computer's attention
When using the print command to define a string
When someone is speaking
When writing a piece of code with integers
What does a "syntax error" mean?
The syntax (order) of the code is incorrect.
The code is too long for the computer to read.
The syntax (order) of the code is correct.
The process of running a program to see if it is correct.
In coding, what is a "comment"?
The act of making a comment
A piece of text in a code used to show coordinates
A fun joke left by the coder
A piece of text in a code that the computer does not run
Float
a number with a decimal point in it
code that carries out a specific task, working like a program within a program. e.g. print() input()
The name for the buttons, and windows that make up the part of the program you can see and interact with
to look for and correct errors in a program
Indent
when a block of code is placed further to the right than the previous block.
a part of a program that repeats itself, removing the need to type out the code multiple times.
a package of ready made code that can be imported into a Python program, making lots of functions available
code that carries out a specific task, working like a program within a program. e.g. print() input()
Loop
when a block of code is placed further to the right than the previous block.
a whole number.
a part of a program that repeats itself, removing the need to type out the code multiple times.
a package of ready made code that can be imported into a Python program, making lots of functions available
Program
a package of ready made code that can be imported into a Python program, making lots of functions available
tiny dots that make up a digital image
a popular programming language
a set of instructions that a computer follows in order to complete a task
Turtle
a popular programming language
a Python module that lets you draw shapes by moving a robotic turtle across the screen
The GUI module that Python uses
a series of characters. Strings can contain numbers, letters, or symbols and will have '' around them
Logical Error
errors that occur when the programmer uses a wrong strategy (e.g. indents making code appear in a loop)
errors caused by incorrect punctuation, spelling and grammar. (e.g. colour instead of color)
errors caused by factors during the execution of the program. (e.g. running Python 2 instead of Python 3, problem with network connectivity)
a universal code used by computers to represent symbols and text characters (e.g. an emoji)
Runtime Error
a place to store data that can change in a program such as the player's score, health or time. A variable has a name and a value.
errors caused by incorrect punctuation, spelling and grammar. (e.g. colour instead of color)
errors that occur when the programmer uses a wrong strategy (e.g. indents making code appear in a loop)
errors caused by factors during the execution of the program. (e.g. running Python 2 instead of Python 3, problem with network connectivity)
______________________ is a pictorial representation of steps.
Algorithm
Flowchart
Connectors
Flowlines
