CLEAN : Taiwan VP Lai arrives at Honduras presidential palace

CLEAN : Taiwan VP Lai arrives at Honduras presidential palace

Assessment

Interactive Video

10th Grade - University

Hard

Created by

Quizizz Content

FREE Resource

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the primary role of 'this' in programming?

To refer to the current object

To declare a variable

To create a new function

To end a loop

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In which context does 'this' refer to the global object?

Inside a class

Inside a function

Inside a method

Inside an arrow function

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How does 'this' behave in an arrow function?

It takes the value from the enclosing lexical context

It always refers to the global object

It refers to the function itself

It creates a new object

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a common mistake when using 'this' in event handlers?

Assuming 'this' refers to the event target

Using 'this' to call a global function

Expecting 'this' to be undefined

Using 'this' to declare variables

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a method to explicitly set the value of 'this'?

Using a for loop

Using a switch statement

Using call() or apply()

Declaring a new variable