What is an argument?
Functions With Parameters and Returns

Quiz
•
Computers
•
9th - 12th Grade
•
Hard
Barbara White
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
Java Script Quiz

Quiz
•
9th - 12th Grade
15 questions
JavaScript Quiz

Quiz
•
9th - 10th Grade
20 questions
Arrays in Java

Quiz
•
9th - 12th Grade
20 questions
JAVA FUNDAMENTALS

Quiz
•
9th - 12th Grade
19 questions
AP Computer Science A Unit 1

Quiz
•
9th - 12th Grade
20 questions
Computer Application Practice Quiz Class 10

Quiz
•
10th Grade
20 questions
Quarter 3 Final Exam: Functions and Parameters

Quiz
•
9th - 12th Grade
17 questions
Cumulative Test Practice Units 1, 3, 4, 5, & 7

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