JRDL - JS Arrays and Objects

JRDL - JS Arrays and Objects

6th Grade - Professional Development

12 Qs

quiz-placeholder

Similar activities

JavaScript

JavaScript

University

15 Qs

JavaScript Quiz Day-1

JavaScript Quiz Day-1

Professional Development

12 Qs

Arrays Intro

Arrays Intro

9th - 12th Grade

12 Qs

JavaScript Quiz

JavaScript Quiz

University

12 Qs

Programming with JavaScript: Mastery Test

Programming with JavaScript: Mastery Test

11th Grade

16 Qs

JS

JS

Professional Development

15 Qs

Javascript 05 Aug 22

Javascript 05 Aug 22

Professional Development

12 Qs

ES6 Quiz (MAXIMA 2021)

ES6 Quiz (MAXIMA 2021)

University

16 Qs

JRDL - JS Arrays and Objects

JRDL - JS Arrays and Objects

Assessment

Quiz

Computers

6th Grade - Professional Development

Medium

Used 14+ times

FREE Resource

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

TRUE OR FALSE:


You can store any data type in arrays.

True

False

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the correct syntax for creating an array?

{ "cat", "dog, "mouse", 123, true }

[ cat, dog, mouse, 123 }

[ "cat"; "dog"; "mouse"; 123, true]

[ "cat", "dog", "mouse", 123, true]

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

With the given array, how do I access "snickers"?


var candy = ["m & m's", "100 grand", "snickers"]

candy[1]

candy[3]

candy[2]

candy[0]

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are the two ways you can access objects?

Dot notation and bracket notation

Curl notation and dot notation

Square brackets and parentheses

Dot notation and parentheses

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct syntax for adding a property to the object provided below?


var cat = {};

cat[name] = 'felix';

cat[name] : 'felix';

cat.name : 'felix';

cat.name = 'felix';

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

TRUE OR FALSE: You can use .length on an array to get the total count of items in the array.

True

False

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct syntax for accessing an object using bracket notation?


Example object:


var object = {

name: 'Spot';

}

object["name"];

object{name};

object("name");

object[name];

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?