
wp_js

Quiz
•
Engineering
•
University
•
Hard
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
Similar Resources on Wayground
10 questions
PSOC 24-25

Quiz
•
University
11 questions
Quiz: High Voltage Measurement

Quiz
•
University
15 questions
Location Analysis

Quiz
•
University
10 questions
Approximate Analysis for Statically Indeterminate Structures

Quiz
•
University
13 questions
Chapter 20 - Theory of Metal Machining

Quiz
•
University
10 questions
Deep Learning Batch 2

Quiz
•
University
10 questions
Soil Consolidation

Quiz
•
University
15 questions
DE-REFRESHER-2025

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Engineering
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University