wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

ICT Programming Lesson 5

Total questions: 9

Worksheet time: 5mins

Name
Class
Date
1.

Named units of code that perform a task or cause an action to take place are called:

a)

events

b)

functions

c)

classes

d)

objects

2.

Consider the following pseudocode: Get the Sqrt of 9. This pseudocode is an example of what?

a)

An object that contains a parameter

b)

A class that contains an argument

c)

An event that contains a parameter

d)

A function that contains an argument

3.

Which of the following is a function used to tell the program what to do when a certain action takes place?

a)

Event

b)

Argument

c)

Event handler

d)

Parameter

4.

Which programming component is used when the mouse is clicked to trigger the execution of a specific action?

a)

Event

b)

Argument

c)

Event handler

d)

Parameter

5.

What are the benefits of using functions?

a)

Functions make the program more efficient.

b)

Functions make the program run without errors.

c)

Functions create new lines of code.

d)

Functions finds errors in the program.

6.

In Scratch the shape of a function indicated the type of ___ to be returned.

a)

errors

b)

code

c)

data

d)

argument

7.

What is the difference between an event and an event handler?

a)

The event handler triggers the event

b)

The event triggers the event handler

c)

Events and triggers are the same

d)

Triggers do nothing

8.

An argument is:

a)

an object that contains a parameter.

b)

event that contains a parameter.

c)

a value that is passed to a routine.

d)

a function that contains an argument.

9.

What do we call mini programs that we can use over and over inside of a bigger program?

a)

Functions

b)

Abstractions

c)

Decomposers

d)

Hardware