Y10 subroutine

Y10 subroutine

9th - 12th Grade

10 Qs

quiz-placeholder

Similar activities

Computer science paper 2

Computer science paper 2

10th Grade

15 Qs

GCSE Computing - Subprograms

GCSE Computing - Subprograms

9th - 10th Grade

14 Qs

Using Subroutines in Python

Using Subroutines in Python

12th Grade

10 Qs

48. Programming 1 : Intro to Subroutines

48. Programming 1 : Intro to Subroutines

9th - 12th Grade

10 Qs

09-Subroutines-GCSE-Python

09-Subroutines-GCSE-Python

11th Grade

15 Qs

Programming Concepts: Subroutines

Programming Concepts: Subroutines

10th Grade

10 Qs

LA5.C5: Branching and Subroutines

LA5.C5: Branching and Subroutines

9th Grade - University

14 Qs

Higher SDD - Subroutines

Higher SDD - Subroutines

10th 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:

Breaking problems into smaller parts

Decomposition

Values passed into a subroutine

Arguments

Transfers program control to subroutine

Parameters

Values a subroutine receives

Control Flow

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?