Which of the following is an example of parameter passing in a procedural high-level language?
H Plenary - Modular programming quick quiz

Quiz
•
Computers
•
10th Grade
•
Hard
G Alexander-Doyle
FREE Resource
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Passing values to a function when calling it
Declaring a variable inside a function
Using a loop to repeat code
Printing output to the screen
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What are the two main types of sub-programs/routines mentioned in the learning intentions?
Functions and procedures
Loops and conditions
Classes and objects
Arrays and lists
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following best describes a formal parameter?
The name given to the parameters identified in the definition of the subprogram.
The value passed to the subprogram during a call.
The output of the subprogram.
The memory address of the subprogram.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Where are formal parameters typically found in a function or procedure?
Within brackets in the declaration of a function or procedure.
In the return statement of the function.
In the main body of the program.
In the comments section of the code.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a local variable?
A variable defined within a subprogram or a block of code.
A variable that can be accessed from anywhere in the program.
A variable that is always constant.
A variable that is only used for input.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the difference between local and global variables?
Local variables are accessible only within a specific function, while global variables are accessible throughout the program.
Local variables are always integers, while global variables are always strings.
Local variables are stored on disk, while global variables are stored in memory.
Local variables are used for file handling, while global variables are used for calculations.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following always return a single value?
Function
Procedure
Method
Sub-routine
8.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following performs a task such as displaying output for the user?
Function
Procedure
Method
Sub-routine
Similar Resources on Wayground
11 questions
Variables in Scratch

Quiz
•
2nd Grade - University
10 questions
PYTHON(LIBRARIES)

Quiz
•
12th Grade
10 questions
7. PYTHON FUNCTIONS -2

Quiz
•
12th Grade
9 questions
Python Variables and Scope

Quiz
•
12th Grade
10 questions
2.2.1 Variables and Functions

Quiz
•
12th Grade
10 questions
PYTHON PROGRAMMING

Quiz
•
University
10 questions
TLE Q3 QUIZ MODULES 1-5

Quiz
•
10th Grade
12 questions
Python Definitions

Quiz
•
10th - 12th Grade
Popular Resources on Wayground
25 questions
Equations of Circles

Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)

Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System

Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice

Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers

Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons

Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)

Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade