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

2021八年級資訊複習大作戰

2021八年級資訊複習大作戰

8th Grade

19 Qs

Examen Diagnostico - Secundaria 2023

Examen Diagnostico - Secundaria 2023

6th - 8th Grade

20 Qs

Evaluación Primer Periodo Excel

Evaluación Primer Periodo Excel

10th Grade

20 Qs

BAI 11. TIN 8 SU DUNG BAN MAU

BAI 11. TIN 8 SU DUNG BAN MAU

8th Grade

20 Qs

UNIT 1.2 MEMORY

UNIT 1.2 MEMORY

10th Grade

19 Qs

Semester 1- Exploration of Robotics (Units 5-7)

Semester 1- Exploration of Robotics (Units 5-7)

6th - 8th Grade

17 Qs

9.1 Homework #3

9.1 Homework #3

9th Grade

20 Qs

After Effect Intoduction

After Effect Intoduction

10th Grade - University

15 Qs

AQA GCSE Computer Science - 3.2.10 Subroutines

AQA GCSE Computer Science - 3.2.10 Subroutines

Assessment

Quiz

Computers

8th - 10th Grade

Practice Problem

Medium

Created by

Mr Ling-Winston

Used 171+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

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?