wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Year 8 Alternative EOT 2 Quiz

Total questions: 40

Worksheet time: 21mins

Name
Class
Date
1.
When you have an error in your code what is the term to summarise finding and fixing that error?
a)
Error checking
b)
Debugging
c)
Syntax finder
d)
Error finder
2.
A step-by-step process, or a defined list of steps required to accomplish a goal
a)
algorithm
b)
variable
c)
string
d)
module
3.
Makes it easy to repeat steps over and over
a)
for loops
b)
variables
c)
strings
d)
modules
4.
Coding is all about...
a)
Communicating with other students
b)
Playing games
c)
Giving instructions to a digital device
d)
Making a website
5.
Look at this code, what shape will it make?
a)
Square
b)
Triangle
c)
Rectangle
d)
Hexagon 
6.
What is wrong with this code?
a)
Missing Brackets
b)
Missing Comma
c)
Missing Colon
d)
Incorrect spelling 
7.
What does this code do?
a)
Draws a red rectangle
b)
Draws a red triangle
c)
Draws a red square
d)
Draws a black square
8.
What does forward(300) do?
a)
Moves in the direction it is facing 300
b)
Moves down the screen 300
c)
Moves up the screen 300
d)
Moves in a circle 400 times
9.

Identify this Operation !=

a)

not equal to

b)

equal to

c)

surprise! equal

10.

Identify this Operation <=

a)

Less than or equal to

b)

Greater than or equal to

c)

Moving left really fast

11.

A Boolean data type can have what two values?

a)

True and False

b)

Yes and No

c)

Yeah and Nah

12.

What will the program print?

number = 10

print(number+10)

a)

20

b)

10

c)

number+10

13.

Is this true or false?


22 == 11 * 2

a)

True

b)

False

14.

Does the # affect the program?

a)

No

b)

Yes

15.

Look at this code. What is name called in Python?

a)

function

b)

variable

c)

name

d)

answer

16.

Look at this code. How do we call in Python something enclosed in speech marks?

a)

function

b)

string

c)

name

d)

answer

17.

What is the correct order of the following?

a)

if

elif

else

b)

if

elif

else

elif

c)

if

else

elif

d)

else

if

18.

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)  

19.

x = 1

while True:

if x % 5 = = 0:

break

print(x)

x + = 1

What will be the output of this code?

a)

error

b)

2 1

c)

0 3 1

d)

None of these

20.

Study the following function:

any([5>8, 6>3, 3>1])

  

What will be the output of this code?

a)

False

b)

True

c)

Invaid Code

d)

None of these

21.

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?

a)

1 2 3 4 5

b)

1 2 3 4 5 6

c)

1 2 3 4 5 6 7

d)

Invalid Syntax

22.

i = 0  

while i < 3:  

    print(i)  

    i += 1  

else:  

    print(0)  

what will be the output?

a)

0 1

b)

0 1 2

c)

0 1 2 0

d)

0 1 2 3

23.

What happens when '2' == 2 is executed?

a)

False

b)

True

c)

ValueError occurs

d)

TypeError occurs

24.

What is Boolean Logic?

a)

A computer that can think logically

b)

A sea located in Southern Europe

c)

A part of code that uses 1 and 0 to represent "true" or "false" inputs

d)

A sequenced set of steps to perform a task

25.

What is debugging?

a)

The process of finding and correcting errors in a computer program

b)

Removing all the bugs from your house

c)

Special commands that affect your data

d)

Removing all the bugs from your computer

26.

In Python, when are quotation marks used? (" ")

a)

When you want to get the computer's attention

b)

When using the print command to define a string

c)

When someone is speaking

d)

When writing a piece of code with integers

27.

What does a "syntax error" mean?

a)

The syntax (order) of the code is incorrect.

b)

The code is too long for the computer to read.

c)

The syntax (order) of the code is correct.

d)

The process of running a program to see if it is correct.

28.

In coding, what is a "comment"?

a)

The act of making a comment

b)

A piece of text in a code used to show coordinates

c)

A fun joke left by the coder

d)

A piece of text in a code that the computer does not run

29.

Float

a)

a number with a decimal point in it

b)

code that carries out a specific task, working like a program within a program. e.g. print() input()

c)

The name for the buttons, and windows that make up the part of the program you can see and interact with

d)

to look for and correct errors in a program

30.

Indent

a)

when a block of code is placed further to the right than the previous block.

b)

a part of a program that repeats itself, removing the need to type out the code multiple times.

c)

a package of ready made code that can be imported into a Python program, making lots of functions available

d)

code that carries out a specific task, working like a program within a program. e.g. print() input()

31.

Loop

a)

when a block of code is placed further to the right than the previous block.

b)

a whole number.

c)

a part of a program that repeats itself, removing the need to type out the code multiple times.

d)

a package of ready made code that can be imported into a Python program, making lots of functions available

32.

Program

a)

a package of ready made code that can be imported into a Python program, making lots of functions available

b)

tiny dots that make up a digital image

c)

a popular programming language

d)

a set of instructions that a computer follows in order to complete a task

33.

Turtle

a)

a popular programming language

b)

a Python module that lets you draw shapes by moving a robotic turtle across the screen

c)

The GUI module that Python uses

d)

a series of characters. Strings can contain numbers, letters, or symbols and will have '' around them

34.

Logical Error

a)

errors that occur when the programmer uses a wrong strategy (e.g. indents making code appear in a loop)

b)

errors caused by incorrect punctuation, spelling and grammar. (e.g. colour instead of color)

c)

errors caused by factors during the execution of the program. (e.g. running Python 2 instead of Python 3, problem with network connectivity)

d)

a universal code used by computers to represent symbols and text characters (e.g. an emoji)

35.

Runtime Error

a)

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.

b)

errors caused by incorrect punctuation, spelling and grammar. (e.g. colour instead of color)

c)

errors that occur when the programmer uses a wrong strategy (e.g. indents making code appear in a loop)

d)

errors caused by factors during the execution of the program. (e.g. running Python 2 instead of Python 3, problem with network connectivity)

36.
What does this shape represent?
a)
Input/Output
b)
Decision
c)
Process
d)
Start/Stop
37.

______________________ is a pictorial representation of steps.

a)

Algorithm

b)

Flowchart

c)

Connectors

d)

Flowlines

38.
What does decomposition mean?
a)
focuses on the important information only, ignoring irrelevant detail
b)
Step by step instructions on solving a problem.
c)
Thinking like a computer
d)
This is the breaking down of a complex problem into smaller parts
39.
What does the following flowchart symbol represent?
a)
A process
b)
An output
c)
A decision (choice)
d)
End
40.
What does the following flowchart symbol represent?
a)
A process
b)
Input / Output
c)
Start / End
d)
A sub-process