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
EV3 Programming Moves and Turns

Quiz
•
6th - 8th Grade
10 questions
code.org Unit 3 ('23-'24) Lessons 3-4

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

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

Quiz
•
7th Grade - University
8 questions
Scratch Lesson 5

Quiz
•
6th - 8th Grade
8 questions
Compsciens

Quiz
•
8th Grade
10 questions
App Creators Lesson 2.1-2.4

Quiz
•
8th Grade
10 questions
Code HS Tracy Phyton Quiz

Quiz
•
6th - 8th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
18 questions
Company Logos

Quiz
•
6th - 8th Grade
10 questions
Exploring Cybersecurity Techniques and Threats

Interactive video
•
6th - 10th Grade
10 questions
Understanding the Internet and Data Transmission

Interactive video
•
7th - 12th Grade
25 questions
How to Email a Teacher- https://youtu.be/NioeNhfpVfI

Quiz
•
6th - 8th Grade
20 questions
Computer Hardware

Quiz
•
6th - 8th Grade
21 questions
Gear Ratio Practice

Quiz
•
6th - 8th Grade