Subroutines

Subroutines

8th Grade

11 Qs

quiz-placeholder

Similar activities

Y9 Subroutines L3 AFL

Y9 Subroutines L3 AFL

8th Grade

10 Qs

Subroutine Basics

Subroutine Basics

8th Grade

16 Qs

Scratch Lesson 5

Scratch Lesson 5

6th - 8th Grade

8 Qs

Lesson 4 - Subroutines

Lesson 4 - Subroutines

8th Grade

7 Qs

Adventure game project

Adventure game project

7th - 8th Grade

12 Qs

Subroutine

Subroutine

KG - 12th Grade

10 Qs

Scratch Lesson 1

Scratch Lesson 1

6th - 8th Grade

6 Qs

A words - GCSE Computer Science

A words - GCSE Computer Science

1st - 10th Grade

13 Qs

Subroutines

Subroutines

Assessment

Quiz

Computers

8th Grade

Medium

Created by

Bhaskar Saxena

Used 2+ times

FREE Resource

11 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the below line of code do?

def drawSquare(a,b,c,d):

Calls a subroutine called draqSquare

Defines a subroutine called a,b,c,d

Defines a subroutine called drawSquare

Makes a procedure

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Select the true statement

def hotel(option1, option2)

hotel('Mariott', ''Holiday Inn')

The parameters are Mariott and Holiday Inn

The arguments are option1 and option2

The subroutine is a function

One of the parameters is option1

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Select the false statement

def hotel(option1, option2)

hotel('Mariott', ''Holiday Inn')

The arguments are Mariott and Holiday Inn

There are three arguments

The name of the subroutine is hotel

The second parameter is option2

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

I want to define a subroutine that prints out the alphabet for any language. Which of the following is most appropriate?

def alphabet(language)

def alphabet(number1)

def calculate(language)

def example(num1)

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

True or False: A subroutine performs a specific task

True

False

It depends

6.

MULTIPLE SELECT QUESTION

45 sec • 2 pts

Select two benefits of using subroutines

It makes it easier to find errors

It makes the code run faster

It becomes easier for the computer to read

You can save re-writing the same code over and over

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Functions require a _______ line at the end.

return

rerun

retry

remain

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?