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
15 questions
AQA Computer Science GCSE - 3.1 Fundamentals of algorithms

Quiz
•
10th - 12th Grade
15 questions
Variables Constants Datatypes

Quiz
•
8th - 12th Grade
8 questions
Visual Basic Basics!

Quiz
•
9th - 12th Grade
7 questions
Computer Science Essentials Vocabulary

Quiz
•
9th - 12th Grade
15 questions
G10 CS Functions and Procedures

Quiz
•
12th Grade
8 questions
Object Oriented Programming

Quiz
•
11th - 12th Grade
9 questions
2.1.2 CSE Coding Fundamentals: Dead Reckoning

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade