AQA GCSE Computer Science - 3.2.10 Subroutines

AQA GCSE Computer Science - 3.2.10 Subroutines

8th - 10th Grade

20 Qs

quiz-placeholder

Similar activities

OCR GCSE Subroutines

OCR GCSE Subroutines

10th Grade

20 Qs

Subroutines

Subroutines

9th - 11th Grade

16 Qs

8525 GCSE CS 3.2.10 Structured programming and subroutines

8525 GCSE CS 3.2.10 Structured programming and subroutines

10th - 11th Grade

19 Qs

GCSE Computer Science - Programming Keywords

GCSE Computer Science - Programming Keywords

9th - 12th Grade

15 Qs

ACP Theory 1.1

ACP Theory 1.1

KG - University

20 Qs

Subroutine

Subroutine

10th Grade

15 Qs

Programming terminology

Programming terminology

9th Grade

15 Qs

AQA GCSE Computer Science - 3.2.11 Structured programming

AQA GCSE Computer Science - 3.2.11 Structured programming

8th - 10th Grade

20 Qs

AQA GCSE Computer Science - 3.2.10 Subroutines

AQA GCSE Computer Science - 3.2.10 Subroutines

Assessment

Quiz

Computers

8th - 10th Grade

Medium

Created by

Mr Ling-Winston

Used 164+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is a subroutine?
A named self-contained section of code that performs a specific task
Another name for pseudocode
A routine that has no connection at all to the main routine
A word used exclusively in movies to sound cool

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the difference between a function and a procedure?
Procedures just carry out instructions, functions always return values
Functions carry out instructions and procdures return values
Trick question: they are the same thing
Both always return values but in different data types

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Define a paramater
A variable named in the subroutine heading that uses values you give it
Instructions that stop functions from working if theyaren't followed by the user
Boolean logic used exclsuively in functions
An instruction that will return a value if it is followed through

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Define a local variable
A variable defined in a function
A variable declared at the beginning of the main program
A variable declared in the main program
A vaiable declared right at the end of the main program

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Define a global variable
A variable declared in the main program
A variable declared at the beginning of the main program
A variable declared in a function
A vaiable declared right at the end of the main program

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What makes a local variable special?
It can only be called in the subroutine it is declared in
The computer is unable to understand it without third-party software
Its value is unique to your LAN
Trick question: it's the same as a global variable

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is an advantage of using a local variable?
The function can be used with different variables for the same purpose
The code is harder to disrrupt
It's easier for the user to call back to it outside the function
Trick question: local variables are useless

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?