Lesson 4 - Subroutines

Lesson 4 - Subroutines

8th Grade

7 Qs

quiz-placeholder

Similar activities

Scratch (28th March)

Scratch (28th March)

KG - University

10 Qs

PITD Assessment

PITD Assessment

8th Grade

10 Qs

Comments in Python

Comments in Python

5th - 8th Grade

10 Qs

Week 7 Quiz

Week 7 Quiz

7th - 8th Grade

10 Qs

maker empire icons

maker empire icons

1st - 10th Grade

10 Qs

R082 Book Cover Assets planning

R082 Book Cover Assets planning

7th - 12th Grade

10 Qs

Computer Security

Computer Security

8th - 10th Grade

10 Qs

ASK F1 Semua Topik

ASK F1 Semua Topik

8th Grade

10 Qs

Lesson 4 - Subroutines

Lesson 4 - Subroutines

Assessment

Quiz

Computers

8th Grade

Practice Problem

Hard

Created by

R Ward

Used 20+ times

FREE Resource

AI

Enhance your content in a minute

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

7 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

When your code is broken into sections, what are those sections called?

Sections

Segments

Subroutines

Routines

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Why would you create a Subroutine?

To save time

Less chance of making errors

Reduces lines of code

All of the Above

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When creating a Subroutine, what does "def" mean?

Definite

Define

Definitely

Defined

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the name of the subroutine in this piece of code?


import turtle


def square():

for i in range(4):

turtle.forward(30)

turtle.right(90)


square()

def

square

range

i

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is missing in this piece of code?


import turtle


def square()

for i in range(4)

turtle.forward(30)

turtle.right(90)


square()

Speech Marks

Colon (:)

Brackets

Nothing is missing

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In the final line of our code, what must be put with our subroutine name?

:

" "

()

' '

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Does your subroutine code require indentation?

Yes

No

Sometimes

Discover more resources for Computers