js expressions

js expressions

11th Grade

9 Qs

quiz-placeholder

Similar activities

Asesmen Dasar Smart Relay Zelio

Asesmen Dasar Smart Relay Zelio

11th Grade

10 Qs

LKPD Individu (Sistem Komputer_Informatika Kelas 8

LKPD Individu (Sistem Komputer_Informatika Kelas 8

8th Grade - University

11 Qs

Untitled Quiz

Untitled Quiz

7th Grade - University

11 Qs

2.4 Layer 2 Devices

2.4 Layer 2 Devices

9th - 12th Grade

12 Qs

Keyboard Shortcuts

Keyboard Shortcuts

5th Grade - University

11 Qs

P6 phising

P6 phising

6th Grade - University

10 Qs

Online Privacy Awareness Quiz

Online Privacy Awareness Quiz

7th Grade - University

13 Qs

Net+ 1.3.7 Binary and Hexadecimal

Net+ 1.3.7 Binary and Hexadecimal

11th Grade

12 Qs

js expressions

js expressions

Assessment

Quiz

Information Technology (IT)

11th Grade

Practice Problem

Medium

Created by

cid ungriano

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

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

9 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Media Image

If the user enters "5" in the prompt, what will be the value of doubled?

"10"

10

"55"

NaN

2.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Media Image

If the user enters "5", what will be the value of converted?

"55"

10

"10"

NaN

3.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Media Image

If the user enters "8", what will be displayed in the second alert()?

"String concatenation result: 88"

"String concatenation result: 16"

"String concatenation result: 8 + 8"

"String concatenation result: 8 8"

4.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Media Image

Which statement correctly describes the behavior of alert("You entered: " + userInput);?

It displays the entered value as a string.

It converts the input into a number before displaying.

It multiplies the input by 2 before displaying.

It removes spaces from the input before displaying.

5.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

Media Image

What is the purpose of parseInt() in the code?

It converts user input into a whole number.

It checks if the input is odd or even.

It adds two numbers together.

It displays an alert with the sum.

6.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

Media Image

If the user enters "10" and "5", what will be the second alert message?

"The sum is: 10"

"The sum is: 5"

"The sum is: 15"

"The sum is: 105"

7.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

Media Image

Which operator is used to check if a number is odd or even?

+ (Addition)

* (Multiplication)

% (Modulus)

/ (Division)

8.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

Media Image

If the user enters 4 and 7, what will be the last alert message?

"The sum is even."

"The sum is odd."

"The sum is: 4"

"The sum is: 7"

9.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

Media Image

How many alert() messages does this code display?

1

2

3

4