JavaScript Functions and Parameters

JavaScript Functions and Parameters

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

Hodan Roble

Used 125+ times

FREE Resource

Student preview

quiz-placeholder

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A string;
Expresses a true false statement
can contain letters, numbers, spaces, and symbols.
takes in an input, does something with it, and then returns an output.
Runs a boolean (true/false) statement based on data entered

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What surrounds a string?
Quotations
Curly Brackets
Parenthesis
Square Brackets

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Why do we write functions?
Make our code easier to understand 
Avoid writing repeated code
Make our code reusable
All of these

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Is JavaScript exactly the same as Java?
No
Yes

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

To add a rectangle named rect to the screen, which command do you need to give?
add(rect);
new(rect);
put(rect);
rect();

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

JavaScript must adhere to specific rules of grammar called_________.
syntax
binary code
compiler
operator

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The conditional statement, in Javascript, begins with the word _______.
Then
Else
If
OK

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?