
Functions & Procedures
Authored by Moses Balogun
Computers
12th Grade
Used 29+ 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?
Similar Resources on Wayground
36 questions
Chapter 3 File Management
Quiz
•
9th - 12th Grade
32 questions
C++ Chapter 5 Review - Loops
Quiz
•
10th Grade - University
35 questions
Photoshop ACA
Quiz
•
9th - 12th Grade
32 questions
HTML Web Design Review
Quiz
•
9th - 12th Grade
35 questions
98-367 PT3
Quiz
•
9th - 12th Grade
37 questions
Excel Gmetrix Quiz
Quiz
•
10th - 12th Grade
36 questions
EarSketch/Python Programming
Quiz
•
9th - 12th Grade
40 questions
ANIMATION / Principles of Animation
Quiz
•
6th - 12th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade