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
Python eduBlocks Quiz

Quiz
•
8th Grade
11 questions
Python - Objective 1.1

Quiz
•
7th - 8th Grade
10 questions
SLR 8 - Basic Programming Concepts - Part Two

Quiz
•
8th Grade
11 questions
Subroutines

Quiz
•
8th Grade
10 questions
Yr 7 Python Turtle

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

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

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

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

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th 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
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade