Y10 subroutine

Y10 subroutine

9th - 12th Grade

10 Qs

quiz-placeholder

Similar activities

LA5.C5: Branching and Subroutines

LA5.C5: Branching and Subroutines

9th Grade - University

14 Qs

Subroutine

Subroutine

10th Grade

15 Qs

Computer science paper 2

Computer science paper 2

10th Grade

15 Qs

Subroutine

Subroutine

KG - 12th Grade

10 Qs

Functions

Functions

12th Grade

10 Qs

Advanced Python Iteration Quiz

Advanced Python Iteration Quiz

10th Grade

10 Qs

Python Programming: Functions and Procedures

Python Programming: Functions and Procedures

9th - 11th Grade

12 Qs

Using Subroutines in Python

Using Subroutines in Python

12th Grade

10 Qs

Y10 subroutine

Y10 subroutine

Assessment

Quiz

Computers

9th - 12th Grade

Hard

Created by

David Kang

FREE Resource

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:

Values a subroutine receives

Parameters

Transfers program control to subroutine

Control Flow

Values passed into a subroutine

Decomposition

Breaking problems into smaller parts

Arguments

5.

REORDER QUESTION

1 min • 1 pt

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

Define the subroutine

Call the subroutine

Execute the subroutine code

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

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?