exam questions

Exam 1z0-808 All Questions

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

Exam 1z0-808 topic 1 question 22 discussion

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

Given the following main method:

What is the result?

  • A. 5 4 3 2 1 0
  • B. 5 4 3 2 1
  • C. 4 2 1
  • D. 5
  • E. Nothing is printed
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

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
M_Jawad
Highly Voted 4 years ago
Answer is D
upvoted 13 times
...
dya45792
Highly Voted 4 years, 1 month ago
Antwort D ; public static void main(String[] args) { int num = 5; do { System.out.println(num-- + " "); }while (num == 0); } } 5
upvoted 7 times
...
arjunrawatirissoftware
Most Recent 3 months ago
Answer - D
upvoted 1 times
...
duydn
4 months, 3 weeks ago
Selected Answer: D
do while always exec for the first loop, and the condition always false -> D is correct
upvoted 1 times
...
jlicini
5 months, 2 weeks ago
Selected Answer: D
Condition 'x == 0' is always 'false'
upvoted 1 times
...
dsms
5 months, 2 weeks ago
Selected Answer: D
correct answer is D
upvoted 1 times
...
Ankit1010
11 months, 1 week ago
D is the right answer.
upvoted 1 times
...
bakhdak
1 year, 7 months ago
Selected Answer: D
Answer is D
upvoted 1 times
...
Mthlagi
1 year, 11 months ago
Correct Answer is C.
upvoted 1 times
...
ddpk
1 year, 11 months ago
Answer D Do while loop works at least one time and (num==0) always return false.
upvoted 2 times
...
alexandrustefanescu
2 years, 6 months ago
Answer is D! Do while loop works at least one time
upvoted 4 times
...
SSJ5
2 years, 10 months ago
Answer is D
upvoted 1 times
...
Dizzi
2 years, 11 months ago
The answer is D because the while condition must be met in order to iterate again.
upvoted 1 times
...
v323rs
4 years ago
Agree, correct answer "D" 5
upvoted 3 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