Subroutines Quiz

Subroutines Quiz

9th Grade

12 Qs

quiz-placeholder

Similar activities

37. Algorithm - Producing Algorithms Quiz

37. Algorithm - Producing Algorithms Quiz

9th - 12th Grade

11 Qs

Subroutines

Subroutines

9th - 11th Grade

16 Qs

GCSE Computing - Subprograms

GCSE Computing - Subprograms

9th - 10th Grade

14 Qs

Flowchart

Flowchart

1st - 9th Grade

10 Qs

Module 2 - Lesson 7

Module 2 - Lesson 7

6th - 12th Grade

13 Qs

48. Programming 1 : Intro to Subroutines

48. Programming 1 : Intro to Subroutines

9th - 12th Grade

10 Qs

Subroutines - Procedures

Subroutines - Procedures

9th - 10th Grade

16 Qs

9G4 CS Python Programming Sequence and Vocabs

9G4 CS Python Programming Sequence and Vocabs

9th Grade

13 Qs

Subroutines Quiz

Subroutines Quiz

Assessment

Quiz

Computers

9th Grade

Hard

Created by

B G

Used 6+ times

FREE Resource

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a subroutine?

A) A type of variable

B) A block of code that performs a specific task and can be reused

C) An error in programming

D) A command that halts the program

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following describes a function in programming?

A) A sequence of actions to perform input/output.

B) A subroutine that returns a value.

C) A method for declaring variables.

D) A procedure that does not return anything.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following best describes a procedure?

A) A subroutine that returns a value

B) A subroutine that does not return a value

C) A special variable used to hold data

D) A method of storing data

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you declare a function in Python?

A) function myFunction()

B) def myFunction[]

C) def myFunction():

D) myFunction():

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In programming, what does the term 'parameters' refer to?

A) Values returned by the function

B) Special commands within the program

C) The inputs that a function can accept

D) The outcome of a procedure

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does it mean to 'call' a function?

A) To create a new variable

B) To send data to the function for processing

C) To execute the function and perform its instructions

D) To define a new subroutine

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which statement is true about functions and procedures?

A) Functions can take input but procedures cannot

B) Procedures can return values whereas functions cannot

C) Functions always return a value, while procedures do not

D) There is no difference between them

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?