• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 2 out of 5 pages
Exam (elaborations)

Cpsc 2150 Final Exam Verified 100%

Document preview thumbnail
Preview 2 out of 5 pages

CPSC 2150 FINAL EXAM VERIFIED 100%

Content preview

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)

Document information

Uploaded on
March 6, 2025
Number of pages
5
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers
$11.49

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
CLOUNDLite
4.0
(131)
Sold
665
Followers
389
Items
12410
Last sold
4 days ago




Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions