Search Header Logo

Subroutines in Programming Quiz

Authored by Simon Beedie

Computers

10th Grade

Used 1+ times

Subroutines in Programming Quiz
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 are subroutines in programming?

Large blocks of code that perform multiple tasks

Small, reusable blocks of code that perform specific tasks

Code that is written once and never reused

Temporary code used for testing

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Why are in-built functions in programming languages considered reliable?

They are written by beginners

They are rarely used

They are thoroughly tested and ready to use

They are complex and difficult to understand

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is required to define a function?

Only the function code.

Name, inputs, function code, and outputs.

Only the name and outputs.

Only the inputs and outputs.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a key characteristic of procedures in programming?

They return a value to the main program.

They do not return a value.

They are used only for calculations.

They require no inputs.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the role of the 'global' keyword in Python?

To declare a variable as global

To declare a variable as local

To declare a variable as constant

To declare a variable as private

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of inputs in a procedure?

To pass parameters or arguments

To define the output

To declare variables

To initialize the procedure

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the logic of a procedure referred to as?

Procedure Code

Procedure Logic

Procedure Flow

Procedure Syntax

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?