JavaScript Data Structures

JavaScript Data Structures

9th - 12th Grade

19 Qs

quiz-placeholder

Similar activities

Cyber Security KS4

Cyber Security KS4

8th - 12th Grade

15 Qs

LA1.C1: Introduction to Small Basic

LA1.C1: Introduction to Small Basic

9th Grade

15 Qs

12AIT - All About W3C <3

12AIT - All About W3C <3

10th Grade - University

18 Qs

Unit 8 Practice Test For CSP

Unit 8 Practice Test For CSP

9th Grade

16 Qs

ESBWB Workbook Domain 1 Lesson 2

ESBWB Workbook Domain 1 Lesson 2

9th - 12th Grade

15 Qs

Pointers

Pointers

12th Grade

20 Qs

Exam Style Questions

Exam Style Questions

10th - 11th Grade

18 Qs

Google Sheets

Google Sheets

12th Grade

21 Qs

JavaScript Data Structures

JavaScript Data Structures

Assessment

Quiz

Computers

9th - 12th Grade

Practice Problem

Medium

Created by

Kelly Hart

Used 20+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

19 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If you want to be able to look up a value by an index value (4, for example) , which data structure should you choose?

array

object

set

grid

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is an Object?

An ordered list of objects

An unordered list of objects

A collection of (key, value) pairs

elements listed in a grid form

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

We want to make a grocery list in our program. Which of the following is the correct way to make an array/list?

var groceries = ["milk" "sugar" "eggs" "cake"];

var groceries = ["milk, sugar, eggs, cake"];

var groceries = "milk, sugar, eggs, cake";

var groceries = ["milk", "sugar", "eggs", "cake"];

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What method can we use to find the index of a particular element in an array?

.index

indexOf

inIt

findElement

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The index of the very first item in an array is 1.

true

false

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

var numbers = [0, 1, 2, 3, 4];

How can we add a 6 to the end of numbers?

pop(6)

push(6)

add(5,6)

pop( )

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a set?

a collection of unique objects that are not in a specific order.

a collection of ordered items.

a collection of (key, value) pairs

Elements in a row and column table

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?