exam questions

Exam 1z0-811 All Questions

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

Exam 1z0-811 topic 1 question 25 discussion

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

Given the code:

Which code fragment, when inserted at line n1, enables the code to print sum is 30?

  • A. int sum(int a, b) {
  • B. int sum(int a, int b) {
  • C. int sum(int, int) {
  • D. int sum(int[] a, b) {
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

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
tombatossals
4 months, 3 weeks ago
Selected Answer: B
B is the obvious correct answer.
upvoted 1 times
...
tabrezshaikh13
6 months, 2 weeks ago
Selected Answer: B
B is the correct answer.
upvoted 1 times
...
arjunec1
1 year ago
Selected Answer: B
I believe the answer should be B, array as parameter is not useful here.
upvoted 2 times
...
abelsfc
1 year, 1 month ago
The right answer is B. D makes no sense. Checked on Eclipse.
upvoted 4 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