JAVA LOOPS

JAVA LOOPS

2nd Grade

10 Qs

quiz-placeholder

Similar activities

Ôn lại kiến thức  Lớp 3 T13

Ôn lại kiến thức Lớp 3 T13

1st - 10th Grade

10 Qs

Bài tập Tin học lớp 4

Bài tập Tin học lớp 4

1st - 12th Grade

10 Qs

Five Nights At Freddy's: Security Breach Quiz

Five Nights At Freddy's: Security Breach Quiz

KG - Professional Development

13 Qs

Informatyka.Cyberbezpieczeństwo,e-zasoby i współpraca zdalna

Informatyka.Cyberbezpieczeństwo,e-zasoby i współpraca zdalna

1st - 6th Grade

13 Qs

=Excel+[ling]

=Excel+[ling]

1st - 3rd Grade

11 Qs

Word_Basic

Word_Basic

1st - 3rd Grade

10 Qs

CAPÍTULO 1 NETWORKING ESSENTIALS

CAPÍTULO 1 NETWORKING ESSENTIALS

1st - 12th Grade

11 Qs

БАЗЫ ДАННЫХ

БАЗЫ ДАННЫХ

2nd - 5th Grade

14 Qs

JAVA LOOPS

JAVA LOOPS

Assessment

Quiz

Computers

2nd Grade

Practice Problem

Hard

Created by

RAVINDER B

Used 6+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

for (int i = 0; i < 3; System.out.print(i + " "))

{

i++;

}

0 1 2

1 2 3

0 2

Infinite loop

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

int i = 0;

while (i < 5)

if (i++ % 2 == 0)

System.out.print(i + " ");

}

1 3 5

0 2 4

2 4

1 2 3 4 5

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

for (int i = 0; i < 10; i++) {

if (i * i > 30)

break;

System.out.print(i + " ");

}

0 1 2 3 4

0 1 2 3 4 5

0 1 2 3 4 5 6

None

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

int i = 0, j = 5;

for (; i < j; j--) {

if (i++ % 2 == 0)

continue;

System.out.print(i + j + " ");

}

5 6 7

7 8

7 8 9

ERROR

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

outer:

for (int i = 1; i <= 3; i++) {

inner:

for (int j = 1; j <= 3; j++) {

if (i * j == 4)

break outer;

System.out.print(i + "" + j + " ");

}

}

11 12 13 21 22

11 12 13 21 22 23

11 12 13 21 22 23 31 32 33

11 12 13 21 22

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

int x = 0;

for (int y = 0; y < 3; y++) {

x++;

}

System.out.println(x + " " + y);

3 3

3 2

3 1

ERROR

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

int sum = 0;

for (int i = 0; i < 3; i++)

for (int j = 0; j < 3; j++)

if ((i + j) % 2 == 0)

sum += i + j;

System.out.println(sum);

9

8

10

12

Create a free account and access millions of resources

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?

Discover more resources for Computers