
Functions & Procedures
Authored by Moses Balogun
Computers
12th Grade
Used 30+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
36 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The main difference between procedures and functions is
Procedures are usually longer and have more instructions
Functions use parameter passing, while procedures don’t
Functions are more difficult to debug
Functions return values, while procedures don’t
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The advantages of parameter passing don’t include this
The same subprogram can be reused in more cases
Parameter passing makes it easier to use global variables
More flexible coding
Can cut down on the use of wasteful global variables
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Converting procedures to functions usually causes these effects
Shorter code
Slows the program down
Reduction of the number of global variables, more parameter passing
Makes it more difficult to use selection
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Trying to use a local variable from outside its scope will cause
A global variable to be overwritten by it
A wrong procedure to run
A crash with a report “Unknown variable”
A logical error
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When a variable first appears outside any subprograms
It is a global variable
It is a local variable
It is a parameter variable
It is not a valid variable
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What term is used to describe data passed into/out of a program?
Variable
Loop
Constant
Parameter
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a procedure?
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?