Beijing table tennis training school

Beijing table tennis training school

Assessment

Interactive Video

1st - 3rd Grade

Practice Problem

Hard

Created by

Wayground 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 import a module

To create a new function

To declare a variable

To refer to the current object

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

Inside a method of an object

Inside a regular function in non-strict mode

Inside an arrow function

Inside a function in strict mode

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How does 'this' behave in an arrow function?

It refers to the global object

It retains the value of 'this' from the enclosing lexical context

It creates a new object

It refers to the object that called the function

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 access global variables

Expecting 'this' to be undefined

Using 'this' to declare new variables

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

Declaring a variable

Using a loop

Creating a new object

Using the 'bind' method

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?