exam questions

Exam 1z0-808 All Questions

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

Exam 1z0-808 topic 1 question 60 discussion

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

Given the following code:

What are the values of each element in intArr after this code has executed?

  • A. 15, 60, 45, 90, 75
  • B. 15, 90, 45, 90, 75
  • C. 15, 30, 75, 60, 90
  • D. 15, 30, 90, 60, 90
  • E. 15, 4, 45, 60, 90
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

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
Saftschnitzel
Highly Voted 3 years, 9 months ago
C is correct.
upvoted 9 times
...
DarGrin
Most Recent 3 months, 1 week ago
Selected Answer: C
C is correct
upvoted 1 times
...
Sreeni_A
5 months ago
C is corrrect
upvoted 1 times
...
GauriKatara
9 months, 2 weeks ago
package p1; public class Test { public static void main(String[] args) { int[] intArr = {15,30,45,60,75}; intArr[2] = intArr[4]; intArr[4] = 90; /* this is for testing code * for (int i = 0; i < intArr.length; i++) { System.out.printf("\n intArr[%d]=" * + intArr[i], i); } */ } }
upvoted 2 times
Kolodets
8 months, 3 weeks ago
thanks
upvoted 1 times
...
...
baledevit
1 year, 3 months ago
Selected Answer: C
C is correct!
upvoted 1 times
...
iSnover
1 year, 3 months ago
C is correct, remember that Java indexes from 0, so the lists too and the last index is its size -1
upvoted 1 times
...
SSJ5
2 years, 9 months ago
C is correct
upvoted 1 times
...
natiqbashir
2 years, 11 months ago
Yeah C seems legit
upvoted 1 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