Search Header Logo

Higher SDD - Subroutines

Authored by Mr Fox

Computers

10th Grade

Used 20+ times

Higher SDD - 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 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

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?