Java arrays

Java arrays

University

7 Qs

quiz-placeholder

Similar activities

Prob. prog 2

Prob. prog 2

University

10 Qs

Array & Vector

Array & Vector

University

11 Qs

Java Static

Java Static

University

10 Qs

C Practice Test 1

C Practice Test 1

University

12 Qs

Tech Quiz

Tech Quiz

University

10 Qs

array c++

array c++

University

10 Qs

Tes Awal Modul 4

Tes Awal Modul 4

University

10 Qs

Arrays and Functions

Arrays and Functions

University

12 Qs

Java arrays

Java arrays

Assessment

Quiz

Computers

University

Medium

Created by

Jamunadevi T

Used 6+ times

FREE Resource

7 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Java array is a collection of ________.

similar type of elements

different type of element

heterogeneous data

Both A and C

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Array data access using _____.

Operator

Variable

index

Pointer

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

At time of array initialization which is necessary to specify?

Row

Column

Row and Column

None of the above

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Java Array can allocate __________.

Dynamic Memory

Static Memory

Both A and B

None of the above

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is an incorrect array declaration?

int [] arr = new int[5]

int [] arr = new int[5]

int arr[] = new int[5]

int arr[] = int [5] new

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Index in array start with ______.

-1

0

1

Infinite

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

We can calculate the length of an array using ________.

sizeof(array)

array.len

array.length

array.sizeof()