Search Header Logo

GCSE Computing - Subprograms

Authored by Jon Bridgeman

Computers

9th - 10th Grade

14 Questions

Used 153+ times

GCSE Computing - Subprograms
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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

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?