Hinge_2.2_subroutines

Hinge_2.2_subroutines

12th Grade

7 Qs

quiz-placeholder

Similar activities

Y10 subroutine

Y10 subroutine

9th - 12th Grade

10 Qs

Coding - Computer Programming

Coding - Computer Programming

KG - University

10 Qs

AP CSP Big Idea 1

AP CSP Big Idea 1

9th - 12th Grade

10 Qs

Scratch basic Revision

Scratch basic Revision

3rd - 12th Grade

8 Qs

Introduction to Programming

Introduction to Programming

10th - 12th Grade

10 Qs

Comp Prog A 9-3-21

Comp Prog A 9-3-21

9th - 12th Grade

10 Qs

Code.org CSP Unit 4 Review

Code.org CSP Unit 4 Review

9th - 12th Grade

6 Qs

48. Programming 1 : Intro to Subroutines

48. Programming 1 : Intro to Subroutines

9th - 12th Grade

10 Qs

Hinge_2.2_subroutines

Hinge_2.2_subroutines

Assessment

Quiz

Computers

12th Grade

Hard

Created by

George Dong

FREE Resource

7 questions

Show all answers

1.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

A subroutine is (tick 3)

also known as subprogram

a section / block of code with a name

called by its name to run its code

a new file in a program

2.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

A subroutine is (tick 2)

defined first

called by its name with correct data passed in

only used once in a program

used only in the same file

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A subroutine can be a procedure or a function

True

False

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A subroutine can be a procedure or a function. It ideally will

do only ONE task in each subroutine.

do multiple tasks in each subroutine.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A procedure is a type of subroutine, and it will

return a value to the caller program

NOT return a value to the caller program

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A function is a type of subroutine, and it will

return a value to the caller program

NOT return a value to the caller program

7.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

subroutines will help (tick 2)

to make the code reusable

to make the code more maintainable

to make the code run faster

to use less RAM space when running