wp_js

wp_js

University

10 Qs

quiz-placeholder

Similar activities

Stress, Strain & Young's Modulus

Stress, Strain & Young's Modulus

University

15 Qs

Quiz 1 - Stability Analysis in Control Systems

Quiz 1 - Stability Analysis in Control Systems

University

10 Qs

2025 Wolf Domestication

2025 Wolf Domestication

7th Grade - University

15 Qs

DLD Unit 1 _ 1

DLD Unit 1 _ 1

University

15 Qs

Quality - Introduction Quiz 01

Quality - Introduction Quiz 01

University

10 Qs

Drying Week 4 Quiz for 27/3 Attendance

Drying Week 4 Quiz for 27/3 Attendance

University

15 Qs

Regularization Techniques Quiz

Regularization Techniques Quiz

University

15 Qs

GDG Code Team Selection Test – Code & Logic Edition

GDG Code Team Selection Test – Code & Logic Edition

University

10 Qs

wp_js

wp_js

Assessment

Quiz

Engineering

University

Hard

Created by

Prashanthi Prashanthi

Used 1+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code snippet?

const obj1 = {first: 20, second: 30, first: 50};

console.log(obj1);

{first: 20, second: 30, first: 50}

{first: 50, second: 30}

{first: 20, second: 30}

syntax error

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt


What will be the output of the following code snippet?

print(typeof(NaN));


None of the above

String

Number

Object

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code snippet?

const set = new Set();

set.add(5);

set.add('Hello');

set.add({ name: 'Scaler' });

for (let item of set)

{ console.log(item + 6); }

11 NaN NaN

11 Nan [object object]

11 Hello6 [object object]6

None of the above

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code snippet?

var a = true + true + true * 3; print(a)

3

0

5

Error

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When the switch statement matches the expression with the given labels, how is the comparison done?

Only the value of the expression is compared.

None of the above.

Only the datatype of the expression is compared.

Both the datatype and the result of the expression are compared.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following keywords is used to define a variable in Javascript?


None of the above

Both A and B

let

var

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt


Which of the following methods can be used to display data in some form using Javascript?


All of the above

window.alert()

console.log()

document.write()

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?