Array and ArrayLists in Java

Array and ArrayLists in Java

10th - 12th Grade

29 Qs

quiz-placeholder

Similar activities

Sec 2 EOY Revision Quiz

Sec 2 EOY Revision Quiz

7th - 10th Grade

25 Qs

REVIEW MATERI SPREADSHEET PTS GENAP

REVIEW MATERI SPREADSHEET PTS GENAP

10th Grade

25 Qs

UH 1-MYOB Manufaktur

UH 1-MYOB Manufaktur

12th Grade

25 Qs

Intro to Python

Intro to Python

10th Grade

24 Qs

UH-3 DASAR DESAIN GRAFIS

UH-3 DASAR DESAIN GRAFIS

1st Grade - University

25 Qs

Python conditional execution, loops. Rev 3

Python conditional execution, loops. Rev 3

10th Grade

24 Qs

Ôn tập Tin 10

Ôn tập Tin 10

9th - 12th Grade

24 Qs

study guide for web design

study guide for web design

9th - 12th Grade

24 Qs

Array and ArrayLists in Java

Array and ArrayLists in Java

Assessment

Quiz

Computers

10th - 12th Grade

Hard

Created by

Thomas Martinez

FREE Resource

AI

Enhance your content in a minute

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

29 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What are the legal indexes for the array ar, given the following declaration:
int[] ar = {2, 4, 6, 8 }

 0, 1, 2, 3
 1, 2, 3, 4
2, 4, 6, 8
 0, 2, 4, 6

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the first index of an array?

1

0

2

3

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

int [] nums = {2, 3, 5, 8, 9, 11};

How would you access the fourth element in nums?

nums[4]

nums[3]

nums(4)

nums(3)

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following statements outputs the fifth value in the quizzes array?

System.out.println(quizzes[5]);
quizzes[4];
quizzes[5];
System.out.println(quizzes[4]);

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Create an array of 12 strings called months.

String[] months = new String[12];
String months = new String[12];
String[] months = new String[];
String[12] months = new String[];

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

Given the following method, what would test return if
a = {0, 2, 3, 4} and v = 1?

-1
0
1
2

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What value is at index 1 in this array?  String[] names = {"Mack", "Dennis", "Dee", "Charlie"};

Mack
Dennis
Dee
Charlie

Access all questions and much more by creating a free account

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

Already have an account?

Discover more resources for Computers