PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

You need to implement the RankingsO function

DRAG DROP
You are developing an application to display track and field race results.
The application must display the race results twice. The first time it must display only the
winner and runner-up. The second time it must display all participants. The code used to
display results is shown below.

You need to implement the RankingsO function.
Complete the function to meet the requirements. (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.)

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.
Convening 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.

Match the method declaration to the method body.

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