Array Java

Array Java

University

15 Qs

quiz-placeholder

Similar activities

Quizizz

Quizizz

University

10 Qs

Programación II Parte 5

Programación II Parte 5

University

10 Qs

Podsumowanie: binarny, komputer, sieć

Podsumowanie: binarny, komputer, sieć

7th Grade - University

13 Qs

SOII. Gestión ficheros y práctica

SOII. Gestión ficheros y práctica

University

10 Qs

Javascript

Javascript

University

12 Qs

data structures1

data structures1

University

20 Qs

Quiz on List and Tuples

Quiz on List and Tuples

University

16 Qs

Quiz Pemrograman Perangkat Bergerak 2

Quiz Pemrograman Perangkat Bergerak 2

12th Grade - University

20 Qs

Array Java

Array Java

Assessment

Quiz

Computers

University

Practice Problem

Medium

Used 1K+ times

FREE Resource

AI

Enhance your content in a minute

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

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

_________________ is a collection of elements used to store the same type of data.

Array
Switch
Case
Loop

2.

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

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the first index of an array?

1

0

2

3

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

For the array:

int stats[3];

What is the range of the index?

0 to 3

0 to 2

1 to 3

0 to 4

5.

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)

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

The first value of an array called quizzes can be accessed with which of the following statements?

quizzes[1] = 100;
quizzes[0] = 100;
quizzes[zero] = 100;
quizzes[one] = 100;

7.

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]);

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