• 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 4 out of 43 pages
Exam (elaborations)

Soen 341 Exam Test Bank 2025 | All Exam Questions And Correct Answers | Already Graded A+ | Verified Answers | Latest Version (All That Is Needed In One Document)

Document preview thumbnail
Preview 4 out of 43 pages

SOEN 341 EXAM TEST BANK 2025 | ALL EXAM QUESTIONS AND CORRECT ANSWERS | ALREADY GRADED A+ | VERIFIED ANSWERS | LATEST VERSION (ALL THAT IS NEEDED IN ONE DOCUMENT)

Content preview

1|Page



SOEN 341 EXAM TEST BANK 2025 | ALL EXAM
QUESTIONS AND CORRECT ANSWERS | ALREADY
GRADED A+ | VERIFIED ANSWERS | LATEST VERSION
(ALL THAT IS NEEDED IN ONE DOCUMENT)
Types of design patterns and explain each - (ANSWER)Creational: Abstracts the
object instantiationProcess



Structural: Abstracts how classes and objects are composed to build larger
structures



Behavioural: Abstracts algorithms and assignment of responsibility among objects



Explain Observer - (ANSWER)Name: Observer (aka: Publish-Subscribe)



Problem description: Use when multiple presentations of an object's state are
needed




Solution description: Separates presentation of object state from the object itself



Name 3 structural patterns - (ANSWER)Adapter, composite, decorator



Explain Adapter - (ANSWER)Name:

,2|Page


Adapter (aka: Wrapper)



Problem description:

Use when a class' interface doesn't match

with the hierarchy that we want to use



Solution description:

Inject a class to adapt the interface to the

expectation



Explain overriding - (ANSWER)Allows subclasses to redefine

methods that superclasses have

already defined or declared



Explain interfaces - (ANSWER)Defines the methods that a class will

respond to



Can be declared in a .java file



Explain abstract class - (ANSWER)Can declare methods without

providing an implementation

,3|Page


Can define methods as well



Cannot be instantiated directly



Name creational patterns - (ANSWER)Abstract factory, Factory method



Explain factory method - (ANSWER)Name:

Factory Method (aka: Virtual Constructor)



Problem description:

Use when a class cannot anticipate the

objects it must create



Solution description:

Defers the responsibility of creating objects

to subclasses that know what to create



Explain abstract factory - (ANSWER)Name:

Abstract Factory (aka: Kit)



Problem description:

Use when your system must be configured

, 4|Page


with one of multiple families of objects



Solution description:

Creates abstractions that hide the

configuration details of the object families



Explain composite - (ANSWER)Name:

Composite



Problem description:

Use to allow clients to treat individual

objects and collections of them identically



Solution description:

Use an abstraction to hide the fact that an

object is an aggregate of several objects



Example: arithmetic tree



Explain decorator - (ANSWER)Name:

Decorator

Document information

Uploaded on
March 7, 2025
Number of pages
43
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers
Free
Download

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

Sold
504
Followers
2
Items
3027
Last sold
2 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