JS Object Recap

JS Object Recap

11th Grade

5 Qs

quiz-placeholder

Similar activities

Pemrograman Berorientasi Objek

Pemrograman Berorientasi Objek

10th Grade - University

10 Qs

DBMS-Open Office

DBMS-Open Office

9th - 12th Grade

10 Qs

Variables & Data Types

Variables & Data Types

6th - 12th Grade

10 Qs

Access Test

Access Test

9th - 12th Grade

10 Qs

AP CSA Unit 9 Inheritance - Polymorphism

AP CSA Unit 9 Inheritance - Polymorphism

10th - 12th Grade

8 Qs

AP CSA Inheritance Polymorphism

AP CSA Inheritance Polymorphism

10th - 12th Grade

8 Qs

APCSA Inheritance

APCSA Inheritance

10th - 12th Grade

8 Qs

Gamemaker Language

Gamemaker Language

6th - 12th Grade

10 Qs

JS Object Recap

JS Object Recap

Assessment

Quiz

Computers

11th Grade

Hard

Created by

arturo parinas

Used 3+ times

FREE Resource

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a JavaScript Object?

a collection of key-value pairs

a collection of arrays

a collection of functions

a collection of strings

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you create an object using literal notation?

let obj = [key: value];

let obj = {key: value};

let obj = (key: value);

let obj = <key: value>;

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct syntax for accessing the property of an object?

objectName.objectPropery( );

objectName.objectProperty[ ];

objectName.objectProperty;

objectName.objectProperty{ };

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code: alert(person.firstname); when person is {firstName: 'John',lastName:'Doe'}?

John

Doe

undefined

null

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code: alert(address.district); when address is {buildingNo: '3960' , street: 'North 1st Street', country: 'USA'};?

3960

North 1st Street

USA

undefined