Java ++

Java ++

7th - 12th Grade

21 Qs

quiz-placeholder

Similar activities

Human Body Systems Review

Human Body Systems Review

6th - 8th Grade

20 Qs

G9 IGCSE Length & Time Quiz

G9 IGCSE Length & Time Quiz

9th - 11th Grade

20 Qs

Matter

Matter

9th Grade

18 Qs

Bilgisayar Bilimi - 2

Bilgisayar Bilimi - 2

9th - 12th Grade

18 Qs

Grade 8 - Energy

Grade 8 - Energy

6th - 8th Grade

20 Qs

Planetary System

Planetary System

6th - 8th Grade

17 Qs

S10 - Protein Synthesis Quiz

S10 - Protein Synthesis Quiz

10th Grade

20 Qs

SOC Graphs, Conversions, and Density

SOC Graphs, Conversions, and Density

9th Grade

17 Qs

Java ++

Java ++

Assessment

Quiz

Science

7th - 12th Grade

Practice Problem

Hard

Created by

Сергій Денисенко

Used 6+ times

FREE Resource

AI

Enhance your content in a minute

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

21 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Який результат роботи цього коду?

public static void main(String[] args) {

String[] array = new String[3];

System.out.println(array[2]);

}

0

null

ArrayIndexOutOfBoundsException

1

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Який результат роботи цього коду?

public static void main(String[] args) {

int a = 5;

System.out.println(a + 2);

}

unhandled exception

5+2

7

52

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Який модифікатор доступу необхідно використовувати, щоб змінну було видно всюди?

private

protected

default (package visible)

public

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Який результат роботи цього коду?

public static void main(String[] args) {

int a = 5;

System.out.println(a + "2");

}

7

52

unhandled exception

5+2

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Який результат роботи цього коду?

public static void main(String[] args) {

String test = "Hello";

String test2 = "Hello";

System.out.println(test==test2);

}

null

Hello

true

false

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Який модифікатор доступу необхідно використовувати, щоб змінну було видно лише в поточному класі?

protected

default (package visible)

private

public

7.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Даний наступний код:

public static void main(String[] args) {

int z = 15;

// додати код

{

System.out.println(z);

z--;

} }

Необхідно вивести на консоль усі числа від 0 до 15. Виберіть правильний варіант рішення.

while ((z >= 0) == (z <= 15))

while ((z >= 0) || (z <= 15))

while ((z >= 0) != (z <= 15))

while ((z >= 0) && (z <= 15))

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?