
Understanding Procedures

Quiz
•
Computers
•
9th Grade
•
Medium

Michael McShane
Used 2+ times
FREE Resource
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a procedure?
A method for completing something with steps and instructions for each aspect of the task!
A variable that stores numerical data for calculations!
A random sequence of instructions that a computer follows without any logic!
A collection of data that is stored in a list or an array!
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Defining a procedure is...
Debugging code we've written.
Setting up your procedure and telling it what instructions to follow.
Telling your program to run the procedure and carry out the instructions.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Calling a procedure is...
Inserting parameters into the parentheses of a procedure.
Telling your program to run the procedure and carry out the instructions.
Setting up your procedure and telling it what instructions to follow.
Replacing repetitive blocks of code under a procedure.
4.
FILL IN THE BLANK QUESTION
30 sec • 1 pt
Parameters are _______ that are created when you define a procedure.
5.
FILL IN THE BLANK QUESTION
30 sec • 1 pt
Arguments are _______ that are put into the parameters when you call a procedure.
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
In the following procedure, the parameter str is a string and the parameter num is a number.
PROCEDURE printArgs(str, num)
{
DISPLAY(num)
DISPLAY(str)
DISPLAY(num)
}
Consider the following code segment.
printArgs("**", 1)
printArgs("*", 2)
What is displayed as a result of executing the code segment?
1 * 1 2 ** 2
1 ** 1 2 * 2
* 1 * ** 2 **
** 1 ** * 2 *
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Consider the following procedures.
PROCEDURE proc1(str)
{
DISPLAY(str)
DISPLAY("happy")
}
PROCEDURE proc2(str1, str2)
{
proc1(str2)
DISPLAY(str1)
}
What is displayed as a result of the procedure call proc2("birthday", "to you") ?
birthday happy to you
birthday happy birthday
to you birthday happy
to you happy birthday
Create a free account and access millions of resources
Similar Resources on Wayground
16 questions
IGCSE ICT Full Forms

Quiz
•
9th - 10th Grade
10 questions
MIT App Inventor Basics

Quiz
•
9th - 12th Grade
10 questions
Programming basics

Quiz
•
9th - 12th Grade
14 questions
LA6.C6: Graphics Window

Quiz
•
9th Grade - University
15 questions
Functions and Parameters Quiz

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

Quiz
•
9th - 12th Grade
7 questions
Excel Formulas

Quiz
•
9th Grade
16 questions
DATA SCIENCE Assessment (April)

Quiz
•
8th - 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
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
30 questions
Introduction to Computers

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

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

Quiz
•
9th - 12th Grade
20 questions
Hardware vs. Software Quiz

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

Interactive video
•
9th - 12th Grade