
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
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
17 questions
Protein Synthesis
Quiz
•
9th - 12th Grade
25 questions
States of matter and phase changes
Quiz
•
6th - 8th Grade
20 questions
Earth's Structure and Movement
Quiz
•
4th - 7th Grade
19 questions
Review for Common Assessment #2
Quiz
•
6th - 8th Grade
20 questions
7K - Forces
Quiz
•
7th Grade
21 questions
Force Review
Quiz
•
6th - 8th Grade
19 questions
Electricity Review-Fall 2023
Quiz
•
9th - 12th Grade
24 questions
Energy transfers and transformations
Quiz
•
6th - 8th Grade
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
11 questions
NEASC Extended Advisory
Lesson
•
9th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
20 questions
Multiplying and Dividing Integers
Quiz
•
7th Grade
Discover more resources for Science
20 questions
Physical and Chemical Changes
Quiz
•
8th Grade
22 questions
Newton's Laws of Motion
Lesson
•
8th Grade
12 questions
Phases of Matter
Quiz
•
8th Grade
20 questions
Distance Time Graphs
Quiz
•
6th - 8th Grade
21 questions
Balanced and Unbalanced Forces
Quiz
•
8th Grade
10 questions
Exploring Newton's Laws of Motion
Interactive video
•
6th - 10th Grade
12 questions
Speed, Velocity, and Acceleration
Lesson
•
6th - 8th Grade
19 questions
Forces and Motion
Lesson
•
6th - 8th Grade