Lesson 4 - Subroutines

Lesson 4 - Subroutines

8th Grade

7 Qs

quiz-placeholder

Similar activities

Grade 8 Final Quiz

Grade 8 Final Quiz

8th Grade

10 Qs

Perangkat Komputer

Perangkat Komputer

1st - 12th Grade

10 Qs

Turinglab Christmas tree

Turinglab Christmas tree

6th - 8th Grade

10 Qs

Class VIII_Basic Python Programming Quiz

Class VIII_Basic Python Programming Quiz

8th Grade

10 Qs

Year 8 ICT Starters On Track Stage 2 - Topic 2: Website

Year 8 ICT Starters On Track Stage 2 - Topic 2: Website

8th Grade

10 Qs

Introduction To Java: Hello World

Introduction To Java: Hello World

7th - 12th Grade

10 Qs

Programación en Bloque MakeCode Micro:Bit

Programación en Bloque MakeCode Micro:Bit

1st - 12th Grade

10 Qs

iPad Rollout

iPad Rollout

7th - 12th 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