Javascript Basics

Javascript Basics

Assessment

Quiz

Computers

9th - 10th Grade

Medium

Created by

Stefanos Zisidis

Used 93+ times

FREE Resource

Student preview

quiz-placeholder

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do I declare a new variable?

var newVariable = 5

Variable int = new Variable()

var 5 = myVariable

int var = 5

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What type of variable is

var typeOfApples="Fuji"

Boolean

Number

String

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What character do we use for multiplication?

#

x

*

/

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which one of the following symbols is used for JavaScript comments?

\\

^

?

//

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

Which message will the user see?

"Hello user"

No message

"Goodbye user"

"message + user"

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What surrounds an if/else statement?

Quotations " "

Curly Brackets { }

Parenthesis ( )

Square Brackets [ ]

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What surrounds a string or words?

Quotations / Citations " "

Curly Brackets / Accolades { }

Parenthesis / Parenthèse

Square Brackets / Crochets [ ]

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?