CPSC 2150 || Questions and 100% Accurate Answers.
Test Driven Development (TDD) cons correct answers Only works with blackbox testing Coding to the test plan relies on having a great test plan What are we parameterizing with generics? correct answers A data type used somewhere in the class or interface (Ex. Lists) What is used as a stand in for data type using generics? correct answers T When is the actual type of a generic entry selected? correct answers When the client uses the type to declare or instantiate a variable. (as of java 7 generic arguments from the constructor call are inferred from the declared type). The diamond operator means the same thing as the constructor with explicit generic arguments. Java demands that generic types must be... correct answers reference types Reference types always have which two methods defined? correct answers equals() and toString() (they inherit them from Object) Wrapper types are... correct answers immutable If a class is immutable, then the value of that object... correct answers cannot change We change Integers by changing the... correct answers reference (boxing and unboxing) When you use the final keyword on a reference type, it means that the memory address.... However, you might be able to change the data stored at that memory address if the object has... correct answers can't change, mutable private fields. Generics allow us to parameterize our ... and ... correct answers classes, interfaces What things does parameterizing our classes and interfaces rely on? correct answers 1. All non-primitive types are reference types 2. Reference types extend Object (allows for casting) 3. Reference types have an implementation for many methods, such as equals and toString. (They may not do what we expect, but they will at least compile) Failure correct answers any deviation of the observed behavior from the specified behavior Erroneous State correct answers the system is in a state such that further processing of the system will result in a failure. Fault correct answers the mechanical or algorithmic cause of the erroneous state. (AKA defect, bug) (Fault leads to erroneous state which leads to failure) Test component correct answers part of the system that can be isolated fortesting
Escuela, estudio y materia
- Institución
- CPSC 2150
- Grado
- CPSC 2150
Información del documento
- Subido en
- 25 de marzo de 2024
- Número de páginas
- 11
- Escrito en
- 2023/2024
- Tipo
- Examen
- Contiene
- Preguntas y respuestas
Temas
-
test driven development tdd cons
Documento también disponible en un lote