Search Header Logo

Understanding Subprograms and Subroutines

Authored by Mrs Milliner

Computers

10th - 12th Grade

Used 8+ times

Understanding Subprograms and Subroutines
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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

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?