Search Header Logo

Week 10.2

Authored by Poul Nichols

Computers

Professional Development

Used 2+ times

Week 10.2
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the value of "elem" variable?

var elem;
if ( 11 == 11 && 12 < 10 ){
elem = 12;
}else {
elem = 'undefined';
}

undefined

12

11

10

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the purpose of the value null in JavaScript?

To indicate a variable has not been assigned any value.

To represent an error in a mathematical operation.

To represent an nonexistent value or object

To indicate an empty string or absence of a value.

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is displayed on the browser?

function myFunction(){

document.write(myFunction === myFunction);

}

myFunction();

true

false

undefined

null

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the result?

Number("1") - 1 == 0;

true

false

undefined

null

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the result?

(true + false) > 2 + true

true

false

undefined

null

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

what is the value of

var x = 3;

var obj ={

x:2,

y: {x:1, y: 2},

}

document.write(obj.y.x);

1

2

3

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the value of

var x = 3;

var obj ={

x:2,

y: function(){

return this.x},

}

alert(obj.y())

1

2

3

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?