CPSC 2150 FINAL EXAM VERIFIED 100%
___________ A class called account overview that contains the code to present the
different accounts to the user, and allow them to view high-level information, or select
an account to view in detail - ANSWER-View
____________ A class called LoanAppProcess that will contain the code to handle the
process of a customer applying for a loan. It will use boundary objects to gather
information from the user, and then create entity objects that calculate whether the
customer is approved for the loan - ANSWER-Controller
____________ A class called LoanAppScreen that would contain the code to produce
the user interface that the user will use to apply for a loan - ANSWER-View
____________ A class called mortgage that will hold the information about a mortgage (
the number of years, interest rate, monthly payment. ) - ANSWER-Model
_____________ A class called Credit Check that holds the information about a
customers credit history - ANSWER-Model
_____________ A class called Transfer that handles the process of transfer money
from one bank account to another - ANSWER-Controller
__________________ A class called account manager that will handle the process of
viewing information about accounts. Account manage does not contain the account
information, nor does it interact with the user directly, but is the communication channel
that connects the classes that do - ANSWER-Controller
___________________ objects are responsible for the actual flow of the program. They
may enforce a certain order of event, and help our other objects interact with each other
- ANSWER-Control
_____________________ objects represent an interaction between the system and the
user, or another external system - ANSWER-Boundary
_____________________ objects represent some real world concepts or obejct, such
as employee, a car, or a pizza - ANSWER-Entity
____________________________ are used to tie our private data variables in the
implenetation to the abstract concepts that appear in our interface spcification. -
ANSWER-Correspondences
_____________________A class called Login screen that will contain the code to
create the login screen and allow the user the user to enter their login information -
ANSWER-View
, ___________________A class called bankAccount that contains information about a
customer's bank account such as account number, balance, etc. - ANSWER-Model
A _________________ can implement a _________________. - ANSWER-Class,
Interface
Abstract class, Interface
A __________________ can extend an _______________________. - ANSWER-They
have to be of the same type
Interface, Interface
Class, Class
Class, Abstract Class
A _____________________ is any deviation of the observed output from the expected
or specified
output - ANSWER-Failure
A successful test case will reveal ... - ANSWER-A Failure
A(n) _________________ leads to a(n) _____________________ which leads to a(n)
_____________________ - ANSWER-Fault, Erroneous State, Failure
An ____________________ object is an object who's abstract value can never really
change. Any change to this object are actually changing the memory location and
leaving the original abstract value the same in the old memory location. We can use
these objects to avoid aliasing errors. - ANSWER-Inmutable
At which time is it safe to assume that the invariant of a class is true? - ANSWER-After
the constructor for the object has completed
At the beginning of a public method
After a public method has finished
Can you rely on the results of a previous test case for your current test can when using
JUnit testing? - ANSWER-NO
Consider the following code:
List<Integer> myList = new ArrayList<>();
Integer X = 36;
myList.add(X);
X = 42;
Will myList contain the number 36 after the code runs? - ANSWER-Yes (Immutable
Objects-- Wrapper Class)
___________ A class called account overview that contains the code to present the
different accounts to the user, and allow them to view high-level information, or select
an account to view in detail - ANSWER-View
____________ A class called LoanAppProcess that will contain the code to handle the
process of a customer applying for a loan. It will use boundary objects to gather
information from the user, and then create entity objects that calculate whether the
customer is approved for the loan - ANSWER-Controller
____________ A class called LoanAppScreen that would contain the code to produce
the user interface that the user will use to apply for a loan - ANSWER-View
____________ A class called mortgage that will hold the information about a mortgage (
the number of years, interest rate, monthly payment. ) - ANSWER-Model
_____________ A class called Credit Check that holds the information about a
customers credit history - ANSWER-Model
_____________ A class called Transfer that handles the process of transfer money
from one bank account to another - ANSWER-Controller
__________________ A class called account manager that will handle the process of
viewing information about accounts. Account manage does not contain the account
information, nor does it interact with the user directly, but is the communication channel
that connects the classes that do - ANSWER-Controller
___________________ objects are responsible for the actual flow of the program. They
may enforce a certain order of event, and help our other objects interact with each other
- ANSWER-Control
_____________________ objects represent an interaction between the system and the
user, or another external system - ANSWER-Boundary
_____________________ objects represent some real world concepts or obejct, such
as employee, a car, or a pizza - ANSWER-Entity
____________________________ are used to tie our private data variables in the
implenetation to the abstract concepts that appear in our interface spcification. -
ANSWER-Correspondences
_____________________A class called Login screen that will contain the code to
create the login screen and allow the user the user to enter their login information -
ANSWER-View
, ___________________A class called bankAccount that contains information about a
customer's bank account such as account number, balance, etc. - ANSWER-Model
A _________________ can implement a _________________. - ANSWER-Class,
Interface
Abstract class, Interface
A __________________ can extend an _______________________. - ANSWER-They
have to be of the same type
Interface, Interface
Class, Class
Class, Abstract Class
A _____________________ is any deviation of the observed output from the expected
or specified
output - ANSWER-Failure
A successful test case will reveal ... - ANSWER-A Failure
A(n) _________________ leads to a(n) _____________________ which leads to a(n)
_____________________ - ANSWER-Fault, Erroneous State, Failure
An ____________________ object is an object who's abstract value can never really
change. Any change to this object are actually changing the memory location and
leaving the original abstract value the same in the old memory location. We can use
these objects to avoid aliasing errors. - ANSWER-Inmutable
At which time is it safe to assume that the invariant of a class is true? - ANSWER-After
the constructor for the object has completed
At the beginning of a public method
After a public method has finished
Can you rely on the results of a previous test case for your current test can when using
JUnit testing? - ANSWER-NO
Consider the following code:
List<Integer> myList = new ArrayList<>();
Integer X = 36;
myList.add(X);
X = 42;
Will myList contain the number 36 after the code runs? - ANSWER-Yes (Immutable
Objects-- Wrapper Class)