
Subroutines

Quiz
•
Computers
•
8th Grade
•
Medium
Bhaskar Saxena
Used 2+ times
FREE Resource
11 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the below line of code do?
def drawSquare(a,b,c,d):
Calls a subroutine called draqSquare
Defines a subroutine called a,b,c,d
Defines a subroutine called drawSquare
Makes a procedure
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Select the true statement
def hotel(option1, option2)
hotel('Mariott', ''Holiday Inn')
The parameters are Mariott and Holiday Inn
The arguments are option1 and option2
The subroutine is a function
One of the parameters is option1
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Select the false statement
def hotel(option1, option2)
hotel('Mariott', ''Holiday Inn')
The arguments are Mariott and Holiday Inn
There are three arguments
The name of the subroutine is hotel
The second parameter is option2
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
I want to define a subroutine that prints out the alphabet for any language. Which of the following is most appropriate?
def alphabet(language)
def alphabet(number1)
def calculate(language)
def example(num1)
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
True or False: A subroutine performs a specific task
True
False
It depends
6.
MULTIPLE SELECT QUESTION
45 sec • 2 pts
Select two benefits of using subroutines
It makes it easier to find errors
It makes the code run faster
It becomes easier for the computer to read
You can save re-writing the same code over and over
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Functions require a _______ line at the end.
return
rerun
retry
remain
Create a free account and access millions of resources
Similar Resources on Wayground
12 questions
CF Quiz

Quiz
•
8th Grade
16 questions
algorithms and programming

Quiz
•
8th - 10th Grade
8 questions
Small Basic Mid Point Review

Quiz
•
6th - 12th Grade
16 questions
Programming Intro YR10

Quiz
•
7th - 8th Grade
7 questions
Scratch Lesson 3

Quiz
•
6th - 8th Grade
10 questions
Understanding Timer Objects in Programming

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