Java Arrays

Java Arrays

University

10 Qs

quiz-placeholder

Similar activities

Algorithm analysis: divide & conquer theory

Algorithm analysis: divide & conquer theory

University

10 Qs

Programacion Orientada a Objetos

Programacion Orientada a Objetos

12th Grade - University

10 Qs

Java Quiz 3

Java Quiz 3

University

15 Qs

JAVA - Arrays

JAVA - Arrays

University - Professional Development

15 Qs

Hackclub

Hackclub

University

14 Qs

Porcentajes

Porcentajes

University

12 Qs

Chapter 8

Chapter 8

University

10 Qs

Operating System -Quiz-1

Operating System -Quiz-1

University

10 Qs

Java Arrays

Java Arrays

Assessment

Quiz

Computers

University

Practice Problem

Medium

Created by

Ms N Suganya CSE - 2700

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

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

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is missing in the following array declaration?___[] arr;

int

float

double

char

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is missing in the following array initialization?int[] arr = ___;

{1,2,3}

new int[] {1, 2, 3}

new int[3]

new int()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is missing in the following array creation?int[] arr = new int[___];

size

10

length

size()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the error in the following code?int[] arr = {1, 2, 3};

System.out.println(arr[3]);

ArrayIndexOutOfBoundsException

NullPointerException

Syntax Error

No Error

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is missing in the following multi-dimensional array declaration?int[][] arr = new int[3][___];

3

size

columns

length

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the error in the following code?int[] arr;

arr[0] = 10;

ArrayIndexOutOfBoundsException

NullPointerException

Uninitialized Array Error

No Error

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is missing in the following array element assignment?int[] arr = new int[5];

arr[2] = ___;

5

10

arr[0]

all of the above

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