Unit 7 Function and Parameters in Javascript CodeHS

Unit 7 Function and Parameters in Javascript CodeHS

9th Grade

19 Qs

quiz-placeholder

Similar activities

HTML

HTML

8th - 12th Grade

15 Qs

Sumatif 1 Dampak Sosial Informatika

Sumatif 1 Dampak Sosial Informatika

9th Grade - University

15 Qs

Y10M2A2 - Selection

Y10M2A2 - Selection

6th - 10th Grade

15 Qs

TIK VII YT, GC, VIDCOF

TIK VII YT, GC, VIDCOF

7th - 12th Grade

20 Qs

History of Computers

History of Computers

6th - 12th Grade

15 Qs

Python Recap

Python Recap

7th Grade - University

20 Qs

CPA Revision MCQ1

CPA Revision MCQ1

8th - 9th Grade

20 Qs

Networking Quiz

Networking Quiz

8th - 9th Grade

15 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 13+ 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

Create a free account and access millions of resources

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?

Discover more resources for Computers