
Unit 7 Function and Parameters in Javascript CodeHS
Quiz
•
Computers
•
9th Grade
•
Practice Problem
•
Medium
Alexander Lagoda
Used 20+ times
FREE Resource
Enhance your content in a minute
19 questions
Show all answers
1.
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
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In the following function printThreeTimes:
What is the parameter of the function?
printThreeTimes
function
console.log
num
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output of the following program?
A) 5 and 15
B) 6 and 3
C) 3 and 3
D) none, there is a syntax error
4.
MULTIPLE SELECT QUESTION
20 sec • 1 pt
Programmers use comments to (select all that apply):
help with debugging issues in code
document how code was written for other programmers to use
Make the program harder to understand
Change the way the program runs
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is printed by the following program?
A) 2 1 0
B) 0 1 2
C) zero one two
D) two one zero
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How many parameters are passed to the function `sum`, and how many values are returned from the function `sum`?
3 parameters go in, 1 return value comes out
3 parameters go in, 3 return values come out
1 parameter goes in, 4 return values come out
1 parameter goes in, 1 return value comes out
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following functions is the correct implementation of `isSuperman`?
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
17 questions
Basic Docs
Quiz
•
8th - 9th Grade
14 questions
Fetch & Execute Cycle
Quiz
•
9th Grade
20 questions
LATIHAN SIMDIG
Quiz
•
9th - 12th Grade
15 questions
CIW
Quiz
•
9th - 12th Grade
15 questions
Systems Architecture
Quiz
•
KG - 9th Grade
15 questions
KS4 - Representing Images
Quiz
•
9th - 11th Grade
21 questions
Y9 Creative iMedia RO81 Quiz Part 1
Quiz
•
9th Grade
20 questions
Microsoft Excel
Quiz
•
KG - Professional Dev...
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
