GCSE J277 - 2.2.3 - Functions & Procedures

GCSE J277 - 2.2.3 - Functions & Procedures

7th Grade

20 Qs

quiz-placeholder

Similar activities

JavaScript Basics CodeHS

JavaScript Basics CodeHS

7th - 12th Grade

20 Qs

Computer Programming Vocabulary

Computer Programming Vocabulary

5th - 7th Grade

18 Qs

Coding Basics Vocabulary

Coding Basics Vocabulary

5th - 7th Grade

18 Qs

Coding Vocabulary Quiz

Coding Vocabulary Quiz

5th - 9th Grade

21 Qs

PLTW CS

PLTW CS

6th - 8th Grade

20 Qs

Coding Terms Quiz

Coding Terms Quiz

7th Grade

15 Qs

10 min test 22

10 min test 22

7th Grade

21 Qs

Intro to Python

Intro to Python

6th - 8th Grade

20 Qs

GCSE J277 - 2.2.3 - Functions & Procedures

GCSE J277 - 2.2.3 - Functions & Procedures

Assessment

Quiz

Computers

7th Grade

Medium

Created by

Paul Greenwood

Used 61+ times

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?