Leads4pass > 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 segment. 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 interviewing for a job as a Java developer.

You are presented with the following code. Line numbers are included for reference only.

You need to evaluate what happens when the code runs.

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 6

HOTSPOT

You are interviewing for a job as a Java developer. You need to demonstrate your understanding of switch statements.

For each of the following code segments, select Yes if the code segment can be changed to a switch statement with up to three case statements. Otherwise, select No.

NOTE: Each correct selection is worth one point.

Hot Area:

Buy Now
Questions 7

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

HOTSPOT

You work on a team that develops e-commerce applications. A member of the team creates a class named DB that connects to a database. The class contains a method named query.

You need to initiate the DB class and invoke the query method.

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 9

HOTSPOT

You write the following Java program for Munson's Pickles and Preserves Farm. Line numbers are included for reference only.

You encounter error messages when you attempt to compile the program.

You need to ensure the program compiles successfully.

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 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
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
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: Jan 14, 2025
Questions: 42
10%OFF Coupon Code: SAVE10

PDF (Q&A)

$49.99

VCE

$55.99

PDF + VCE

$65.99