Lesson 4 - Subroutines

Quiz
•
Computers
•
8th Grade
•
Hard
R Ward
Used 20+ times
FREE Resource
7 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When your code is broken into sections, what are those sections called?
Sections
Segments
Subroutines
Routines
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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
Similar Resources on Wayground
10 questions
Year 8 - Progress Check 1 (Python Turtle Shapes)

Quiz
•
8th - 9th Grade
12 questions
Homework 1 Edublocks

Quiz
•
7th - 9th Grade
11 questions
Y8 Hwk 4: Subroutines

Quiz
•
8th Grade
10 questions
Python eduBlocks Quiz

Quiz
•
8th Grade
10 questions
Small Basic Basics

Quiz
•
8th - 9th Grade
6 questions
Scratch Lesson 1

Quiz
•
6th - 8th Grade
10 questions
Python Basics

Quiz
•
8th - 10th Grade
12 questions
Exploring Python Turtle Graphics

Quiz
•
7th Grade - University
Popular Resources on Wayground
15 questions
Hersheys' Travels Quiz (AM)

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
30 questions
Lufkin Road Middle School Student Handbook & Policies Assessment

Quiz
•
7th Grade
20 questions
Multiplication Facts

Quiz
•
3rd Grade
17 questions
MIXED Factoring Review

Quiz
•
KG - University
10 questions
Laws of Exponents

Quiz
•
9th Grade
10 questions
Characterization

Quiz
•
3rd - 7th Grade
10 questions
Multiply Fractions

Quiz
•
6th Grade