
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))
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
24 questions
Review for the Forms of Energy Quiz
Quiz
•
7th Grade
20 questions
Bài TX1 - HK2 - Tin học 11
Quiz
•
11th Grade
20 questions
Comparing Potential & Kinetic Energy
Quiz
•
6th - 8th Grade
20 questions
Principles of Computer Science
Quiz
•
10th - 12th Grade
20 questions
Planetary Motion Review
Quiz
•
9th Grade
20 questions
MOTION AND TIME
Quiz
•
7th Grade
20 questions
8th Grade Science Review
Quiz
•
8th Grade
24 questions
AQA GCSE PHYSICS - MAGNETISM & ELECTROMAGNETISM
Quiz
•
KG - 12th Grade
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
Discover more resources for Science
20 questions
Physical and Chemical Changes
Quiz
•
8th Grade
20 questions
Photosynthesis and Cellular Respiration
Quiz
•
7th Grade
10 questions
Exploring Newton's Laws of Motion
Interactive video
•
6th - 10th Grade
20 questions
Balanced and Unbalanced Forces
Quiz
•
6th - 8th Grade
20 questions
Galaxies
Quiz
•
8th Grade
20 questions
genetics, punnett squares, heredity
Quiz
•
7th Grade
22 questions
Plate Tectonics
Lesson
•
6th - 8th Grade
10 questions
Unit 2: LS.Bio.1.5-LS.Bio.2.2 Power Vocab
Quiz
•
9th - 12th Grade
