Salesforce 31 Oct 2023

Salesforce 31 Oct 2023

Professional Development

20 Qs

quiz-placeholder

Similar activities

¡Ponte a prueba con JavaScript! 💻🔍

¡Ponte a prueba con JavaScript! 💻🔍

Professional Development

17 Qs

JavaScript

JavaScript

Professional Development

20 Qs

BT Final HTML & CSS & JS

BT Final HTML & CSS & JS

Professional Development

25 Qs

Básico de JS

Básico de JS

Professional Development

21 Qs

Javascript Assessment

Javascript Assessment

Professional Development

20 Qs

Arrays

Arrays

4th Grade - Professional Development

20 Qs

Lección1 - JavaScript

Lección1 - JavaScript

1st Grade - Professional Development

17 Qs

JavaScript Básico

JavaScript Básico

Professional Development

19 Qs

Salesforce 31 Oct 2023

Salesforce 31 Oct 2023

Assessment

Quiz

Computers

Professional Development

Hard

Created by

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

What's the output?

let greeting;

greetign = {}; // Typo!

console.log(greetign);

{}

ReferenceError: greetign is not defined

undefined

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What's the output?

function sum(a, b)

{

return a + b;

}

sum(1, '2');

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

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?