Search Header Logo

Y10 subroutine

Authored by David Kang

Computers

9th - 12th Grade

Y10 subroutine
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 the primary purpose of a subroutine in programming?

To define a variable

To repeat a set of statements indefinitely

to perform a specific task with an identifiable name

To terminate the program

2.

FILL IN THE BLANK QUESTION

1 min • 1 pt

The values passed into a subroutine are called _______.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A subroutine is executed as soon as it is defined in the program.

True

False

4.

MATCH QUESTION

1 min • 1 pt

Match the terms to their definitions:

Transfers program control to subroutine

Arguments

Values passed into a subroutine

Parameters

Values a subroutine receives

Decomposition

Breaking problems into smaller parts

Control Flow

5.

REORDER QUESTION

1 min • 1 pt

Arrange the steps in the execution of a subroutine in order:

Execute the subroutine code

Define the subroutine

Call the subroutine

Return control to the main program

6.

OPEN ENDED QUESTION

3 mins • 1 pt

Explain one advantage of using subroutines in a program.

Evaluate responses using AI:

OFF

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Given the code snippet:
What will the output be?

3 + 7

10

add(3, 7)

Error

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?