98-388 Introduction to Programming Using Java

Loading demo links...

Showing 1–3 of 10 questions

Question 1 (Topic 2, Work with data types, variables, and expressions)

DRAG DROP

You are writing a Java program that collects patient information and stores it in a database.

You need to ensure that the program stores data using the least amount of memory.

Which data type should you use to complete each variable declaration? To answer, drag the appropriate data type from the column on the left to its code segment on the right. Each data 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.

Select and Place:

Answer is in the explanation below.

Question 2 (Topic 3, Implement flow control)

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:

Answer is in the explanation below.

Question 3 (Topic 3, Implement flow control)

HOTSPOT

You work as a Java programmer. A member of the team creates the following program. Line numbers are included for reference only.

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:

Answer is in the explanation below.