Higher SDD - Subroutines

Higher SDD - Subroutines

10th Grade

10 Qs

quiz-placeholder

Similar activities

Classification of programming languages

Classification of programming languages

10th Grade

10 Qs

Understanding Decomposition in Computing

Understanding Decomposition in Computing

10th Grade - University

10 Qs

SLR 9 - Advanced Programming Techniques - Part Two

SLR 9 - Advanced Programming Techniques - Part Two

10th Grade

10 Qs

Computer science paper 2

Computer science paper 2

10th Grade

15 Qs

LA5.C5: Branching and Subroutines

LA5.C5: Branching and Subroutines

9th Grade - University

14 Qs

Global and local variables

Global and local variables

10th - 12th Grade

10 Qs

Advanced Python Iteration Quiz

Advanced Python Iteration Quiz

10th Grade

10 Qs

Functions

Functions

10th Grade

8 Qs

Higher SDD - Subroutines

Higher SDD - Subroutines

Assessment

Quiz

Computers

10th Grade

Medium

Created by

Mr Fox

Used 19+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of using subroutines in modular programming?

To make the program more complex

To make the program run faster

To increase the size of the program

To organize code into chunks that can be reused

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which subroutine returns a value?

Procedure

Function

Condition

Loop

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the keyword used to declare a function in Python?

define

function

func

def

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of formal parameters in subroutines?

They are the identifiers used to stand in for a value that will be passed when the subroutine is called

They are the actual values passed when the subroutine is called

They are the local scope variables

They are the global scope variables

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the advantage of using local scope variables in subroutines?

They can be changed accidentally

They are released from memory when no longer needed

They are visible to the entire program

They can interfere with other parts of the program

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which subroutine does not return any data?

Condition

Loop

Procedure

Function

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the keyword used to declare a procedure in Python?

def

procedure

function

proc

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?