Arrays

Arrays

KG - University

10 Qs

quiz-placeholder

Similar activities

Java Arrays Basic

Java Arrays Basic

10th - 12th Grade

15 Qs

Arrays, 2D Arrays, and ArrayLists

Arrays, 2D Arrays, and ArrayLists

9th - 12th Grade

15 Qs

Arrays C++

Arrays C++

University

12 Qs

JavaScript Quiz

JavaScript Quiz

University

12 Qs

Basic Data Structures - Intro to CS

Basic Data Structures - Intro to CS

12th Grade

15 Qs

Array in C

Array in C

University

10 Qs

Java Arrays

Java Arrays

University

10 Qs

Python Arrays Quiz P7

Python Arrays Quiz P7

11th Grade

15 Qs

Arrays

Arrays

Assessment

Quiz

Computers

KG - University

Hard

Used 133+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following are good examples of things to store as arrays or lists? 
I – A to-do list 
II – A grocery list 
III – A ball in a game of breakout 
IV – A list of balls in a game of breakout 
V – A loop counter variable
II only
III and V
I, II, and IV
I, II, III, IV, and V

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

var groceries = ["milk", "sugar", "eggs", "cake"];
What is the value of groceries[2] in the above array?
"milk"
"sugar"
"eggs"
"cake"

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

var shoppingList = ["milk", "eggs", "sugar", "bread", "cake"];
What is the index of the item "bread" in the array shoppingList?
4
3
5
6

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image
What is printed by the following lines of code?
eggs
bread
2
sugar

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

It is possible to have an array with 0 items.
true
false

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image
What is the output from the following program?
undefined
25
20
25
25
undefined
20
20

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

var arr = [1, 4, 55, 23, 11, 2];
What is the value of arr.length?
5
6
9
2

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?