Search Header Logo
OCA 8 Using Loop Constructs

OCA 8 Using Loop Constructs

Assessment

Presentation

Professional Development

Professional Development

Hard

Created by

Siul Zadaque

Used 1+ times

FREE Resource

2 Slides • 1 Question

1

OCA 8 Using Loop Constructs

By Siul Zadaque

2

By Siul Zadaque

3

Multiple Choice

What is the output of the following code snippet?

3: int count = 0; 4: ROW_LOOP: for(int row = 1; row ˂=3; row++) 5: for(int col = 1; col ˂=2 ; col++) { 6: if(row * col % 2 == 0) continue ROW_LOOP; 7: count++; 8: } 9: System.out.println(count);

1

1

2

2

3

3

4

4

5

6

OCA 8 Using Loop Constructs

By Siul Zadaque

Show answer

Auto Play

Slide 1 / 3

SLIDE