Exam2pass
0 items Sign In or Register
  • Home
  • IT Exams
  • Guarantee
  • FAQs
  • Reviews
  • Contact Us
  • Demo
Exam2pass > Microsoft > Microsoft Certifications > 98-388 > 98-388 Online Practice Questions and Answers

98-388 Online Practice Questions and Answers

Questions 4

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:

Buy Now

Correct Answer:

References: https://docs.oracle.com/javase/7/docs/api/java/io/InputStreamReader.html

Questions 5

HOTSPOT

You need to evaluate the following code. Line numbers are included for reference only.

Use the drop-down menus to select the answer choice that answers each question based on the information presented in the code. NOTE: Each correct selection is worth one point.

Hot Area:

Buy Now

Correct Answer:

Questions 6

HOTSPOT

You are writing a Java console program. The program accepts command line arguments.

You need to ensure that the main method parses and handles each command line argument.

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:

Buy Now

Correct Answer:

Questions 7

HOTSPOT

You work as an intern Java programmer at Adventure Works. Your team lead asks you to create a method. The method must meet the following requirements:

Accept an int array

Check for duplicate values in the array

Stop the outer loop as soon as a duplicate value has been detected and return true

Return false if all values in the array are unique 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:

Buy Now

Correct Answer:

References: https://stackoverflow.com/questions/3951547/java-array-finding-duplicates

Questions 8

HOTSPOT

You are writing a Java method.

The method must meet the following requirements:

Accept a String array named entries

Iterate through entries

Stop the iteration and return false if any element has more than 10 characters

Otherwise, return true

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:

Buy Now

Correct Answer:

Questions 9

HOTSPOT

The program is supposed to display a message to the console while it counts down from 60. The method does not work as intended.

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:

Buy Now

Correct Answer:

References: https://docs.oracle.com/javase/tutorial/java/nutsandbolts/operators.html

Questions 10

DRAG DROP

You are interviewing for a job at Adventure Works, Inc. The hiring manager asks you to create a single console program.

The program takes multiple arguments from the command line and writes them to the screen in the same order as they were typed on the command line.

Which three code segments should you use to develop the solution? To answer, move the appropriate code segments from the list of code segments to the answer area and arrange them in the correct order.

Select and Place:

Buy Now

Correct Answer:

Questions 11

DRAG DROP

References: https://docs.oracle.com/javase/tutorial/getStarted/cupojava/netbeans.html

You have the following code:

You need to create an int array named numbers initialized with num1, num2, and num3.

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:

Buy Now

Correct Answer:

Example:

int[] numbers = new int[] {num1, num2, num3}

References:

https://docs.oracle.com/javase/tutorial/java/nutsandbolts/arrays.html

https://alvinalexander.com/blog/post/java/java-faq-create-array-int-example-syntax

Questions 12

DRAG DROP

You have a Java class named InsurancePolicy.

You need to define a constant data member named RATE. The data member must be accessible by any class without instantiating the InsurancePolicy class.

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:

Buy Now

Correct Answer:

References: https://docs.oracle.com/javase/tutorial/java/javaOO/classvars.html

Questions 13

The question requires that you evaluate the underlined text to determine if it is correct.

You should use an int data type to store the numeric value 3,000,000,000 (3 billion) so that the least amount of memory is used.

Review the underlined text. If it makes the statement correct, select "No change is needed." If the statement is incorrect, select the answer choice that makes the statement correct.

A. No change is needed.

B. a short

C. a byte

D. a long

Buy Now

Correct Answer: D

Exam Code: 98-388
Exam Name: Introduction to Programming Using Java
Last Update: Jun 30, 2025
Questions: 42

PDF (Q&A)

$45.99
ADD TO CART

VCE

$49.99
ADD TO CART

PDF + VCE

$59.99
ADD TO CART

Exam2Pass----The Most Reliable Exam Preparation Assistance

There are tens of thousands of certification exam dumps provided on the internet. And how to choose the most reliable one among them is the first problem one certification candidate should face. Exam2Pass provide a shot cut to pass the exam and get the certification. If you need help on any questions or any Exam2Pass exam PDF and VCE simulators, customer support team is ready to help at any time when required.

Home | Guarantee & Policy |  Privacy & Policy |  Terms & Conditions |  How to buy |  FAQs |  About Us |  Contact Us |  Demo |  Reviews

2025 Copyright @ exam2pass.com All trademarks are the property of their respective vendors. We are not associated with any of them.