Search Header Logo

Subroutines Python

Authored by CALUM WOODHEAD

Computers

10th Grade

8 Questions

Used 19+ times

Subroutines Python
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

What will print?

nothing
5
6
an error message

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Leo wants to create a subroutine that will roll a dice. Which syntax is correct?

def dice roll ():

def diceroll ()

def diceroll ():

def diceroll []:

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a function?

A section of code that will return a value

A section of code that will return nothing

A section of code that will return a command

None of the above

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a Procedure?

A section of code that will return a value

A section of code that will return nothing

A section of code that will return a command

None of the above

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to start a procedure?

def

Def

define

(def)

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a subroutine?

Function

Procedure

Parameter

Functions and Procedures

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a benefit of using Subroutines?

More efficient

Takes longer to write

The code looks better

The program executes better

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?

Discover more resources for Computers