Understanding Subprograms and Subroutines

Understanding Subprograms and Subroutines

10th - 12th Grade

10 Qs

quiz-placeholder

Similar activities

Global and local variables

Global and local variables

10th - 12th Grade

10 Qs

Functions

Functions

10th Grade

8 Qs

Python and Algorithms

Python and Algorithms

12th Grade

15 Qs

CHAPTER1-FUNCTION

CHAPTER1-FUNCTION

12th Grade

10 Qs

Subroutine

Subroutine

KG - 12th Grade

10 Qs

Functions

Functions

12th Grade

10 Qs

Python Programming: Functions and Procedures

Python Programming: Functions and Procedures

9th - 11th Grade

12 Qs

Subroutine

Subroutine

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?