wp_js

wp_js

University

10 Qs

quiz-placeholder

Similar activities

Internal Lab Quiz-1 CSECS

Internal Lab Quiz-1 CSECS

University

10 Qs

Lesson 2 Instrumentation Signal Terminology

Lesson 2 Instrumentation Signal Terminology

University

15 Qs

Quiz 1 - Stability Analysis in Control Systems

Quiz 1 - Stability Analysis in Control Systems

University

10 Qs

Number Systems and Boolean Algebra

Number Systems and Boolean Algebra

University

15 Qs

Week10: Analog to Digital Conversion and LCD

Week10: Analog to Digital Conversion and LCD

University

10 Qs

Lesson 3 PLC Characteristics and Input/Output Devices

Lesson 3 PLC Characteristics and Input/Output Devices

University

13 Qs

p2rt

p2rt

7th Grade - University

10 Qs

TECH WHIZ

TECH WHIZ

University

15 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?