JavaScript Variables Quiz

JavaScript Variables Quiz

10th Grade

19 Qs

quiz-placeholder

Similar activities

Kuis Dadakan ;)

Kuis Dadakan ;)

10th Grade - University

15 Qs

Identidad Corporativa

Identidad Corporativa

10th Grade

15 Qs

BÀI 16 - THUẬT TOÁN SẮP XẾP

BÀI 16 - THUẬT TOÁN SẮP XẾP

9th Grade - University

15 Qs

Python Syntax II

Python Syntax II

10th Grade

16 Qs

Evaluación IV Parcial INTAE

Evaluación IV Parcial INTAE

10th Grade

14 Qs

Java by Mr Sam

Java by Mr Sam

10th Grade

16 Qs

J808 LO1 and LO2 planning project keywords / terms

J808 LO1 and LO2 planning project keywords / terms

9th - 11th Grade

15 Qs

Ethical and Social Issues in ICT

Ethical and Social Issues in ICT

10th Grade

15 Qs

JavaScript Variables Quiz

JavaScript Variables Quiz

Assessment

Quiz

Computers

10th Grade

Practice Problem

Hard

Created by

R. Mou

Used 7+ 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

What are variables in JavaScript similar to?

Puzzle pieces

Functions

Little boxes to store values

Strings

Loops

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which keyword is commonly used to declare a variable in JavaScript?

const

let

int

float

var

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If you declare a variable without initializing it, what is it called?

Uninitialized

Null

Empty

Undefined

Zeroed

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does initializing a variable mean?

Naming it

Assigning a value to it

Creating a box for it

Naming and assigning a value to it

Deleting it

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the correct way to declare and initialize a variable to store the number 10?

int number = 10;

number = 10;

var number = 10;

float number = 10;

number 10;

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code? `var value = 53; value = 75; console.log(value);`

53

75

5375

Error

None of the above

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which type of variable is used to hold true or false values?

String

Integer

Char

Float

Boolean

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?