Java Quiz

Java Quiz

Professional Development

40 Qs

quiz-placeholder

Similar activities

The Bay - Level 1 Assessment Exam

The Bay - Level 1 Assessment Exam

Professional Development

35 Qs

математика

математика

Professional Development

40 Qs

Đề MIT 20621.2 (5/3/2021)

Đề MIT 20621.2 (5/3/2021)

Professional Development

40 Qs

Đề MIT 20620.4 (5/3/2021)

Đề MIT 20620.4 (5/3/2021)

Professional Development

40 Qs

ĐỀ 1 MỚI NHẤT

ĐỀ 1 MỚI NHẤT

Professional Development

40 Qs

 Employability Skills - 1st Semester - Module 3 : Communication

Employability Skills - 1st Semester - Module 3 : Communication

Professional Development

35 Qs

Simulasi 1

Simulasi 1

Professional Development

40 Qs

TO 3 PRETEST PPG DALJAB 2023

TO 3 PRETEST PPG DALJAB 2023

Professional Development

35 Qs

Java Quiz

Java Quiz

Assessment

Quiz

Professional Development

Professional Development

Medium

Created by

342856_Amit Upadhyay_JH

Used 56+ times

FREE Resource

AI

Enhance your content in a minute

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

40 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Array is

immutable

mutable

always contant

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following declares an array of int named img?

int img;

int[] img;

new int img[];

int img = int[];

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are the legal indexes for the array ar, given the following declaration:


int[] ar = {2, 4, 6, 8 };

0, 1, 2, 3

1, 2, 3, 4

2, 4, 6, 8

0, 2, 4. 6

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code fragment:


int[] ar = {2, 4, 6, 8 };

System.out.println( ar[0] + " " + ar[1] );

2 6

8

2 4

6 8

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code fragment:


int[] ar = {2, 4, 6, 8 };


ar[0] = 23;

ar[3] = ar[1];


System.out.println( ar[0] + " " + ar[3] );

23 2

2 8

31

23 4

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code fragment:


int[] y = new int[5];


y[0] = 34;

y[1] = 88;


System.out.println( y[0] + " " + y[1] + " " + y[5] );

34 88 0

34 88 88

The program is defective and will not compile

0 34 88

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code fragment:


int[] z = new int[9];

z[0] = 7;

z[1] = 3;

z[2] = 4;

System.out.println( z[0] + z[1] + " " + z[5] );

10 0

7 3 0

The program is defective and will not compile.

7 3 4

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?