Search Header Logo

java(level2)

Authored by Rania Khaled

Education

7th Grade

Used 5+ times

java(level2)
AI

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

Media Image

Is "X" printed?


Yes, it is printed
No, it is not printed

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Is "X" printed?


Yes, it is printed
No, it is not printed

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

F && F =


F
T

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

How many times does the loop print a *

Never

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?