GCSE Computing - Subprograms

GCSE Computing - Subprograms

9th - 10th Grade

14 Qs

quiz-placeholder

Similar activities

Python (Selection)

Python (Selection)

8th - 10th Grade

13 Qs

Basics of Coding SC 1

Basics of Coding SC 1

7th - 9th Grade

15 Qs

Small Basic

Small Basic

7th - 9th Grade

17 Qs

10.4 Python Lists

10.4 Python Lists

7th - 10th Grade

14 Qs

Python Functions

Python Functions

9th - 12th Grade

13 Qs

Pseudocode

Pseudocode

9th - 11th Grade

15 Qs

Global and local variables

Global and local variables

10th - 12th Grade

10 Qs

Python Selection

Python Selection

8th - 9th Grade

10 Qs

GCSE Computing - Subprograms

GCSE Computing - Subprograms

Assessment

Quiz

Computers

9th - 10th Grade

Hard

Created by

Jon Bridgeman

Used 151+ times

FREE Resource

14 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The definition of a subprogram is...

A program which returns a value at the end

A piece of code that repeats

A program within a program

A program that allows data to be both input and output

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

The program shown here runs, with the user typing in "5" as their guess. What happens next?

Nothing

The computer prints "Well Done" if they guess right

The computer prints "Bad Luck!" if they guess wrong

A syntax error is generated

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the correct term for word shown in brackets?

Argument

Function

Variable

Parameter

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the correct term for the word in brackets shown in line 12?

Argument

Function

Variable

Parameter

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Which of the following statements about the program shown here, is true?

This program uses a subroutine

This program uses a function

This program uses parameters

This program uses arguments

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will the output of this program be, if the user enters a 6 when the program is run?

12

8

24

14

7.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Which of the following ARE advantages of using subprograms?


(Select all that apply)

They make code easier to read

They make code easier to debug

Reduces duplicate code within a program

Allows code to be "reused" by different programmers

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?