
Subroutines - Application Questions
Authored by Mark Jones
Computers
9th - 10th Grade
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
14 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of this function call?
Answer explanation
3 multiplied by 4 is 12, and the function returns this value.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is output of this code?
Hello name
Answer explanation
The print statement combines 'Hello' with the name 'Alice'.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which variable is local to the function?
Answer explanation
tax is declared inside the function and exists only there.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How many arguments are passed into the subroutine ?
Answer explanation
Two parameters mean two arguments must be passed in the call.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the code output?
Answer explanation
The function multiplies 5 by 2 and returns 10.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of using parameters in subroutines?
Answer explanation
Parameters allow data to be passed into subroutines when called.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which line shows a function call with arguments?
Answer explanation
The function call 'add(3, 5)' passes two arguments to the function.
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
17 questions
Basic Docs
Quiz
•
8th - 9th Grade
10 questions
Logic Gates
Quiz
•
9th - 12th Grade
10 questions
AI and Python: Ch.1 Revision
Quiz
•
9th Grade
16 questions
A2 Computer Science 4.10 Databases
Quiz
•
10th - 12th Grade
15 questions
CIW
Quiz
•
9th - 12th Grade
10 questions
Word basics
Quiz
•
8th - 12th Grade
10 questions
Online Databases vs. Search Engines
Quiz
•
6th - 10th Grade
10 questions
Microsoft Publisher
Quiz
•
7th - 10th Grade
Popular Resources on Wayground
8 questions
Spartan Way - Classroom Responsible
Quiz
•
9th - 12th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
14 questions
Boundaries & Healthy Relationships
Lesson
•
6th - 8th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
3 questions
Integrity and Your Health
Lesson
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
9 questions
FOREST Perception
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
Discover more resources for Computers
10 questions
Navigating Digital Citizenship and Online Safety
Interactive video
•
6th - 10th Grade
20 questions
Computer / Internet Companies
Quiz
•
9th Grade
10 questions
Exploring the Basics of Google Sheets
Interactive video
•
9th Grade
10 questions
Exponent Rules
Quiz
•
9th - 12th Grade
20 questions
JavaScript - Karel
Quiz
•
9th - 10th Grade