JavaScript Numbers and Strings – MCQs

JavaScript Numbers and Strings – MCQs

Professional Development

30 Qs

quiz-placeholder

Similar activities

React and NodeJS with Docker

React and NodeJS with Docker

Professional Development

25 Qs

Computer Hardware and Troubleshooting Quiz

Computer Hardware and Troubleshooting Quiz

Professional Development

28 Qs

Loop Logic Challenge – C Basics Edition

Loop Logic Challenge – C Basics Edition

Professional Development

30 Qs

Revisão 2° Sistemas (AVB3)

Revisão 2° Sistemas (AVB3)

Professional Development

30 Qs

Routing Protocols MCQs

Routing Protocols MCQs

Professional Development

25 Qs

Terraform Day 2 Accenture

Terraform Day 2 Accenture

Professional Development

27 Qs

Synchronization Problems Quiz

Synchronization Problems Quiz

Professional Development

27 Qs

Pelatihan KKA LPD KodeKiddo Fase C

Pelatihan KKA LPD KodeKiddo Fase C

Professional Development

25 Qs

JavaScript Numbers and Strings – MCQs

JavaScript Numbers and Strings – MCQs

Assessment

Quiz

Information Technology (IT)

Professional Development

Hard

Created by

Dheepan G

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...

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code?

let x = 10;

let y = "5";

console.log(x + y);

15

105

10 + 5

Error

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following methods converts a number to a string?

toNumber()

toText()

toString()

parseInt()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output?

console.log(Number("123"));

"123"

123

NaN

undefined

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of:

console.log(parseInt("12.34"));

12.34

12

13

NaN

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method converts a number into an exponential notation?

toExponential()

toPrecision()

toFixed()

toLocaleString()

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of:

console.log(isNaN("Hello"));

true

false

"Hello"

NaN

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of:

console.log((0.1 + 0.2).toFixed(2));

0.3

"0.30"

0.30

"0.3"

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?