
Subroutines and Procedures
Quiz
•
Computers
•
11th Grade
•
Hard
Waqqad Rasheed
Used 1+ times
FREE Resource
Enhance your content
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a subroutine in programming?
A) A set of instructions that performs a task and returns control to the main program.
B) A data type used to store numeric values.
C) A loop used for iterating through arrays.
D) An error that occurs during program execution
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of parameters in subroutines?
A) To declare variables within the subroutine.
B) To provide input data to the subroutine for processing.
C) To define the return type of the subroutine.
D) To specify the number of times a subroutine is called.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In a flowchart, how is a subroutine typically represented?
A) With a Start box.
B) With a Decision box.
C) With a pair of parallel vertical lines at each side of a process box.
D) With a loop symbol.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the significance of parameters in subroutine calls?
A) They define the return type of the subroutine.
B) They specify the number of times the subroutine is called.
C) They provide input data to the subroutine for processing.
D) They control the flow of execution within the subroutine.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which pseudocode command is used to declare a procedure?
A) START
B) FUNCTION
C) PROCEDURE
D) DECLARE
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens when a subroutine finishes running?
A) Control passes back to where it was called from.
B) The program terminates.
C) The subroutine returns to the start of the program.
D) The subroutine becomes the main program.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How are parameters identified within a subroutine declaration?
A) By using quotation marks.
B) By using square brackets.
C) By using parentheses.
D) By using curly braces.
8.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the primary benefit of using subroutines in programming?
A) Enhanced program speed.
B) Increased memory allocation.
C) Improved code organization and readability.
D) Simplified debugging process.
Similar Resources on Wayground
8 questions
AP CSP Unit 3 Simple Review
Quiz
•
9th - 12th Grade
10 questions
FLOWCHARTING
Quiz
•
11th Grade
8 questions
Code.org Unit 3 Review
Quiz
•
9th - 12th Grade
10 questions
Virtual Memory
Quiz
•
11th Grade
11 questions
Online Safety
Quiz
•
6th - 12th Grade
12 questions
CSP: Code.org - Unit 3 Vocabulary Review
Quiz
•
9th - 12th Grade
9 questions
Software - Functions of the Operating System
Quiz
•
5th - 12th Grade
10 questions
The Program Development Cycle
Quiz
•
11th Grade - University
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
20 questions
ELA Advisory Review
Quiz
•
7th Grade
15 questions
Subtracting Integers
Quiz
•
7th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade