Search Header Logo

Quiz Javascript

Authored by Gnaneshwar Reddy

Other

University

Used 1+ times

Quiz Javascript
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

1. Which of the following is NOT a primitive data type in JavaScript?

a) String

b) Number

c) Object

d) Boolean

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

2. What will be the output of type of null?

a) "null"

b) "undefined"

c) "object"

d) "number"

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

3. Which method converts a string to lowercase in JavaScript?

// a) toLowerCase()

// b) lowerCase()

// c) changeLower()

// d) convertLower()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

4. What is the result of parseInt("15.99")?

// a) 15

// b) 15.99

// c) "15.99"

// d) 16

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

5. Which operator is used to check both value and type in JavaScript?

// a) ==

// b) !=

// c) ===

// d) =

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

6. What will Boolean(0) return?

// a) 0

// b) false

// c) "false"

// d) true

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

// 7. What will be the output of this code?

let x = "5";

if (x == 5) console.log("Yes");
else console.log("No");

yes

No

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?