
Salesforce 31 Oct 2023

Quiz
•
Computers
•
Professional Development
•
Hard
Sangeeta Ghosh
Used 3+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
How Many Future methods can be defined in a Class?
20
30
500
Any number of. There are no restrictions as such.
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
function sayHi() {
console.log(name);
console.log(age);
var name = 'Lydia';
let age = 21;
}
sayHi();
Lydia and undefined
Lydia and ReferenceError
ReferenceError and 21
undefined and ReferenceError
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
for (var i = 0; i < 3; i++) {
setTimeout(() => console.log(i), 1);
}
for (let i = 0; i < 3; i++) {
setTimeout(() => console.log(i), 1);
}
0 1 2 and 0 1 2
0 1 2 and 3 3 3
3 3 3 and 0 1 2
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What's the output?
+true; !'Lydia';
1 and false
false and NaN
false and false
Answer explanation
The unary plus tries to convert an operand to a number. true is 1, and false is 0.
The string 'Lydia' is a truthy value. What we're actually asking, is "is this truthy value falsy?". This returns false.
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
{}
ReferenceError: greetign is not defined
undefined
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
NaN
TypeError
"12"
3
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What's the output?
let number = 0;
console.log(number++);
console.log(++number);
console.log(number);
1 1 2
1 2 2
0 2 2
0 1 2
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
JavaScript

Quiz
•
Professional Development
20 questions
JavaScript

Quiz
•
Professional Development
23 questions
msp quiz

Quiz
•
University - Professi...
20 questions
Sorting - IV year

Quiz
•
Professional Development
20 questions
Examen de Python

Quiz
•
Professional Development
15 questions
FSWI - CH4 T1

Quiz
•
KG - Professional Dev...
17 questions
JavaScript 2

Quiz
•
Professional Development
20 questions
Javascript Fundamental Practice

Quiz
•
Professional Development
Popular Resources on Wayground
55 questions
CHS Student Handbook 25-26

Quiz
•
9th Grade
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
10 questions
Chaffey

Quiz
•
9th - 12th Grade
15 questions
PRIDE

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
22 questions
6-8 Digital Citizenship Review

Quiz
•
6th - 8th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade