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:

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:

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:

HOTSPOT
You are writing a Java program.
The program must meet the following requirements:
Truncate firstName to its first five characters
Set output to a string that contains the firstName and the number of characters in firstName
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 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:

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
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:

DRAG DROP
References: http://www.tutorialspoint.com/java/java_strings.htm
Your instructor asks you to evaluate four arithmetic code segments.
What is the value of each code segment? To answer, drag the appropriate value 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:

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);