
Subroutines
Quiz
•
Computers
•
8th Grade
•
Practice Problem
•
Medium
Bhaskar Saxena
Used 2+ times
FREE Resource
Enhance your content in a minute
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
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
11 questions
FEEDBACK 1 PYTHON LD
Quiz
•
8th Grade
13 questions
Python Tartaletka 4
Quiz
•
5th - 9th Grade
11 questions
BIEMSO 2 D/A JHS BS8 ASSESSMENT QUIZ TERM 3
Quiz
•
8th Grade
10 questions
แบบทดสอบบทที่ 2 การแก้ปัญหาด้วยไพทอน
Quiz
•
6th - 8th Grade
6 questions
Scratch Lesson 1
Quiz
•
6th - 8th Grade
13 questions
Python: процедуры и функции
Quiz
•
8th - 11th Grade
8 questions
Scratch Lesson 5
Quiz
•
6th - 8th Grade
11 questions
Створення анімації
Quiz
•
1st - 12th Grade
Popular Resources on Wayground
10 questions
Forest Self-Management
Lesson
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
30 questions
Thanksgiving Trivia
Quiz
•
9th - 12th Grade
30 questions
Thanksgiving Trivia
Quiz
•
6th Grade
11 questions
Would You Rather - Thanksgiving
Lesson
•
KG - 12th Grade
48 questions
The Eagle Way
Quiz
•
6th Grade
10 questions
Identifying equations
Quiz
•
KG - University
10 questions
Thanksgiving
Lesson
•
5th - 7th Grade
Discover more resources for Computers
11 questions
Would You Rather - Thanksgiving
Lesson
•
KG - 12th Grade
10 questions
Identifying equations
Quiz
•
KG - University
18 questions
Thanksgiving Trivia
Quiz
•
4th - 12th Grade
20 questions
Thanksgiving Trivia!
Quiz
•
6th - 8th Grade
20 questions
Thanksgiving
Quiz
•
KG - 12th Grade
12 questions
Thanksgiving Trivia
Quiz
•
3rd - 8th Grade
20 questions
Pythagorean Theorem and Their Converse
Quiz
•
8th - 9th Grade
10 questions
Origins of Thanksgiving
Lesson
•
6th - 8th Grade
