What is the difference between a function and a procedure?
2.2.1 Variables and Functions

Quiz
•
Computers
•
12th Grade
•
Medium
Robin Smith
Used 17+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
They are the same
A function returns a value
A procedure returns a value
A function can only be called from a procedure
2.
FILL IN THE BLANK QUESTION
1 min • 1 pt
What is the name used for the data passed to a subroutine in parentheses e.g. x and y in the example below.
multiply( x , y )
3.
FILL IN THE BLANK QUESTION
1 min • 1 pt
What is the name for the local variables declared in the parentheses of a subroutine definition e.g. a and b in the example below.
function multiply (a, b)
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
8 10
10 8
6 0
0 6
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which type of parameter passing allows a subroutine to change the value of an argument in the calling routine?
pass by value
pass by reference
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which type of parameter passing is when the value of the argument is copied to the local parameter variable?
pass by value
pass by reference
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following represents labels that represent values in memory that can be changed during program execution?
Variables
Constants
Data types
Subroutines
Create a free account and access millions of resources
Similar Resources on Quizizz
10 questions
Global and local variables

Quiz
•
10th - 12th Grade
13 questions
Python Functions

Quiz
•
9th - 12th Grade
10 questions
2.2.1 (a) Using variables and constants

Quiz
•
12th Grade
10 questions
SDD HSC Quiz 4E Q1-10

Quiz
•
12th Grade
10 questions
Code.org Unit 5 Vocab Quiz 1

Quiz
•
9th - 12th Grade
15 questions
Python and Algorithms

Quiz
•
12th Grade
10 questions
C# Basics

Quiz
•
12th Grade - Professi...
10 questions
PCEP Section 4B: the function and its environment

Quiz
•
12th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University