Font size
WorksheetsJ2 Assessment 4 2025
Total questions: 65
Worksheet time: 1hrs 5mins
An instruction that tells the computer to perform a certain action is called a (a) .
(a) is a set of instructions that tell the computer what to do. Normally read and performed from top to bottom.
(a) is the term for a command that makes our Farmbot move forward by one square.
(a) are commands that allow you to perform a specific action without having to write lots of code.
(a) tells the computer to run a function, using open and closing brackets ( ) after the name of the function.
Match each programming term to its correct definition.
Argument
A value that goes between the brackets after the function name.
Variable
A named storage location for data in a program.
Operator
A symbol that performs a specific operation on one or more operands.
Statement
A single instruction or command in a program.
(a) is the term for a set of commands used to perform a particular task.
(a) is the term for a function that tells the Farmbot to prepare the soil.
(a) is the term for a function that takes a single argument such as 'potato' and plants the specified crop.
What is the term for the following definition? Programming in sequence.
Event-Driven Programming
Sequential Programming
A series of characters held between quotation marks, either single ' ' or double " " is called a (a) . This will stop the computer trying to run what is held between the quotes as a command.
(a) is the term for the set of rules that define the correct combination of symbols and characters in a programming language.
(a) are a set of rules that dictate how to name values in programming. Camel Case uses capital letters (e.g., camelCase). Snake Case uses underscores (e.g., snake_case).
What is the term for the following definition? An error in the code.
Bug
Loop
Array
Function
What is the term for the following definition? The process of looking for bugs and getting rid of them.
Debugging
Compiling
Designing
Documenting
What is the term for the following definition? A message that indicates there is an error in the code.
Error Message
Success Notification
Warning Signal
Output Statement
Syntax Errors are defined as (a)
Name Errors are defined as (a)
Indentation Errors are defined as (a)
What is the definition of Logic Errors?
Errors where the code runs but does not do what the programmer expects.
Errors that prevent the code from compiling.
Errors that cause the program to crash immediately.
Errors that are always detected by the compiler.
What is the definition of Console?
An interface used for text input and output.
A device used to play video games only.
What is the definition of Comment in programming?
A text annotation in the code that helps make code more readable. Comments are ignored by the computer. In Python, you can start a comment using the # symbol.
A function that executes a specific task in the program.
Ensuring that, over time, a program can be easily maintained. Can be defined as....
Maintainability of code
Creating code
Debugging
Algorithms
What does the function harvest_crop() do?
A function used to tell the Farmbot to harvest the crop in front of it.
A function that waters the plants automatically.
A function that monitors soil temperature.
A function that sends weather updates to the user.
What does the function ship_crops() do?
A function that will tell the Farmbot to navigate to the drop-off and ship the crops collected.
A function that waters the crops automatically every morning.
A function that plants new seeds in the farm plot.
A function that monitors the weather and adjusts irrigation accordingly.
What is a For Loop?
An instruction that allows the code within it to be repeated.
A variable that stores multiple values.
A function that returns a value.
A type of error in programming.
What is a Keyword in programming?
A word that has been reserved to perform specific functionality. Programmers cannot use it for anything other than this purpose.
A variable used to store user input.
A function that prints output to the screen.
A comment added to explain code.
What does Whitespace mean in Python?
Tabs and spaces in Python. Whitespace is how Python knows which commands to repeat in loops. Whitespace must be consistent.
A special character used to end a Python program.
A built-in Python function for sorting lists.
A type of variable used to store numbers in Python.
What is Iteration in programming?
The repeating of instructions, typically using loops. This allows algorithms to be designed quickly and with fewer unnecessary lines of code.
A method to store data permanently in a database.
A process of converting high-level code to machine code.
A way to connect multiple computers together in a network.
What is the primary programming language used in the Farmbot course?
JavaScript
C++
Python
Java
What is the key concept introduced in the 'Iteration' section?
Variables
Functions
For loops
Conditionals
What is a computer program?
A device that stores data
A set of instructions that tells the computer what to do
A type of computer hardware
A programming language
An instruction that tells the computer to perform a certain action
(a)
What is a function in programming?
A type of variable
A command that performs a specific action
A mistake in the code
A set of rules for writing code
Another word that means to 'run' a function
(a)
What is an argument?
A debate between programmers
A value that goes between the brackets after a function name
A type of error message
A naming convention
A series of characters inside of the quotation marks " "
(a)
What is the purpose of a comment in code?
To execute a command
To make code easier to understand but without executing a command
To cause an error message
To store data
What is a FOR loop used for in programming?
To store data
To repeat a section of code a fixed number of times
To create a new function
To define a variable
What is camel case?
A type of error message
A naming convention using capital letters at the start of additional words
A method of debugging
A type of loop
What is an algorithm?
A type of programming language
A set of commands used to perform a particular task
A mistake in the code
A naming convention
What is the console in programming?
A type of variable
An interface where text is output and input
A command that performs a specific action
A naming convention
What is the purpose of whitespace in programming?
To store data
To indent commands under lines of code such as for loops
To create a new function
To cause an error message
Snake case will use what symbol in its naming convention?
underscore _
space " "
hyphen -
full stop .
Match the following terms around problems with your code
A mistake in the code
Bug
The act of finding and fixing errors
Debugging
Sent to the computer console when there is a mistake in the code
Error message
Maintainability means that a program can be... (a)
Iteration is the (a) of instructions, by (b) through the piece of code
A word reserved by the program that allows it to perform a specific task
(a)
Select the two function calls
move_forward
move_forward()
turn("left")
"left"
Select the code that will prepare soil and then plant a tomato
Where is Farmbot going to be after running the code?
Identify the bug in the code shown
Indentation error - caused by incorrect spelling
Name Error - caused by incorrect spelling
Syntax Error - caused by incorrect brackets
Symtax Error - caused by incorrect quote marks
Which two of these functions have been written using snake case?
plant()
turn()
prepare_soil()
move_forward()
What is debugging?
The process of finding bugs in your code
The process of writing bugs into your code
A mistake in your code
The process of finding and removing bugs from your code
To bring up the code builder interface in Minecraft, we press:
The 'M' key
The 'C' key
The 'T' key
The 'TAB' key
When we give the variable a name - it is important that this name is:
Descriptive and Meaningful
Capital Letters
General
Random
What are 4 types of variables?
Number Variables
Position Variables
Boolean Variables
Text Variables
Colour Variables
Which of the following best describes a variable in programming?
A reserved word used to perform specific tasks
A storage location identified by a name that can hold a value
A type of error in the code
A comment added to explain code
Which symbol is commonly used to start a comment in Python?
//
#
--
/*
Which of the following is an example of a variable name in Python?
my_variable
print()
if else
for
What is the most basic form of decision-making in MakeCode?
AGENT
Repeat blocks
IF/Then blocks
Variables
What does the IF/Then block do?
Allows you to decide whether to perform an action based on a condition.
6 comparison operators, Match the following symbol to the correct term:
==
Equal to
≠
Not equal to
>
Greater than
<
Less than
>=
Greater than or equal to
What is the main benefit of using variables in your Minecraft code?
They make the game look better
They allow you to store and reuse values
What is the benefit of using loops in building structures in Minecraft?
They make the game faster.
They allow you to build large structures with less code.
They change the color of blocks
