Subroutines in Programming Quiz

Subroutines in Programming Quiz

10th Grade

10 Qs

quiz-placeholder

Similar activities

ROBOT C PART2

ROBOT C PART2

10th - 12th Grade

13 Qs

AP Computer Science-Quiz 2(G10)

AP Computer Science-Quiz 2(G10)

9th - 12th Grade

10 Qs

Small Basic Mid Point Review

Small Basic Mid Point Review

6th - 12th Grade

8 Qs

MIT App Inventor Basics

MIT App Inventor Basics

9th - 12th Grade

10 Qs

C Programming Concepts

C Programming Concepts

10th Grade

15 Qs

Python Classes Quiz

Python Classes Quiz

9th - 12th Grade

15 Qs

GCSE Unit 2 Prep - pseudocode

GCSE Unit 2 Prep - pseudocode

10th Grade

10 Qs

APCSP Big Idea 4

APCSP Big Idea 4

8th - 10th Grade

15 Qs

Subroutines in Programming Quiz

Subroutines in Programming Quiz

Assessment

Quiz

Computers

10th Grade

Hard

Created by

Simon Beedie

FREE Resource

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

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?