HOTSPOT
You need to evaluate the following Java program. 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 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:
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 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 are writing a Java method.
The method must meet the following requirements:
Accept a String array named entries
Iterate through entries
Stop the iteration and return false if any element has more than 10 characters
Otherwise, return true
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 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:
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 have the following code segment. Line numbers are included for reference only.
What is the output of line 07?
A. -44
B. -40.0
C. 40.0
D. 44.0
You need to analyze the following code segment. Line numbers are included for reference only.
What is the output of line 12 when you run printInt()?
A. 0
B. 1
C. 2
D. 3