What is the output of the following program?
Functions and Parameters Summative preview

Quiz
•
Computers
•
9th - 12th Grade
•
Medium
Kelly Hart
Used 28+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
5
15
15
5
nothing will print
5
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is printed by the following program?
-7
7
=13
13
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be printed to the screen when the following program is run?
function start(){
println(doubleNumber(doubleNumber(10)));
}
function doubleNumber(x){
var doubledX = 2 * x;
return doubledX;
}
20
100
40
x
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In the following function printThreeTimes:
function printThreeTimes(word){
println(word);
println(word);
println(word);
}
What is the parameter of the function?
word
word
word
word
no parameter
println
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the minimum number of parameters that must be given when calling the ‘drawCircle’ function?
function drawCircle(radius, x, y, color) {
var circle = new Circle(radius);
circle.setPosition(x, y);
circle.setColor(color);
add(circle);
}
1
2
0
4
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
// This function prints out the area of a rectangle given its base and height function rectangleArea(base, height){
var area = base * height;
println(area);
}
What are the names of the parameters?
base and height
length and width
var area
println(area)
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is printed by the program?
2
1
0
two
one
zero
nothing will print
0
1
2
Create a free account and access millions of resources
Similar Resources on Quizizz
10 questions
Wk 20 Function with Parameters

Quiz
•
12th Grade
15 questions
Functions and Parameters Quiz

Quiz
•
9th - 12th Grade
10 questions
GDScript Quiz - Lesson 2 - Variables & Functions

Quiz
•
12th Grade
15 questions
User Defined Method - 01

Quiz
•
10th Grade
15 questions
CodeHS Functions and Control Variables

Quiz
•
9th - 12th Grade
14 questions
p5.js Week1 PREtest

Quiz
•
7th - 12th Grade
15 questions
Understanding Python Functions

Quiz
•
11th Grade
15 questions
PHP - Quiz#1

Quiz
•
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