CPSC 2150 Exam 2 || with 100% Verified Solutions.
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 Test Component correct answers part of the system that can be isolated for testing Test Plan correct answers set of test cases for a specific unit Generics correct answers the idea that we can parameterize a data type used somewhere in the class or interface T correct answers used as the stand in type for our generic data type that is passed in as a parameter What is the formal and actual types of the following if Stack1 has a constructor that takes a generic as a parameter: IStack<Integer si> = new Stack1<Integer>(100); correct answers T - formal type Integer - actual type True or False: Java demands that generic arguments are reference types correct answers True Choose all of the following reference types: a. int b. Integer c. Character d. char e. double correct answers b, c True or false: boxing and unboxing DO NOT happen automatically correct answers false; boxing and unboxing happen automatically What allows us to parameterize our classes and interfaces? correct answers Generics True or false: reference types must have an implementation for methods such as equal(Obj object) and toString() correct answers true; if not we get some wonky stuff happening Testing correct answers the systematic attempt to find faults/bugs in a planned way in the implemented software A successful test case shows us... correct answers a failure True or false: a successful test case shows us a bug's location in the code correct answers false; it tells us that a bug exists but not where
Written for
- Institution
- CPSC 2150
- Course
- CPSC 2150
Document information
- Uploaded on
- March 25, 2024
- Number of pages
- 9
- Written in
- 2023/2024
- Type
- Exam (elaborations)
- Contains
- Questions & answers
Subjects
Also available in package deal