Question 6 of 42

HOTSPOT -

You write the following code:

You need to determine the values of the data1, data2, data3, and data4 variables.

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:

    Correct Answer:

    References:

    https://docs.oracle.com/javase/7/docs/api/java/util/Scanner.html

Question 7 of 42

HOTSPOT -

You are creating a Java console application.

You need to read a birthdate entered by the user.

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:

    Correct Answer:

    References:

    https://docs.oracle.com/javase/7/docs/api/java/io/InputStreamReader.html

Question 8 of 42

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:

    Correct Answer:

Question 9 of 42

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:

    Correct Answer:

    References:

    https://docs.oracle.com/javase/tutorial/getStarted/cupojava/netbeans.html

Question 10 of 42

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:

    Correct Answer: