
Subprograms
Authored by Salah Mehdi
Education, Computers
11th Grade
Used 15+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the difference between a procedure and a function?
There is no difference
A procedure performs a task whereas a function produces information
A procedure produces information whereas a function performs a task
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a module?
A module is a small section of a program
A module allows you to pass information into a function
A module is the name for a value passed into a function
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a parameter?
Parameters are the values that are passed into a function or procedure
Parameters are the names of the information that is used in a function or procedure
A parameter is a small section of program
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is an argument?
An argument is a value that is passed into a function or procedure
An argument is a small section of program
An argument is the name of the information that is used in a function or procedure
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the difference between a local and a global variable?
A global variable is declared so it can be used in any part of the program and a local variable is only available in a specific function
A local variable is declared so it can be used in any part of the program and a global variable is only available in a specific function
Both local and global variables can be used in any part of a program
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a module-scoped variable?
A variable that is available in any part of the program
A variable that can only be used once
A variable that is only available in a single file or module
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is meant by 'executing' a function?
Deleting the function
Changing the function
Asking a function to run
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?