Search Header Logo

JS Object Review Quiz

Authored by Haniya Ahmed

Other

University

JS Object Review Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

9 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a JavaScript object?

A collection of data types

A composite data type with multiple attributes

An array with various elements

A homogenous object with multiple attirbutes

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which notation is used to access properties of an object?

Dot Notation

Bracket Notation

Both Dot and Bracket Notation

Parenthese Notation

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you create an empty object?

let obj = { };

let obj = [ ];

let obj = { }

let obj = ();

4.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Which method can add a property to an object

obj.addProperty

obj.property = value

obj[property] = value

obj[property]

5.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

How can you remove a property from an object in JavaScript?

remove obj.property;

delete obj.property;

obj.property.remove();

delete obj[property];

6.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Media Image

What will be the output of the following code:

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to create a nested object in JavaScript?

let obj = {key: {nestedKey: value}};

let obj = {key: [nestedKey: value]};

let obj = [key: {nestedKey: value}];

let obj = {key: (nestedKey: value)};

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?