JavaScript Numbers and Strings – MCQs

JavaScript Numbers and Strings – MCQs

Professional Development

30 Qs

quiz-placeholder

Similar activities

Domain 4 Acronym Rapid Fire

Domain 4 Acronym Rapid Fire

Professional Development

25 Qs

Nepalese in Tech Community in Canada - MeetUp8

Nepalese in Tech Community in Canada - MeetUp8

Professional Development

25 Qs

MCyber_Chap17N19

MCyber_Chap17N19

Professional Development

25 Qs

Preguntas sobre Azure Fundamentals p4

Preguntas sobre Azure Fundamentals p4

Professional Development

27 Qs

Latihan-4-CCPS

Latihan-4-CCPS

Professional Development

27 Qs

Ingliz tilida boshlang'ich tushunchalar

Ingliz tilida boshlang'ich tushunchalar

Professional Development

30 Qs

FE Basic Quiz

FE Basic Quiz

Professional Development

30 Qs

Avaliação de conhecimentos FrontEnd

Avaliação de conhecimentos FrontEnd

Professional Development

29 Qs

JavaScript Numbers and Strings – MCQs

JavaScript Numbers and Strings – MCQs

Assessment

Quiz

Information Technology (IT)

Professional Development

Practice Problem

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

Already have an account?