
java(level2)
Authored by Rania Khaled
Education
7th Grade
Used 5+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
13 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Is "X" printed?
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Is "X" printed?
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
F && F =
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How many times does the loop print a *
10
20
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you declare a while loop that prints numbers from 1 to 5?
while (i <= 5) { System.out.println(i++); }
while (i < 5) { System.out.println(++i); }
while (i <= 5) { System.out.println(++i); }
while (i < 5) { System.out.println(i++); }
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the 'continue' statement do in Java?
Exits the loop or switch statement
Skips the current iteration of a loop
Jumps to a specific label in the code
Returns a value from a method
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you declare an array of strings in Java?
String[] names = new String[5];
String names[] = new String[5];
String[] names = new String[];
String names[] = new String[];
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?