JRDL - JS Arrays and Objects

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
Similar Resources on Wayground
11 questions
JS: Conditionals!

Quiz
•
6th Grade - University
10 questions
Javascript

Quiz
•
University
11 questions
JS Certification

Quiz
•
12th Grade
15 questions
JS

Quiz
•
Professional Development
13 questions
BE METER REVIEW #4

Quiz
•
12th Grade
15 questions
JavaScript

Quiz
•
University
12 questions
JavaScript Quiz Day-1

Quiz
•
Professional Development
15 questions
JavaScript Basics

Quiz
•
12th Grade - University
Popular Resources on Wayground
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
10 questions
"LAST STOP ON MARKET STREET" Vocabulary Quiz

Quiz
•
3rd Grade
19 questions
Fractions to Decimals and Decimals to Fractions

Quiz
•
6th Grade
16 questions
Logic and Venn Diagrams

Quiz
•
12th Grade
15 questions
Compare and Order Decimals

Quiz
•
4th - 5th Grade
20 questions
Simplifying Fractions

Quiz
•
6th Grade
20 questions
Multiplication facts 1-12

Quiz
•
2nd - 3rd Grade
Discover more resources for Computers
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
19 questions
Fractions to Decimals and Decimals to Fractions

Quiz
•
6th Grade
16 questions
Logic and Venn Diagrams

Quiz
•
12th Grade
20 questions
Simplifying Fractions

Quiz
•
6th Grade
21 questions
convert fractions to decimals

Quiz
•
6th Grade
14 questions
Sine/Cosine/Tangent Review

Lesson
•
9th - 12th Grade
6 questions
Trig Ratio Calculator Quiz

Quiz
•
9th - 12th Grade