
CS Unit 5: Functions and Subroutines

Quiz
•
Computers
•
12th Grade
•
Medium
Ahmed Abdallah
Used 1+ times
FREE Resource
14 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is an advantage of using subroutines?
Faster execution time
Limited code organization
Easier to reuse code
Easier to spot errors
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the difference between a function and a procedure?
Functions are faster than procedures
Procedures return values, functions do not
Functions return values, procedures do not
Procedures are used for input only
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does a function do in a program?
Handle user input errors
Execute a specific set of commands
Print statements to the console
Calculate or process a value
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens when the return line is executed in a function?
Function terminates and returns a value
Function continues executing code
Function prints a message to the console
Function restarts from the beginning
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the main benefit of using functions in programming?
Code obfuscation
Code duplication
Code complexity
Code reusability
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of an argument in a function?
Values returned by the function
Values passed into the function
Values printed to the console
Values stored in memory
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the significance of using trace tables in functions?
Investigate function behavior
Handle user input errors
Terminate the program
Print messages to the console
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
48. Programming 1 : Intro to Subroutines

Quiz
•
9th - 12th Grade
10 questions
2.2.1 Variables and Functions

Quiz
•
12th Grade
15 questions
G10 CS Functions and Procedures

Quiz
•
12th Grade
10 questions
CHAPTER1-FUNCTION

Quiz
•
12th Grade
15 questions
AQA Computer Science GCSE - 3.1 Fundamentals of algorithms

Quiz
•
10th - 12th Grade
12 questions
Python Definitions

Quiz
•
10th - 12th Grade
9 questions
2.1.2 CSE Coding Fundamentals: Dead Reckoning

Quiz
•
9th - 12th Grade
10 questions
Python: Functions and Parameters

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade