Select "No change is needed” if the underlined text makes the statement correct.
This question requires that you evaluate the underlined text to determine if it is correct.
The default entry point for a console application is the Class method.
Select the correct answer if the underlined text does not make the statement correct. Select
“No change is needed” if the underlined text makes the statement correct.
Select "No change is needed” if the underlined text makes the statement correct.
This question requires that you evaluate the underlined text to determine if it is correct.
Converting an object to a more general type is called upcasting.
Select the correct answer if the underlined text does not make the statement correct. Select
“No change is needed” if the underlined text makes the statement correct.
You need to implement the FootRace class
DRAG DROP
You are extending an application that stores and displays the results of various types of foot
races. The application contains the following definitions:
The following code is used to display the result for a race:
The contents of the console must be as follows:
99 seconds
1.65 minutes
99
You need to implement the FootRace class.
Match the method declaration to the method body, (To answer, drag the appropriate
declaration from the column on the left to its body on the right. Each declaration may be
used once, more than once, or not at all. Each correct match is worth one point.)
How should you call the Glass class implementation of the break() method?
You have a class named Glass that inherits from a base class named Window. The Window
class includes a protected method named break().
How should you call the Glass class implementation of the break() method?
How many times is the Location property on the newly created Match class assigned?
For each of the following statements, select Yes if the statement is true.
HOTSPOT
You have a base class named Tree with a friend property named color and a protected
property named NumberOfLeaves. In the same project, you also have a class named Person.
For each of the following statements, select Yes if the statement is true. Otherwise, select
No. Each correct selection is worth one point.
For each of the following statements, select Yes if the statement is true.
Select "No change is needed” if the underlined text makes the statement correct.
This question requires that you evaluate the underlined text to determine if it is correct.
The duplication of code so that modifications can happen in parallel is known as separating.
Select the correct answer if the underlined text does not make the statement correct. Select
“No change is needed” if the underlined text makes the statement correct.
Use the drop-down menus to select the answer choice that answers each question.
HOTSPOT
You are reviewing the architecture for a system that allows race officials to enter the results
of 5K race results. The results are then made available to students using a web application.
The architecture is shown below:
Use the drop-down menus to select the answer choice that answers each question. Each
correct selection is worth one point.
You need to implement the Add Race method
DRAG DROP
You are developing an application that displays a list of race results. The race results are
stored in the following class:
You need to implement the Add Race method.
Match the code segment to its location. (To answer, drag the appropriate code segment from
the column on the left to its location on the right, Each code segment may be used once,
more than once, or not at all. Each correct match is worth one point.)