nerdexam
Oracle

1Z0-803 · Question #25

Given: What is the result?

The correct answer is B. 0. table.length is 3. So the do-while loop will run 3 times with ii=0, ii=1 and ii=2. The second while statement will break the do-loop when ii = 3. Note:The Java programming language provides ado-whilestatement, which can be expressed as } while (expression);

Using Operators and Decision Constructs

Question

Given:

What is the result?

Exhibit

1Z0-803 question #25 exhibit

Options

  • A0
  • B0
  • C0
  • DCompilation fails

How the community answered

(26 responses)
  • A
    12% (3)
  • B
    81% (21)
  • C
    4% (1)
  • D
    4% (1)

Explanation

table.length is 3. So the do-while loop will run 3 times with ii=0, ii=1 and ii=2. The second while statement will break the do-loop when ii = 3. Note:The Java programming language provides ado-whilestatement, which can be expressed as } while (expression);

Topics

#operators#expression evaluation#type conversion

Community Discussion

No community discussion yet for this question.

Full 1Z0-803 Practice