exam questions

Exam 1z0-808 All Questions

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

Exam 1z0-808 topic 1 question 41 discussion

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

Given the following code:

What is the output?

  • A. 4
  • B. 3
  • C. 4
  • D. 5
  • E. 4
  • F. 4
Show Suggested Answer Hide Answer
Suggested Answer: E 🗳️

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
letmein2
Highly Voted 5 years, 6 months ago
result: 4 5 // 4 elements in the array, 5 chars in Venus.
upvoted 28 times
...
rasifer
Highly Voted 5 years, 5 months ago
Answer is: 4 5
upvoted 10 times
...
vic88
Most Recent 2 weeks ago
Selected Answer: A
4 and 5. 4 elements in the array, and 5 chars in the String of "Venus" which [1]
upvoted 1 times
...
somrita90
1 year, 3 months ago
AD or CD
upvoted 1 times
...
Sreeni_A
1 year, 4 months ago
Answer is 4 and 5 ( CD)
upvoted 1 times
...
Kolodets
1 year, 7 months ago
CD there is length variable of array and length() method of String => 4, 5
upvoted 1 times
...
Vicky_65
1 year, 8 months ago
Given options are not chooseable.But,the output is 4 and 5
upvoted 1 times
...
odzio33
1 year, 11 months ago
Selected Answer: A
String[] planets = {"Mercury", "Venus", "Earth", "Mars"}; System.out.println(planets.length); //4 elements in the array System.out.println(planets[1].length()); //Venus - 5 characters So there are two possible answers: 4 and 5
upvoted 2 times
...
carloswork
2 years, 1 month ago
Possible Real Answers: A. 4 21 B. 5 4 C. 3 5 D. 4 4 E. 4 7 F. 4 5 Link: https://vceguide.com/what-is-the-output-3/
upvoted 2 times
...
carloswork
2 years, 1 month ago
I tested, the output has two numbers (4, 5) but the available options are not well formatted. It was should be a checkbox.
upvoted 2 times
...
kkaayyyy
2 years, 2 months ago
Answer is 4 5
upvoted 2 times
...
RoxyFoxy
2 years, 3 months ago
Selected Answer: C
String[] planets = {"Mercury", "Venus", "Earth", "Mars"}; System.out.println(planets.length); //4 elements in the array System.out.println(planets[1].length()); //at index 1, Venus has 5 characters So there are two possible answers: 4 and 5
upvoted 2 times
...
sumit_1919
2 years, 3 months ago
answer is 4 5
upvoted 2 times
...
Anupam_Anand
2 years, 11 months ago
answer is 4 5 but it is not associated with any option
upvoted 3 times
...
brianhuang881215
3 years, 4 months ago
ans CDEF
upvoted 1 times
...
SSJ5
3 years, 8 months ago
Answer 4 5
upvoted 1 times
...
dya45792
5 years ago
Antwort C , D, public static void main(String[] args) { String []planetStrings = { "Mercury", "Venus", "Erath", "Mars"}; System.out.println(planetStrings.length); System.out.println(planetStrings[1].length()); } 4 5
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