Java arrays

Java arrays

University

7 Qs

quiz-placeholder

Similar activities

C - Pointers

C - Pointers

University

10 Qs

Array

Array

University

11 Qs

Weekly Contest #3 - TechXNinjas

Weekly Contest #3 - TechXNinjas

University

10 Qs

JAVA Quiz on 27-08-2021

JAVA Quiz on 27-08-2021

University

5 Qs

C++ vs Python: A Quiz Introduction

C++ vs Python: A Quiz Introduction

11th Grade - University

10 Qs

Kuis 3  - ASD - A

Kuis 3 - ASD - A

University

10 Qs

CS1010 Lab 4

CS1010 Lab 4

University

10 Qs

Apuntadores C++

Apuntadores C++

University

11 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()