wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

SensorOne Quiz 1 - Coding Concepts (TE4-4DP)

Total questions: 20

Worksheet time: 13mins

Name
Class
Date
1.

Select the most correct term that matched the definition: "The instructions in a computer program."

a)

Code

b)

Conditionals

c)

Debugging

d)

Event

e)

Function

2.

Select the most correct term that matched the definition: "The way a computer takes in information from the outside world. E.g. Keyboard, mouse, touchscreen."

a)

Function

b)

Iteration

c)

Input

d)

Output

e)

Pseudocode

3.

Select the most correct term that matched the definition: "In coding, it is a rule that must be met before an action is performed E.g. If tree is detected, chop for wood"

a)

Function

b)

Code

c)

Debugging

d)

Event

e)

Conditionals

4.

Select the most correct term that matched the definition: "The process of identifying and removing errors from computer hardware or software"

a)

Code

b)

Function

c)

Debugging

d)

Iteration

e)

Event

5.

Select the most correct term that matched the definition: "How a computer displays or communications information E.g. Monitor, printer, headphones"

a)

Code

b)

Function

c)

Input

d)

Output

e)

Variables

6.

Select the most correct term that matched the definition: "A block of organised and reusable code that performs an action"

a)

Code

b)

Function

c)

Event

d)

Conditionals

e)

Variables

7.

Select the most correct term that matched the definition: "A simplified programming language that helps programmers develop algorithms"

a)

Variables

b)

Function

c)

Pseudocode

d)

Debugging

e)

Event

8.

Select the most correct term that matched the definition: "Something that happens outside a program (like a screen tap or mouse click) that the program can respond to"

a)

Event

b)

Variables

c)

Output

d)

Debugging

e)

Conditionals

9.

Select the most correct term that matched the definition: "Code that tells a computer to repeat sets of instructions."

a)

Variables

b)

Event

c)

Iteration

d)

Function

e)

Conditionals

10.

Select the most correct term that matched the definition: "Containers that hold pieces of information that vary or change during the running of a program E.g. The player's score in a computer game"

a)

Variables

b)

Event

c)

Iteration

d)

Function

e)

Conditionals

11.

What will happen when this code is run on Minecraft Education?

a)

When the player walks, a gold block will be placed at the centre of the Minecraft world

b)

When the player walks, a gold block won't be placed in any position as the position is not defined yet

c)

When the player walks, a gold block will be placed at the position where the player is walking

d)

Nothing will happen when this code is run because it is incomplete

12.

Which of the following code will achieve the outcome pictured when it is run?

a)
b)
c)
d)
13.

In the example pictured, what type of variable is 'password'?

a)

Boolean

b)

String

c)

Position

d)

Number

14.

What are the names given to the 2 variables in the example code pictured?

a)

"random", "create"

b)

"random", "password"

c)

"random number", "create"

d)

"random number", "password"

15.

What coding concepts can be seen in the code pictured? Select all that apply.

a)

Event

b)

Conditional

c)

Variable

d)

Iteration

e)

Function

16.

What would happen if the player scored 39 when the "check score" chat command was run?

a)

Nothing would happen as a score of 39 does not meet any of the conditions

b)

" :) " would be printed

c)

" :/ " would be printed

d)

" :( " would be printed

17.

How is a function beneficial for saving time when editing code?

a)

Functions allow you to repeat an action a specific number of times automatically.

b)

Functions allow programmers to plan their code effectively as it uses simple language, allowing them to see faults in their logic before writing their code in a programming language

c)

Functions allow programmers to edit code in one place and the function will change anywhere it appears in the program.

d)

Functions are not beneficial for saving time when editing code

18.

Which section in the code pictured would need to be edited to create a pool of lava?

a)
b)
c)
d)

None of the above. You would need to create a new function called 'lava'

19.

What kind of loop starts when a program starts and keeps going until the program ends?

a)

While

b)

For

c)

Repeat

d)

Forever

20.

The aim of the program is to automatically get the agent to create 2 rows of tilled soil that is 6 blocks long, like in the image attached.

What problem will happen when the chat command "farm" is run in the code pictured?

a)

The agent will till soil in the same spot, repeatedly for 8 times

b)

The agent will till soil 12 blocks long

c)

The agent will till soil 6 blocks long twice, but the two rows will not line up

d)

The agent will till soil 6 blocks long, and then keep turning left and moving forward twice