
Subroutines
Authored by Jon Rogers
Computers
10th Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
6 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Which of the following are a type of subprogram
Function
Iteration
Selection
Procedure
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which type of subroutine will return a value to the program?
Function
Procedure
Both
Neither
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which type of subroutine can be given a parameter?
Function
Procedure
Both
Neither
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which is true for parameters
Parameters are variables you can use anywhere in your program
Parameters can only be strings or numbers
Parameters can only be used in Functions
Parameter names go in the brackets when defining or calling a subroutine
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A function called "calculate" takes two parameters, num1 and num2.
Which is the correct first line of the function?
calculate(num1, num2
function calculate (num1, num2):
function calculate():
function calculate (num1: num2):
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct way to call the calculate function with the numbers 6 and 3
calculate(6,3)
function(calculate)
function calculate(6,3)
def calculate
Access all questions and much more by creating a free account
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
10 questions
MS Excel VLookup
Quiz
•
9th - 12th Grade
10 questions
PENSAMENTO_COMPUTACIONAL_R1_T3_24
Quiz
•
10th Grade
10 questions
Python Quiz for 10s
Quiz
•
10th Grade
11 questions
Purpose of CPU
Quiz
•
8th - 10th Grade
10 questions
ICT SKILLS
Quiz
•
9th - 10th Grade
10 questions
PENGENALAN PERANGKAT PADA KOMPUTER
Quiz
•
9th - 12th Grade
10 questions
AP Computer Science Principles - Unit 7: Parameters, Returns
Quiz
•
9th - 12th Grade
10 questions
Unit 4 Advanced AP CSP
Quiz
•
9th - 12th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
29 questions
Alg. 1 Section 5.1 Coordinate Plane
Quiz
•
9th Grade
22 questions
fractions
Quiz
•
3rd Grade
11 questions
FOREST Effective communication
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade