GCSE Computing - Subprograms

GCSE Computing - Subprograms

9th - 10th Grade

14 Qs

quiz-placeholder

Similar activities

Small Basic-Turtle Graphics

Small Basic-Turtle Graphics

6th - 9th Grade

10 Qs

Python Selection

Python Selection

8th - 9th Grade

10 Qs

Python (Selection)

Python (Selection)

8th - 10th Grade

13 Qs

Program Development - Python: Errors

Program Development - Python: Errors

8th - 10th Grade

13 Qs

GCSE Computer Science - Python Programming Concepts

GCSE Computer Science - Python Programming Concepts

9th - 11th Grade

17 Qs

Python Programming: Functions and Procedures

Python Programming: Functions and Procedures

9th - 11th Grade

12 Qs

2) Python Variables

2) Python Variables

8th - 11th Grade

16 Qs

KS4 Programming Techniques (1)

KS4 Programming Techniques (1)

8th - 10th 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?