Java arrays

Java arrays

University

7 Qs

quiz-placeholder

Similar activities

IT Quiz Round 3

IT Quiz Round 3

University

10 Qs

FGCT4023 Topic 4 - Array

FGCT4023 Topic 4 - Array

University

10 Qs

C++ Basics (1)

C++ Basics (1)

University

12 Qs

Kuis Struktur Data

Kuis Struktur Data

University

10 Qs

Chapter 2-1: Array Part 1

Chapter 2-1: Array Part 1

University

12 Qs

Introduction to Arrays

Introduction to Arrays

KG - University

10 Qs

CODE CAREER

CODE CAREER

University

9 Qs

BCSC0006 - Quiz 1 - Arrays

BCSC0006 - Quiz 1 - Arrays

University

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