Subroutines

Subroutines

8th Grade

11 Qs

quiz-placeholder

Similar activities

Milestone Exkul SMP SMA - Q8_2022_Python Exploration

Milestone Exkul SMP SMA - Q8_2022_Python Exploration

6th - 8th Grade

15 Qs

Python String Slicing

Python String Slicing

4th Grade - University

10 Qs

CMU CS1 Unit 2 review

CMU CS1 Unit 2 review

7th Grade - University

7 Qs

Python

Python

8th Grade

12 Qs

KODEKIDDO HACK #MLH3

KODEKIDDO HACK #MLH3

4th Grade - University

10 Qs

Python Final Assessment

Python Final Assessment

4th - 12th Grade

10 Qs

Python Tkinter

Python Tkinter

8th Grade

12 Qs

Test Python

Test Python

8th Grade - University

15 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

Access all questions and much more by creating a free account

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?