Javascript Lists Lecture Knowledge Check

Javascript Lists Lecture Knowledge Check

9th - 12th Grade

11 Qs

quiz-placeholder

Similar activities

Mengenal Internet dan Jaringan Local

Mengenal Internet dan Jaringan Local

12th Grade

15 Qs

Networking Quiz

Networking Quiz

8th - 9th Grade

15 Qs

HTML

HTML

8th - 12th Grade

15 Qs

Табличні величини та алгоритми їх опрацювання.

Табличні величини та алгоритми їх опрацювання.

5th - 11th Grade

14 Qs

4Q Week3 Review Quiz (Who missed the Quiz ONLY))

4Q Week3 Review Quiz (Who missed the Quiz ONLY))

9th Grade

10 Qs

Chapter 8: Safety and security

Chapter 8: Safety and security

10th - 11th Grade

14 Qs

CSP Unit 13 Practice Test

CSP Unit 13 Practice Test

9th - 12th Grade

15 Qs

Javascript Lists Lecture Knowledge Check

Javascript Lists Lecture Knowledge Check

Assessment

Quiz

Computers

9th - 12th Grade

Practice Problem

Medium

Used 10+ times

FREE Resource

AI

Enhance your content in a minute

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

11 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following is TRUE about lists.

They can't change size

They can only hold numbers

The order of items is not kept

Lists can be stored in a variable

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

In a list each item is assigned a number in that list. That number is called the ________?

location

index

identifier

list code

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

given the list

var names = ["Ann", "Bob", "Chuck", "Dana"];

which name is at names[2]?

Ann

Bob

Chuck

Dana

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

given

var nums = [3, 4, 6, 2, 9, 1];

what is

nums[1] + nums[3]

4

5

6

9

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

given the list

var names = ["Ann", "Bob", "Chuck", "Dana"];

how would I replace "Bob" with "Bill"?

names["Bob"] = "Bill";

list[1] = "Bill";

names[1] = "Bill";

names[2] = "Bill";

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What would be the output of the following code?


var myList = ["A", "B", "C"];

console.log(myList.length);

2

3

4

7.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

If I had a list in my program called todo. While running lots of items are added to the end of the list. How can I get the last item in the list.

todo[last]

todo[todo.length]

todo.length - 1

todo[todo.length - 1]

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?