Lesson 4 - Subroutines

Lesson 4 - Subroutines

8th Grade

7 Qs

quiz-placeholder

Similar activities

Small Basic Mid Point Review

Small Basic Mid Point Review

6th - 12th Grade

8 Qs

Python L5

Python L5

6th Grade - University

10 Qs

Python Turtle

Python Turtle

KG - Professional Development

11 Qs

Year 8 - Progress Check 1 (Python Turtle Shapes)

Year 8 - Progress Check 1 (Python Turtle Shapes)

8th - 9th Grade

10 Qs

Small Basic (Turtle)

Small Basic (Turtle)

KG - University

10 Qs

Turtle

Turtle

7th - 8th Grade

12 Qs

Scratch -if else

Scratch -if else

6th - 8th Grade

12 Qs

NCCE Year 4 Repetition in Shapes

NCCE Year 4 Repetition in Shapes

3rd Grade - University

12 Qs

Lesson 4 - Subroutines

Lesson 4 - Subroutines

Assessment

Quiz

Computers

8th Grade

Hard

Created by

R Ward

Used 20+ times

FREE Resource

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