NEW
Font size
WorksheetsICT Programming Lesson 5
Total questions: 9
Worksheet time: 5mins
Named units of code that perform a task or cause an action to take place are called:
events
functions
classes
objects
Consider the following pseudocode: Get the Sqrt of 9. This pseudocode is an example of what?
An object that contains a parameter
A class that contains an argument
An event that contains a parameter
A function that contains an argument
Which of the following is a function used to tell the program what to do when a certain action takes place?
Event
Argument
Event handler
Parameter
Which programming component is used when the mouse is clicked to trigger the execution of a specific action?
Event
Argument
Event handler
Parameter
What are the benefits of using functions?
Functions make the program more efficient.
Functions make the program run without errors.
Functions create new lines of code.
Functions finds errors in the program.
In Scratch the shape of a function indicated the type of ___ to be returned.
errors
code
data
argument
What is the difference between an event and an event handler?
The event handler triggers the event
The event triggers the event handler
Events and triggers are the same
Triggers do nothing
An argument is:
an object that contains a parameter.
event that contains a parameter.
a value that is passed to a routine.
a function that contains an argument.
What do we call mini programs that we can use over and over inside of a bigger program?
Functions
Abstractions
Decomposers
Hardware
