Js variables data type arithmetic expression

Js variables data type arithmetic expression

11th Grade

10 Qs

quiz-placeholder

Similar activities

Animation Techniques Quiz

Animation Techniques Quiz

10th Grade - University

10 Qs

POST TEST-INFORMATIKA-X-5

POST TEST-INFORMATIKA-X-5

10th Grade - University

10 Qs

CSP Unit 1 Digital Information

CSP Unit 1 Digital Information

9th - 12th Grade

15 Qs

Problem-solving  and Program Design Concepts

Problem-solving and Program Design Concepts

11th Grade

10 Qs

CPU Architecture and Functionality Concepts

CPU Architecture and Functionality Concepts

11th Grade - University

10 Qs

Quiz 2 Sistem Operasi Komputer

Quiz 2 Sistem Operasi Komputer

10th Grade - University

10 Qs

Cyber Security Awreness

Cyber Security Awreness

9th - 12th Grade

15 Qs

Soal Individu Sistem Komputer

Soal Individu Sistem Komputer

9th Grade - University

10 Qs

Js variables data type arithmetic expression

Js variables data type arithmetic expression

Assessment

Quiz

Information Technology (IT)

11th Grade

Practice Problem

Hard

Created by

cid ungriano

Used 3+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

Media Image

What is the data type of the variable userName?




Number

Boolean

String

Undefined

2.

MULTIPLE CHOICE QUESTION

30 sec • 4 pts

Media Image

What happens when the line age = 30; is executed?

The value of age is updated to 30.

The program runs without errors.

A TypeError occurs because age is declared with const.

The program will ignore the line.

3.

MULTIPLE CHOICE QUESTION

30 sec • 4 pts

Media Image

Which of the following correctly explains the line isStudent = false;?

A new variable is created.

The boolean value of isStudent is updated.

A syntax error occurs because let variables cannot be changed.

false is appended to isStudent.

4.

MULTIPLE CHOICE QUESTION

30 sec • 3 pts

Media Image

Why can userName be reassigned but age cannot?



userName is a const variable, and age is a let variable.

Both variables can be reassigned.

userName is declared with let, allowing reassignment, but age is declared with const, making it immutable.

const only prevents reassignment for numbers, not strings.

5.

MULTIPLE CHOICE QUESTION

30 sec • 3 pts

Media Image

Which statement is true about the let and const keywords?

let allows reassignment, but const does not.

const is used only for numbers.

let variables are automatically converted to strings.

const variables can be reassigned inside a function.

6.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

Media Image

If the user enters "15" in the prompt, what will be the value of userAge immediately after input?

15 (as a number)

"15" (as a string)

Undefined

NaN

7.

MULTIPLE CHOICE QUESTION

30 sec • 3 pts

Media Image

What will be the value of yearsSinceBirth?

2000

25

"25"

NaN

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?