exam questions

Exam 98-388 All Questions

View all questions & answers for the 98-388 exam

Exam 98-388 topic 1 question 23 discussion

Actual exam question from Microsoft's 98-388
Question #: 23
Topic #: 1
[All 98-388 Questions]

DRAG DROP -
You are writing a Java method.
The program must meet the following requirements:
✑ Accept a String parameter firstName
✑ Display a welcome message that contains firstName
✑ Ensure that the first letter of the name is capitalized, and the remaining letters are in lowercase
How should you complete the code? To answer, drag the appropriate code segment to the correct position. Each code segment may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.
NOTE: Each correct selection is worth one point.
Select and Place:

Show Suggested Answer Hide Answer
Suggested Answer:
References:
http://www.tutorialspoint.com/java/java_strings.htm

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
macp40
Highly Voted 4 years, 11 months ago
firstName.substring(0,1).toUpperCase() + firstName.substring(1).toLowerCase() is correct!
upvoted 33 times
Abhitera
4 years, 4 months ago
True correct
upvoted 1 times
...
...
lulzosad
Highly Voted 4 years ago
Who is giving those solutions? Omg...
upvoted 5 times
Walkie
3 years, 1 month ago
fr why are half the solutions wrong. Thank god for Abhitera
upvoted 1 times
...
...
alana_rosse
Most Recent 3 years ago
What should I follow? the solutions or you guys T_T
upvoted 1 times
...
AhmadChebaro
4 years ago
that is correct or not ??
upvoted 2 times
...
prasadkadu
4 years, 9 months ago
thanks
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 ...