
AQA GCSE Computer Science - 3.2.10 Subroutines
Authored by R Sharma
Computers
8th - 10th Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
12 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
How do you call a subroutine?
By using the variable it is assigned to in the code
With a landline
By calling one of its local variables
By calling its parameters
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Why are subroutines useful?
To avoid repeating code and reduce length
Only to make debugging easier
Only to reduce the number of memory used
Trick question: functions are always disadvantageous
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Why are parameters useful?
It makes the subroutine more dynamic
It always makes the subroutine run faster
It makes the subroutine easier to call
It makes the subroutine easier to understand by the machine
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
How does a subroutine return data?
If its a procedure it depends on how it was coded, functions return values through a return statement
Through return statements
Through a text document created by the code
Into a variable generated by the function being called
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?