Subroutines Python

Subroutines Python

10th Grade

8 Qs

quiz-placeholder

Similar activities

Unit 6 Review

Unit 6 Review

9th - 12th Grade

11 Qs

Python Functions and Escape Sequences

Python Functions and Escape Sequences

9th - 12th Grade

12 Qs

Python Basics

Python Basics

8th - 10th Grade

10 Qs

Funciones en Python COSABA

Funciones en Python COSABA

10th - 12th Grade

10 Qs

Python Testing

Python Testing

9th - 12th Grade

10 Qs

Python 2

Python 2

9th - 12th Grade

10 Qs

Python Arcade 10Com at 26/5/2021

Python Arcade 10Com at 26/5/2021

10th Grade

11 Qs

Sub Routines Lesson 2

Sub Routines Lesson 2

9th - 10th Grade

6 Qs

Subroutines Python

Subroutines Python

Assessment

Quiz

Computers

10th Grade

Medium

Created by

CALUM WOODHEAD

Used 19+ times

FREE Resource

8 questions

Show all answers

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

8.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What must go at the end of defining a Procedure?

():

[]:

()

: