HOTSPOT
You are interviewing for a job as a Java developer. You need to evaluate the following code. Line numbers are included for reference only.

For each of the following statements, select Yes if the statement is true. Otherwise, select No. NOTE: Each correct selection is worth one point.
Hot Area:

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:

HOTSPOT
You are writing a Java console program.
The program must meet the following requirements:
Read a line of text entered by the user
Print each word in the text to the console on a separate line
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:

HOTSPOT
You have the following code segment. Line numbers are included for reference only.

The code does not compile.
For each of the following statements, select Yes if the action is required to resolve the compilation error. Otherwise, select No.
NOTE: Each correct selection is worth one point.
Hot Area:

DRAG DROP
You need to evaluate the following Java program. Line numbers are included for reference only.

Which three values will be displayed in sequence? To answer, move the appropriate values from the list of values to the answer area and arrange them in the correct order. NOTE: Each correct selection is worth one point.
Select and Place:

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:

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:

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:

DRAG DROP
You attend an interview for a job as a Java programmer.
You need to declare a two by three array of the double type with initial values.
How should you complete the code? To answer, drag the appropriate code segment to the correct location. 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:

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