What is an argument?
Functions Parameters Return

Quiz
•
Computers
•
9th - 12th Grade
•
Medium
Barbara White
Used 1+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A variable passed as a value to a function
A variable passed in from outside the function
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is an parameter?
A variable passed as a value to a function
A variable passed in from outside the function
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the parameter of this
function quadrupleNumber(x){
var quadX = 4 * x;
println(quadX);
}
x
println
quadX
none
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Why do we write functions?
Make our code easier to understand by giving a readable name to a group of instructions
Avoid writing repeated code
Make our code reusable
All of the above
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
It is very important to pass parameters to functions in the proper order
True
False
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What are the parameters of the printNumbers function?
function printNumbers(first, second, third){
println(first);
println(second);
println(third);
}
first, second, third
x, y, z
println
rintNumbers
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which statement allows us to return values from functions?
break
if
return
function
Create a free account and access millions of resources
Similar Resources on Quizizz
15 questions
Basics in Java

Quiz
•
9th - 12th Grade
22 questions
AP CSA Primitive Types Practice

Quiz
•
11th Grade
15 questions
Javascript

Quiz
•
10th - 12th Grade
20 questions
Procedures and Functions

Quiz
•
10th Grade
16 questions
Loops

Quiz
•
5th - 12th Grade
15 questions
Functions and Parameters Quiz

Quiz
•
9th - 12th Grade
20 questions
Basic JavaScript Review

Quiz
•
9th - 12th Grade
15 questions
Java Math

Quiz
•
9th - 12th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University