Unit 7 Function and Parameters in Javascript CodeHS

Unit 7 Function and Parameters in Javascript CodeHS

9th Grade

19 Qs

quiz-placeholder

Similar activities

Artificial Intelligence and SketchUp

Artificial Intelligence and SketchUp

8th - 10th Grade

20 Qs

CIA Mid-Term Review 1

CIA Mid-Term Review 1

9th - 10th Grade

17 Qs

Computational Thinking - Review

Computational Thinking - Review

7th - 9th Grade

15 Qs

CPA Rev 6

CPA Rev 6

9th - 10th Grade

20 Qs

Intro to Robotics

Intro to Robotics

9th Grade

14 Qs

Security and Ethics

Security and Ethics

9th - 12th Grade

17 Qs

Computer System

Computer System

9th - 11th Grade

21 Qs

Design your website

Design your website

7th - 12th Grade

20 Qs

Unit 7 Function and Parameters in Javascript CodeHS

Unit 7 Function and Parameters in Javascript CodeHS

Assessment

Quiz

Computers

9th Grade

Practice Problem

Medium

Created by

Alexander Lagoda

Used 20+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Media Image

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

Media Image

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

Media Image

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

Media Image

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

Media Image

Which of the following functions is the correct implementation of `isSuperman`?

Media Image
Media Image
Media Image
Media Image

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?