GCSE Computing - Subprograms

GCSE Computing - Subprograms

9th - 10th Grade

14 Qs

quiz-placeholder

Similar activities

Python Basic Loops

Python Basic Loops

10th - 11th Grade

18 Qs

Processing Beginners Quiz

Processing Beginners Quiz

7th - 12th Grade

15 Qs

Y9 Homework 1: Python Revisited 1

Y9 Homework 1: Python Revisited 1

9th Grade

13 Qs

Computer Science 2.2

Computer Science 2.2

10th Grade

16 Qs

Interactive Animations and Games from code.org

Interactive Animations and Games from code.org

7th - 12th Grade

14 Qs

Lesson 1.1 Statement terms Python

Lesson 1.1 Statement terms Python

7th - 9th Grade

18 Qs

Practice for Quiz #12

Practice for Quiz #12

9th - 12th Grade

15 Qs

CP 1 ~ 5.01/5.02 - Programming Errors & Debugging

CP 1 ~ 5.01/5.02 - Programming Errors & Debugging

10th Grade

18 Qs

GCSE Computing - Subprograms

GCSE Computing - Subprograms

Assessment

Quiz

Computers

9th - 10th Grade

Hard

Created by

Jon Bridgeman

Used 152+ 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?