Arrays and Objects

Arrays and Objects

Professional Development

10 Qs

quiz-placeholder

Similar activities

Model Exam 6

Model Exam 6

Professional Development

15 Qs

JS Quiz

JS Quiz

Professional Development

14 Qs

PreTrainingScannerLoops

PreTrainingScannerLoops

Professional Development

10 Qs

Day7_Quiz_NBKR

Day7_Quiz_NBKR

Professional Development

10 Qs

QUICKTEST TIN HỌC 11

QUICKTEST TIN HỌC 11

Professional Development

10 Qs

Java Collections

Java Collections

Professional Development

14 Qs

day7

day7

Professional Development

12 Qs

Fundamentos Segundo Test

Fundamentos Segundo Test

Professional Development

8 Qs

Arrays and Objects

Arrays and Objects

Assessment

Quiz

Professional Development

Professional Development

Hard

Created by

Daniel Adesoji

FREE Resource

10 questions

Show all answers

1.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Choose the correct ways to define an array?

const newArr = [ ]

const newArr = ( )

const newArr = new Array()

const newArr = { }

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Given this array:
const newArray = [1, 2, 3, 4, 5]

What statement would return the value 3 from the array?

newArray[1]

newArray[2]

newArray[3]

newArray[4]

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What method is used to add elements to the end of an array?

push

add

insert

pop

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Bisi wants to loop over all the elements in her array named students, what property of the array can she use to set a condition and end the loop?

students.size

students.length

students.name

students.lastIndex

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which array method is used to create a new array with the results of calling a provided function on every element?

filter

reduce

map

forEach

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Nkem wants to change 3 to 30 in this array:

const ages = [10, 20, 3, 40, 50]

What statement should he use?

ages[1] = 30

ages[2] = 30

ages[3] = 30

ages[4] = 30

7.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Which of the following is/are the correct way(s) to define an object?

const person = { }

const person = new Object()

const person = Object.create(null)

const person = [ ]

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?