
Subroutines and Procedures
Authored by Waqqad Rasheed
Computers
11th Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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.
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
TIN 11 - PYTHON - PHÉP TOÁN - BIỂU THỨC - CÂU LỆNH GÁN
Quiz
•
11th Grade
10 questions
Cos’è la ROM?
Quiz
•
6th - 12th Grade
13 questions
Direcciones IP v4
Quiz
•
10th - 12th Grade
10 questions
JSPS Competition Hackathon - Scratch Language - Grade 1
Quiz
•
2nd Grade - University
10 questions
Microcontroller
Quiz
•
11th Grade - University
13 questions
Diagnostico bases Informática
Quiz
•
1st - 12th Grade
10 questions
Anime
Quiz
•
KG - University
10 questions
Tin học 10 _ Bài 16 _Định dạng văn bản
Quiz
•
10th - 12th Grade
Popular Resources on Wayground
7 questions
History of Valentine's Day
Interactive video
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
15 questions
Valentine's Day Trivia
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
18 questions
Valentines Day Trivia
Quiz
•
3rd Grade - University
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
21 questions
Presidents Day Trivia
Quiz
•
6th - 12th Grade
10 questions
Valentine's Day: History and Modern Celebration
Interactive video
•
9th - 12th Grade
11 questions
Valentine's Day Trivia
Quiz
•
8th - 12th Grade
10 questions
Factor Quadratic Expressions with Various Coefficients
Quiz
•
9th - 12th Grade
10 questions
Evaluating Piecewise Functions Practice
Quiz
•
11th Grade
18 questions
Success Strategies
Quiz
•
9th - 12th Grade