
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
Advanced Java Study Guide

Quiz
•
11th - 12th Grade
14 questions
Python Control Structures Vocab quiz

Quiz
•
9th - 12th Grade
11 questions
Python Intro 1

Quiz
•
7th - 12th Grade
15 questions
8.QZ - Fish Tank Starter Code Review

Quiz
•
9th - 12th Grade
15 questions
Programming Fundamentals Exam

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

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

Quiz
•
9th - 12th Grade
10 questions
Study Guide - More Advanced Java

Quiz
•
11th - 12th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade