
Java ++

Quiz
•
Science
•
7th - 12th Grade
•
Hard
Сергій Денисенко
Used 6+ times
FREE Resource
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
Similar Resources on Wayground
25 questions
Vertical Circular Motion

Quiz
•
9th Grade - University
20 questions
Skeletal, Muscular, and Nervous Systems Review

Quiz
•
7th Grade
17 questions
Science Safety 8th Grade

Quiz
•
8th Grade
25 questions
String Error

Quiz
•
10th Grade - University
20 questions
Science Investigations

Quiz
•
11th Grade
18 questions
Genetics Year 10 - PRS

Quiz
•
10th Grade
22 questions
AP Physics Friction

Quiz
•
12th Grade
20 questions
Openscied Natural Hazards

Quiz
•
8th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Appointment Passes Review

Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
Grammar Review

Quiz
•
6th - 9th Grade
Discover more resources for Science
22 questions
Scientific Method and Variables

Quiz
•
8th Grade
20 questions
Scientific method and variables

Quiz
•
8th Grade
20 questions
Chemical and Physical Changes

Quiz
•
7th Grade
20 questions
Physical and Chemical Changes

Quiz
•
8th Grade
20 questions
Scientific Method

Quiz
•
7th Grade
10 questions
Scientific Method

Lesson
•
6th - 8th Grade
20 questions
Elements, Compounds and Mixtures

Quiz
•
8th Grade
20 questions
Law of Conservation of Mass

Quiz
•
6th - 8th Grade