Arrays (Computer Science)

Arrays (Computer Science)

KG - University

10 Qs

quiz-placeholder

Similar activities

Arrays and ArrayLists

Arrays and ArrayLists

10th - 12th Grade

15 Qs

Data Structure 1

Data Structure 1

University

10 Qs

Python массивы

Python массивы

9th Grade

15 Qs

Javascript

Javascript

10th - 12th Grade

15 Qs

Java Array

Java Array

10th Grade

15 Qs

Arrays by Swarn

Arrays by Swarn

10th Grade

10 Qs

Final Review - Unit 1

Final Review - Unit 1

9th - 12th Grade

15 Qs

Basic types test. C#

Basic types test. C#

KG

11 Qs

Arrays (Computer Science)

Arrays (Computer Science)

Assessment

Quiz

KG - University

Medium

Created by

Parris Crowder

Used 35+ 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?