Search Header Logo

AQA GCSE Computer Science - 3.2.10 Subroutines

Authored by Mr Ling-Winston

Computers

8th - 10th Grade

Used 171+ times

AQA GCSE Computer Science - 3.2.10 Subroutines
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

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

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?