exam questions

Exam 98-388 All Questions

View all questions & answers for the 98-388 exam

Exam 98-388 topic 1 question 7 discussion

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

HOTSPOT -
You are creating a Java console application.
You need to read a birthdate entered by the user.
How should you complete the code? To answer, select the appropriate code segments in the answer area.
NOTE: Each correct selection is worth one point.
Hot Area:

Show Suggested Answer Hide Answer
Suggested Answer:
References:
https://docs.oracle.com/javase/7/docs/api/java/io/InputStreamReader.html

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
NhutDM1
Highly Voted 5 years, 2 months ago
The answer should be: java.util.Scanner; Scanner sc = new Scanner(System.in); sc.next(); sc.close();
upvoted 18 times
Abhitera
4 years, 4 months ago
U r correct
upvoted 1 times
...
...
Matthew_Hart
Most Recent 5 years, 1 month ago
Must be an error, they're asking for a scanner variable, not an input stream.
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 ...