Search Header Logo

GCSE J277 - 2.2.3 - Functions & Procedures

Authored by Paul Greenwood

Computers

7th Grade

Used 71+ times

GCSE J277 - 2.2.3 - Functions & Procedures
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a function in programming?

A reusable block of code that performs a specific task
The order in which statements are executed
A statement that prints text to the screen
None of the above

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a procedure in programming?

A reusable block of code that performs a specific task
The order in which statements are executed
A statement that prints text to the screen
None of the above

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the main difference between a function and a procedure?

Procedures return a value, while functions do not
Functions return a value, while procedures do not
They both return values and sometimes don't
There is no difference between a function and a procedure

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a parameter in a function or procedure?

A statement that prints text to the screen
A variable initialised when a function is called
A value passed when the function or procedure is called
None of the above

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a return statement in a function?

A loop that repeats a set number of times
A conditional statement that executes a block of code
A value being kept in the function
A value being returned to the main program

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a local variable in a function or procedure?

Variable that's only accessible in the function or procedure
A variable accessible anywhere in the program

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a global variable

Variable that's only accessible in the function or procedure
A variable accessible anywhere in the program

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?