Pass4itsure > Microsoft > Microsoft Certifications > 98-388 > 98-388 Online Practice Questions and Answers

98-388 Online Practice Questions and Answers

Questions 4

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
Questions 5

HOTSPOT

You are writing a Java method.

The method accepts a two-dimensional String array and prints the content of each array element.

The size of each dimension of the array might be different.

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
Questions 6

HOTSPOT

You are developing a Java program to play Tic-Tac-Toe. You define the following array to store the state of the board: 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
Questions 7

HOTSPOT

You are creating a method that converts a string representation of a number into an actual number.

The numbers passed into the method include whole numbers and fractional numbers.

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
Questions 8

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
Questions 9

DRAG DROP

You are writing a Java method that evaluates an arithmetic formula.

The method accepts an int value named number, raises the value to the second power, and returns the negative value of the result.

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
Questions 10

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
Questions 11

You need to evaluate the following code segment:

What happens when the code segment is run?

A. iNum has a value of 0.

B. An exception is thrown.

C. iNum has a value of 2.

D. iNum has a value of 3.

Buy Now
Questions 12

You work as a Java programmer.

You need to convert a numeric String to a primitive double value.

What code segment should you use?

A. Double.valueOf(numberString);

B. double.parseDouble(numberString);

C. String.parseDouble(numberString);

D. Double.parseDouble(numberString);

Buy Now
Questions 13

The question requires that you evaluate the underlined text to determine if it is correct. You have the following class definition:

The logError method can be invoked by code in all classes in the same package as the Logger class.

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. only by the Logger class

C. only by the Logger class and classes in the same package that inherit from it

D. by all classes in all packages

Buy Now
Exam Code: 98-388
Exam Name: Introduction to Programming Using Java
Last Update: Jun 04, 2026
Questions: 42
10%OFF Coupon Code: SAVE10

PDF (Q&A)

$49.99

VCE

$55.99

PDF + VCE

$65.99