Answer:
The role of test oracle is to determine if a test has passed or failed. Oracle compares the outputs of the system under a test, for a given test-case input, and the output(s) that should have. A test oracle works on specifying constraints on the output(s) for a set of inputs. An oracle could be:
- a program which tells if the output is correct.
- documentation that specifies the correct output for inputs.
- a human that can tell whether it is correct an output.
Answer:
1. DLL Files.
2. System software repair.
3. Software configuration.
4. Human-computer interaction.
5. A graphical user interface (GUI).
Explanation:
1. DLL Files can become lost or damaged on a computer and prevent it from working correctly. These are important registry files used by various system softwares to perform specific tasks.
2. System software repair is a type of software you can run to help fix computer problems. Some examples are disk defragmenter, regedit, etc.
3. Software configuration means the process of setting up an application and selecting specific options. This is usually done in the settings section of a software application or program.
4. Human-computer interaction is the name of the discipline concerned with the design of optimal user interfaces.
5. A graphical user interface (GUI) is what users make use of to interact with graphical icons and other visual elements in order to accomplish tasks.
Answer:
C. leagueName=newPlayers.getLeague(); getLeague() is not a member of Players.
Explanation:
The main method in this code will case an error when trying to run the following line of code...
leagueName=newPlayers.getLeague();
This is because the method getLeague() is being called on a Player object which takes all of its methods from the Player class. Since getLeague() is not a method located in the player class then it cannot be called by an object from that class. Especially since the Player class does not extend to the SoccerPlayers class where the getLeague() method is actually located. Instead, it is the SoccerPlayers class which extends the Players class as its parent class.