
Java ++
Quiz
•
Science
•
7th - 12th Grade
•
Practice Problem
•
Hard
Сергій Денисенко
Used 6+ times
FREE Resource
Enhance your content in a minute
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))
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
24 questions
Review for the Forms of Energy Quiz
Quiz
•
7th Grade
20 questions
Potential or Kinetic Energy Assessment
Quiz
•
6th - 8th Grade
21 questions
Energy Forms
Quiz
•
8th Grade
25 questions
CAST REVIEW
Quiz
•
8th Grade
20 questions
Підготовка до вхідного тестування 10 клас.
Quiz
•
10th Grade
20 questions
Bài TX1 - HK2 - Tin học 11
Quiz
•
11th Grade
18 questions
Solar System Vocab
Quiz
•
7th Grade
20 questions
MOTION AND TIME
Quiz
•
7th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Science
33 questions
Grade 6 Quarter 3 PMA 5 Review
Quiz
•
6th - 8th Grade
85 questions
Midpoint D1 Review
Quiz
•
8th Grade
12 questions
Ecological Succession
Quiz
•
7th Grade
12 questions
Newton's Laws of Motion
Lesson
•
6th - 8th Grade
10 questions
Exploring the Rock Cycle: Types and Formation
Interactive video
•
6th - 8th Grade
10 questions
Exploring the Layers of the Earth
Interactive video
•
6th - 10th Grade
20 questions
Pure Substances & Mixtures
Quiz
•
8th Grade
28 questions
Genes and Heredity
Lesson
•
8th Grade
