Font size
WorksheetsSensorOne Quiz 1 - Coding Concepts (TE4-4DP)
Total questions: 20
Worksheet time: 13mins
Select the most correct term that matched the definition: "The instructions in a computer program."
Code
Conditionals
Debugging
Event
Function
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."
Function
Iteration
Input
Output
Pseudocode
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"
Function
Code
Debugging
Event
Conditionals
Select the most correct term that matched the definition: "The process of identifying and removing errors from computer hardware or software"
Code
Function
Debugging
Iteration
Event
Select the most correct term that matched the definition: "How a computer displays or communications information E.g. Monitor, printer, headphones"
Code
Function
Input
Output
Variables
Select the most correct term that matched the definition: "A block of organised and reusable code that performs an action"
Code
Function
Event
Conditionals
Variables
Select the most correct term that matched the definition: "A simplified programming language that helps programmers develop algorithms"
Variables
Function
Pseudocode
Debugging
Event
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"
Event
Variables
Output
Debugging
Conditionals
Select the most correct term that matched the definition: "Code that tells a computer to repeat sets of instructions."
Variables
Event
Iteration
Function
Conditionals
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"
Variables
Event
Iteration
Function
Conditionals
What will happen when this code is run on Minecraft Education?
When the player walks, a gold block will be placed at the centre of the Minecraft world
When the player walks, a gold block won't be placed in any position as the position is not defined yet
When the player walks, a gold block will be placed at the position where the player is walking
Nothing will happen when this code is run because it is incomplete
Which of the following code will achieve the outcome pictured when it is run?
In the example pictured, what type of variable is 'password'?
Boolean
String
Position
Number
What are the names given to the 2 variables in the example code pictured?
"random", "create"
"random", "password"
"random number", "create"
"random number", "password"
What coding concepts can be seen in the code pictured? Select all that apply.
Event
Conditional
Variable
Iteration
Function
What would happen if the player scored 39 when the "check score" chat command was run?
Nothing would happen as a score of 39 does not meet any of the conditions
" :) " would be printed
" :/ " would be printed
" :( " would be printed
How is a function beneficial for saving time when editing code?
Functions allow you to repeat an action a specific number of times automatically.
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
Functions allow programmers to edit code in one place and the function will change anywhere it appears in the program.
Functions are not beneficial for saving time when editing code
Which section in the code pictured would need to be edited to create a pool of lava?
None of the above. You would need to create a new function called 'lava'
What kind of loop starts when a program starts and keeps going until the program ends?
While
For
Repeat
Forever
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?
The agent will till soil in the same spot, repeatedly for 8 times
The agent will till soil 12 blocks long
The agent will till soil 6 blocks long twice, but the two rows will not line up
The agent will till soil 6 blocks long, and then keep turning left and moving forward twice
