48. AQA GCSE (8525) SLR8 – 3.2 Introduction to subroutines

48. AQA GCSE (8525) SLR8 – 3.2 Introduction to subroutines

11th Grade

15 Qs

quiz-placeholder

Similar activities

Very Basic Programming

Very Basic Programming

10th - 12th Grade

20 Qs

S:R3 Structured Approach to Program Design and Construction Quiz

S:R3 Structured Approach to Program Design and Construction Quiz

11th Grade

13 Qs

2.1.1 Thinking abstractly

2.1.1 Thinking abstractly

11th Grade

10 Qs

Programming Languages H&L

Programming Languages H&L

9th - 12th Grade

17 Qs

A-level Subroutine

A-level Subroutine

11th Grade

20 Qs

Global and local variables

Global and local variables

10th - 12th Grade

10 Qs

Module 2 - Lesson 7

Module 2 - Lesson 7

6th - 12th Grade

13 Qs

GCSE Computer Science - Programming Keywords

GCSE Computer Science - Programming Keywords

9th - 12th Grade

15 Qs

48. AQA GCSE (8525) SLR8 – 3.2 Introduction to subroutines

48. AQA GCSE (8525) SLR8 – 3.2 Introduction to subroutines

Assessment

Quiz

Computers

11th Grade

Hard

Created by

James Cole

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a subroutine?

A debugging tool

A type of programming language

A block of code with a unique identifiable name within a program

A unique identifiable name within a program

Answer explanation

A subroutine is a block of code with a unique identifiable name within a program, allowing for modular and reusable code segments.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Why are subroutines used?

To make programs run faster

To increase the size of the code

To break down a big problem into smaller, manageable problems

To make the program harder to test

Answer explanation

Subroutines are used to break down a big problem into smaller, manageable problems, making the code more organized and easier to maintain.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are the benefits of using subroutines?

Makes it easier to code, test, debug, and reuse code

Increases the need to duplicate code

Slows down development

Makes the code harder to maintain

Answer explanation

Using subroutines makes it easier to code, test, debug, and reuse code, leading to more efficient development processes.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you identify a subroutine in a program?

By the comments within the code

By the number of lines in the code

By the use of keywords 'procedure' or 'function'

By the program's title

Answer explanation

The correct way to identify a subroutine in a program is by the use of keywords 'procedure' or 'function'. These keywords indicate the presence of a separate block of code that can be called upon.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a procedure call?

A method to end the program

A call to another procedure within a program

A type of error in programming

A request to access a website

Answer explanation

A procedure call is a call to another procedure within a program, allowing the program to execute the code within that procedure.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What happens when a subroutine is called?

The program pauses for user input

The program ends

The program jumps to the code inside the subroutine and executes it

The program deletes the subroutine

Answer explanation

When a subroutine is called, the program jumps to the code inside the subroutine and executes it, then returns to the point where the subroutine was called.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is typically contained in the main program when using subroutines?

Only variable declarations

Some logic and calls to subroutines

Only comments

All the code of the program

Answer explanation

The main program when using subroutines typically contains some logic and calls to subroutines, not just variable declarations or comments.

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?