exam questions

Exam 1z0-803 All Questions

View all questions & answers for the 1z0-803 exam

Exam 1z0-803 topic 1 question 10 discussion

Actual exam question from Oracle's 1z0-803
Question #: 10
Topic #: 1
[All 1z0-803 Questions]

Given:

How many times is 2 printed as a part of the output?

  • A. Zero
  • B. Once
  • C. Twice
  • D. Thrice
  • E. Compilation fails.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
larencejg
1 year, 6 months ago
Correct answer is 3
upvoted 1 times
...
AvinashKr
1 year, 6 months ago
No, zero is correct, as mentioned in the question to print the number 2 also, and the while loop condition is not satisfying for the value 2.
upvoted 1 times
...
lanibrand
3 years, 3 months ago
Exactly!
upvoted 1 times
...
VCGMUSE
4 years, 8 months ago
Shouldn't the answer be 3. The String ss is given the value of each individual index of the String array then printed out with the int ii; The while loop prints this out and repeats this action until ii is equal to 3. Output should be aa, 0 bb, 0 cc, 0 aa,1 bb,1 cc, 1 aa, 2 bb, 2 cc, 2 Unless I misunderstood the question.
upvoted 4 times
tadatrolai
3 years, 11 months ago
I agree with you
upvoted 2 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago