nerdexam
Oracle

1Z0-803 · Question #51

Given the code fragment: What is the result?

The correct answer is A. 2. Variable b is set to 4. Variable b is decreased to 3. Variable b is decreased to 2 and then printed. Output: 2 Variable b is printed. Output: 2

Using Loop Constructs

Question

Given the code fragment:

What is the result?

Exhibit

1Z0-803 question #51 exhibit

Options

  • A2
  • B1
  • C3
  • D3

How the community answered

(24 responses)
  • A
    75% (18)
  • B
    4% (1)
  • C
    13% (3)
  • D
    8% (2)

Explanation

Variable b is set to 4. Variable b is decreased to 3. Variable b is decreased to 2 and then printed. Output: 2 Variable b is printed. Output: 2

Topics

#loop constructs#for loop#while loop#conditional statements

Community Discussion

No community discussion yet for this question.

Full 1Z0-803 Practice