
Unit 7 Function and Parameters in Javascript CodeHS
Quiz
•
Computers
•
9th Grade
•
Practice Problem
•
Medium
Alexander Lagoda
Used 13+ 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`?
Create a free account and access millions of resources
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
21 questions
G10 REVISION Ch 7 Systems Lifecycle: Implementation
Quiz
•
9th - 10th Grade
15 questions
HTML Quiz
Quiz
•
9th - 12th Grade
15 questions
Algorithms
Quiz
•
7th - 10th Grade
20 questions
Keyboard Quiz
Quiz
•
9th Grade
20 questions
Database Basics v2 N5
Quiz
•
1st - 12th Grade
20 questions
ตอบปัญหาคอมพิวเตอร์st
Quiz
•
9th - 12th Grade
19 questions
Python Year 9 Quiz
Quiz
•
8th - 10th Grade
15 questions
การเขียนโปรแกรมภาษา
Quiz
•
8th - 9th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
