What does the below line of code do?
def drawSquare(a,b,c,d):
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
14 questions
Lists, Subroutines and Sequence in Pseudocode - Python
Quiz
•
1st - 11th Grade
10 questions
Računalno razmišljanje i programiranje 8 - ponavljanje
Quiz
•
8th Grade
12 questions
Scratch -if else
Quiz
•
6th - 8th Grade
15 questions
Algorithms
Quiz
•
8th - 10th Grade
15 questions
Programming Essentials Revision
Quiz
•
6th - 8th Grade
15 questions
Snap! Computer Programming Quiz
Quiz
•
6th - 8th Grade
12 questions
Python
Quiz
•
7th - 8th Grade
15 questions
Lập trình hướng đối tượng
Quiz
•
1st - 12th Grade
15 questions
Character Analysis
Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
10 questions
American Flag
Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension
Quiz
•
5th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25
Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers
Quiz
•
6th - 8th Grade
14 questions
Misplaced and Dangling Modifiers
Quiz
•
6th - 8th Grade
17 questions
Parts of Speech
Quiz
•
7th - 12th Grade
10 questions
Identifying equations
Quiz
•
KG - University
44 questions
El fin del año- 7th
Quiz
•
7th - 12th Grade
40 questions
Word Study Assessment: Roots, Prefixes, Suffixes, and Vocabulary
Quiz
•
8th Grade
17 questions
guess the logo
Quiz
•
8th Grade
16 questions
Function or Non-Function?
Quiz
•
8th - 10th Grade
15 questions
Sentence Fragments and Run-ons
Quiz
•
8th Grade