Driving through the Sabi Sabi game reserve

Driving through the Sabi Sabi game reserve

Assessment

Interactive Video

1st - 2nd 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 declare a variable

To refer to the current object

To import a module

To create a new function

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 an arrow function

Inside a method

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How does 'this' behave differently in arrow functions?

It always refers to the global object

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

It creates a new object

It refers to the function itself

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a common use case for 'this' in JavaScript?

To execute a loop

To define a new class

To access properties of an object

To import libraries

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What happens when 'this' is used in a method of an object?

It refers to the previous method

It refers to the parent class

It refers to the object the method belongs to

It refers to the global object

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?