Subroutines

Subroutines

8th Grade

11 Qs

quiz-placeholder

Similar activities

Subroutine

Subroutine

KG - 12th Grade

10 Qs

PythonTest

PythonTest

6th Grade - Professional Development

11 Qs

Variable Scope in Python

Variable Scope in Python

1st Grade - Professional Development

15 Qs

Conceptos de Programación

Conceptos de Programación

8th Grade - University

8 Qs

Advance level

Advance level

8th Grade

10 Qs

Python Data types & Exceptions

Python Data types & Exceptions

1st - 10th Grade

14 Qs

9.1 HWK 5 Subprograms

9.1 HWK 5 Subprograms

8th Grade

11 Qs

JavaScrip - DSI

JavaScrip - DSI

1st Grade - University

14 Qs

Subroutines

Subroutines

Assessment

Quiz

Computers

8th Grade

Practice Problem

Medium

Created by

Bhaskar Saxena

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

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?