exam questions

Exam 1z0-808 All Questions

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

Exam 1z0-808 topic 1 question 124 discussion

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

Given:

What is the result?

  • A. 10 : 30 : 6
  • B. 10 : 22 : 22
  • C. 10 : 22 : 20
  • D. 10 : 22 : 6
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
MPignaProTech
2 months, 4 weeks ago
Selected Answer: A
good answer is A
upvoted 1 times
...
akbiyik
2 years, 1 month ago
Selected Answer: A
Answer is A
upvoted 1 times
...
carloswork
2 years, 2 months ago
Selected Answer: A
Answer is A. To test: public static void main(String[] args) { int i = 10; int j = 20; int k = (j += i)/ 5; System.out.println(i + " : " + j + " : " + k); }
upvoted 1 times
...
iSnover
2 years, 3 months ago
Selected Answer: A
The correct answer is letter A. This is a type of question that you should be very careful about. Because in the instantiation line of the variable "k" there is a parenthesis an operation that changes the variable "j" (20) adding the value of "i" (10) making the new value of "j" to 30, as it is between parenthesis it adds the value to the variable K and then divides it by 5. If you have doubts, I also tested the code, it is here: public static void main(String[] args) { int i = 10; int j = 20; int k = (j += i) / 5; System.out.print(i + ":" + j + ":" + k); } }
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