Question 6
This question requires that you evaluate the underlined text to determine if it is correct.
The bubble sort algorithm steps through the list to be sorted, comparing adjacent items and swapping them if they are in the wrong order 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.
Question 7
The Dog class and the Cat class inherit from the Animal class. The Animal class includes a breathe() method and a speak() method. If the speak() method is called from an object of type Dog, the result is a bark. If the speak() method is called from an object of type Cat, the result is a meow.
Which term is used to describe this object-oriented concept?
Question 8
You run the following code.
What will the value of the variable iResult be?
Question 9
Drag and Drop Question
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.)
Question 10
You are creating an application for a priority help desk center.
The most recent call must be handled first.
Which data structure should you use?

