Arrays Review

Arrays Review

9th - 12th Grade

11 Qs

quiz-placeholder

Similar activities

Chapter 3 Exploring Linux Filesystems

Chapter 3 Exploring Linux Filesystems

11th Grade - University

10 Qs

Set Notations

Set Notations

12th Grade

15 Qs

After Effect Intoduction

After Effect Intoduction

10th Grade - University

15 Qs

OOP 1 Undiksha

OOP 1 Undiksha

12th Grade - University

13 Qs

Inequalities Unit 3-Algebra

Inequalities Unit 3-Algebra

8th - 10th Grade

11 Qs

5-12 PAP Quizizz

5-12 PAP Quizizz

10th Grade

12 Qs

REFUERZO EVALUACIÓN 3 ALGEBRA

REFUERZO EVALUACIÓN 3 ALGEBRA

9th Grade

10 Qs

Empowerment Technologies Quiz 2

Empowerment Technologies Quiz 2

11th Grade

10 Qs

Arrays Review

Arrays Review

Assessment

Quiz

Computers, Mathematics

9th - 12th Grade

Hard

Created by

Adeline Finkler

Used 2+ times

FREE Resource

11 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the correct way to create an array?

int array = int[4];

new int array = {2,3,4,5};

int [] array = new int[4]

int [] array = new int {4}

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

An array is...

an object.

a variable.

a primitive type.

a string.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which would be considered an "element" of the array below?


double [] temp = {1.2, 3.4, 5.6, 7.8};

double

temp

[]

1.2

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which statement prints out the number 5 for this array:


int [] test = {5,4,3,2,1};

test[0];

test[1];

System.out.println(test[0]);

System.out.println(test[1]);

5.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

How can I traverse an array?

Using a for loop.

Using a while loop.

Using an enhanced for loop.

Using an if statement.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What would the output be for this code:


int [] array = new int[10];

System.out.println(array[2]);

null

0

2

error

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

Fill in the blank of the for loop so that it traverses the entire array.

length

i.length

names.length()

names.length

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?

Discover more resources for Computers