NEW
Font size
WorksheetsCoding Adventure Quiz V
Total questions: 9
Worksheet time: 5mins
What is a function?
A set of instructions that perform a specific task
A type of loop
A conditional statement
An operator
What does the 'goto' function do?
It collects items
It moves a character to an object
It checks conditions
It creates loops
What is the purpose of conditional loops?
To repeat code indefinitely
To define functions
To continue until a condition is met
To combine conditions
What does the 'if' statement do?
Combines multiple conditions
Creates a loop
Performs actions based on specific conditions
Defines a function
What is the syntax for a function without parameters?
functionName = (parameter) ->
functionName = () ->
functionName = (parameter1, parameter2) ->
functionName = (parameter1) ->
What does the 'and' operator do?
Checks if a condition is met
Combines multiple functions
Returns yes if both conditions are true
Returns yes if at least one condition is true
What is the purpose of boolean operators?
To check for errors
To combine multiple conditions
To create functions
To define loops
What is the syntax for a conditional loop?
while condition
functionName = () ->
until condition
if condition
What happens when a function is called?
The program restarts
The program stops
The function's code is executed with the given arguments
The function is deleted
