Search Header Logo

JavaScript Quiz 1

Authored by undefined undefined

Information Technology (IT)

University

Used 4+ times

JavaScript  Quiz 1
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which type of JavaScript value is described as having fixed values?

Variables

Functions

Literals

Objects

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which type of JavaScript value is described as having variable values?

Literals

Variables

Constants

Arrays

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to declare a constant variable in JavaScript?

let x = 5;

const fname = "John";

var y = 10;

static z = 20;

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How does JavaScript interpret the keyword "let"?

It interprets "LET" and "Let" as "let".

It only interprets "let" as "let".

It interprets "LET" as "let".

It interprets "Let" as "let".

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are variables identified with in JavaScript?

Numbers

Unique names called identifiers

Symbols

Reserved words

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Why can't reserved words be used as JavaScript identifiers?

They are too long

They are case sensitive

They are JavaScript keywords

They contain special characters

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What type of scope do variables declared with 'let' have?

Global Scope

Function Scope

Block Scope

Module Scope

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?