Understanding Subprograms and Subroutines

Understanding Subprograms and Subroutines

10th - 12th Grade

10 Qs

quiz-placeholder

Similar activities

Advanced Python Iteration Quiz

Advanced Python Iteration Quiz

10th Grade

10 Qs

GCSE Unit 2 Prep - pseudocode

GCSE Unit 2 Prep - pseudocode

10th Grade

10 Qs

GCSE Computer Science - Programming Keywords

GCSE Computer Science - Programming Keywords

9th - 12th Grade

15 Qs

Quiz 120.2B - Subroutines (recognising key terms)

Quiz 120.2B - Subroutines (recognising key terms)

11th Grade

10 Qs

Unit 7

Unit 7

9th - 12th Grade

13 Qs

LA5.C5: Branching and Subroutines

LA5.C5: Branching and Subroutines

9th Grade - University

14 Qs

Using Subroutines in Python

Using Subroutines in Python

12th Grade

10 Qs

Computer science paper 2

Computer science paper 2

10th Grade

15 Qs

Understanding Subprograms and Subroutines

Understanding Subprograms and Subroutines

Assessment

Quiz

Computers

10th - 12th Grade

Medium

Created by

Mrs Milliner

Used 5+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is another term for sub-programs?

Subfields

Subsections

Subclasses

Subroutines

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does a sub-program or subroutine do?

Creates new variables

Deletes data

Starts the program

Performs a specific task

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How often can sub-programs be used in a program?

Repeatedly

A limited number of times

Twice

Only once

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the main advantage of using sub-routines in programming?

They make programs run faster

They reduce the size of the code

They can be reused

They are only used in large programs

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How would you define a subroutine called Add in Python ?

def add():

def add()

Def Add()

def Add():

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are parameters used for?

To run a subroutine

To define a subroutine

The number of lines of code in a subroutine

To pass data to a subroutine

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Data can be passed out of a subroutine by using the following command

pass

return

export

output

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?