nerdexam
Oracle

1Z0-803 · Question #57

Give: What value should replace KK in line x to cause jj = 5 to be output?

The correct answer is E. 11. We need to get jj to 5. It is initially set to 0. So we need to go through the for loop 5 times. The for loops ends when ii > 6 and ii decreases for every loop. So we need to initially set ii to 11. We set kk to 11.

Using Operators and Decision Constructs

Question

Give:

What value should replace KK in line x to cause jj = 5 to be output?

Exhibit

1Z0-803 question #57 exhibit

Options

  • A-1
  • B1
  • C5
  • D8
  • E11

How the community answered

(29 responses)
  • A
    3% (1)
  • B
    7% (2)
  • C
    3% (1)
  • D
    21% (6)
  • E
    66% (19)

Explanation

We need to get jj to 5. It is initially set to 0. So we need to go through the for loop 5 times. The for loops ends when ii > 6 and ii decreases for every loop. So we need to initially set ii to 11. We set kk to 11.

Topics

#conditional logic#loops#operators#reverse engineering

Community Discussion

No community discussion yet for this question.

Full 1Z0-803 Practice