
Subroutines Quiz
Authored by B G
Computers
9th Grade
Used 6+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a subroutine?
A) A type of variable
B) A block of code that performs a specific task and can be reused
C) An error in programming
D) A command that halts the program
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following describes a function in programming?
A) A sequence of actions to perform input/output.
B) A subroutine that returns a value.
C) A method for declaring variables.
D) A procedure that does not return anything.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following best describes a procedure?
A) A subroutine that returns a value
B) A subroutine that does not return a value
C) A special variable used to hold data
D) A method of storing data
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you declare a function in Python?
A) function myFunction()
B) def myFunction[]
C) def myFunction():
D) myFunction():
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In programming, what does the term 'parameters' refer to?
A) Values returned by the function
B) Special commands within the program
C) The inputs that a function can accept
D) The outcome of a procedure
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does it mean to 'call' a function?
A) To create a new variable
B) To send data to the function for processing
C) To execute the function and perform its instructions
D) To define a new subroutine
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which statement is true about functions and procedures?
A) Functions can take input but procedures cannot
B) Procedures can return values whereas functions cannot
C) Functions always return a value, while procedures do not
D) There is no difference between them
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
12 questions
Algoritmos
Quiz
•
8th - 9th Grade
10 questions
QBASIC Programming
Quiz
•
5th - 10th Grade
10 questions
Cos’è la ROM?
Quiz
•
6th - 12th Grade
10 questions
hardware and software(g3)
Quiz
•
2nd - 10th Grade
10 questions
TQ - Review Quiz Week 1
Quiz
•
9th Grade
10 questions
DBMS- CLASS8 CBSE
Quiz
•
7th - 10th Grade
10 questions
JSPS Competition Hackathon - Scratch Language - Grade 1
Quiz
•
2nd Grade - University
13 questions
Diagnostico bases Informática
Quiz
•
1st - 12th 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