Java Arrays

Java Arrays

University

10 Qs

quiz-placeholder

Similar activities

Computer Science Quiz

Computer Science Quiz

University

15 Qs

Quiz 6 PBO

Quiz 6 PBO

University

10 Qs

Node.js

Node.js

University

10 Qs

Penyelenggaraan Pencegahan Sistem Operasi

Penyelenggaraan Pencegahan Sistem Operasi

University

10 Qs

Software Testing

Software Testing

University

10 Qs

C++ Array Quiz

C++ Array Quiz

University

10 Qs

quiz pertemuan 2 asik ddp

quiz pertemuan 2 asik ddp

University

15 Qs

QUIZ 1: REVIEW ON C

QUIZ 1: REVIEW ON C

University

15 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