java(level2)

java(level2)

7th Grade

13 Qs

quiz-placeholder

Similar activities

Lý thuyết về Python

Lý thuyết về Python

3rd Grade - University

10 Qs

3.1.1 Jenis data dalam segmen kod

3.1.1 Jenis data dalam segmen kod

7th - 9th Grade

10 Qs

Present and Past Participles

Present and Past Participles

7th - 9th Grade

10 Qs

Lesson 26 – Types of functions

Lesson 26 – Types of functions

5th - 8th Grade

10 Qs

Тыжпрограммист

Тыжпрограммист

6th - 8th Grade

10 Qs

Lesson 10 - Decision control statements

Lesson 10 - Decision control statements

5th - 8th Grade

10 Qs

JAVA

JAVA

7th - 10th Grade

10 Qs

Python quiz

Python quiz

KG - Professional Development

10 Qs

java(level2)

java(level2)

Assessment

Quiz

Education

7th Grade

Hard

Created by

Rania Khaled

Used 5+ times

FREE Resource

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[];

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?