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
What is the difference between a function and a procedure?
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 Wayground
10 questions
2.2.1 (a) Using variables and constants

Quiz
•
12th Grade
10 questions
48. Programming 1 : Intro to Subroutines

Quiz
•
9th - 12th Grade
15 questions
7.2 Parameters & Return Investigate

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

Quiz
•
12th Grade
10 questions
Functions In Python

Quiz
•
12th Grade
10 questions
10 Important Python Fundamentals Questions

Quiz
•
12th Grade
10 questions
Global and local variables

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

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade