Lesson 4 - Subroutines
Quiz
•
Computers
•
8th Grade
•
Practice Problem
•
Hard
R Ward
Used 20+ times
FREE Resource
Enhance your content in a minute
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
CodeTigers Python 101
Quiz
•
KG - Professional Dev...
10 questions
Parts of Arduino IDE
Quiz
•
8th Grade
10 questions
Perangkat Komputer
Quiz
•
1st - 12th Grade
10 questions
I Can Code!
Quiz
•
KG - University
12 questions
Google Suite Skills
Quiz
•
5th - 8th Grade
12 questions
Computational Thinking Quiz
Quiz
•
6th - 8th Grade
10 questions
Programming Basics
Quiz
•
8th Grade
10 questions
แบบทดสอบ เรื่อง รู้จัก scratch
Quiz
•
6th - 8th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
