
Functions & Procedures

Quiz
•
Computers
•
12th Grade
•
Hard
Moses Balogun
Used 28+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
41 questions
2.2 Programming Techniques OLD

Quiz
•
KG - University
34 questions
Java General

Quiz
•
9th - 12th Grade
40 questions
SCRATCH TEST 2

Quiz
•
9th - 12th Grade
40 questions
MS office 2016

Quiz
•
1st Grade - Professio...
35 questions
python

Quiz
•
11th Grade - University
40 questions
Python.Comp Quiz (Python Coding)

Quiz
•
9th Grade - University
31 questions
CMU CS (2) Functions, Mouse Events, Variables, Shape Properties

Quiz
•
9th - 12th Grade
35 questions
CIE As A level Chpt_20: Object-Oriented Programming

Quiz
•
11th Grade - University
Popular Resources on Wayground
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World

Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
20 questions
ELA Advisory Review

Quiz
•
7th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns

Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade