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
15 questions
Unit 5 Part 2 Assessment Review

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

Quiz
•
9th - 12th Grade
10 questions
Y10 subroutine

Quiz
•
9th - 12th Grade
12 questions
Intro to Scratch 2

Quiz
•
KG - University
10 questions
Quiz - 3 Assignment, Increment & Decrement Operators in C

Quiz
•
12th Grade
15 questions
CP M4 Repetition & Loops

Quiz
•
9th - 12th Grade
15 questions
python basics

Quiz
•
11th Grade - University
8 questions
Scratch basic Revision

Quiz
•
3rd - 12th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade