Docsity

Software Engineering Design Q&A 2026 – Architecture & SOLID Guide, Exams of Computer Science

Toggle sidebar
bg1
Software Engineering: Design questions and
answers 2025/2026 latest update
1.What is design? - answer
2.Why is design difficult? - answerBecause design is an abstraction of the solution which has yet to be
created
Can a try/catch statement contain a try/catch statement? - answer
3.What is the Law of Demeter? - answer
4.Name four design principles: - answer1. Cohesion
2. Coupling
3. Abstraction
4. Encapsulation
5.What is the difference between encapsulation and abstraction? - answer
6.Abstraction is a term used to describe the act of: - answerDiscarding irrelevant details within a given
context
7.What is the difference between routine design and original design? Give examples of each. - answer
What is cohesion? - answerCohesion is a measure of how strongly related the functions or
responsibilities of a module are.
A module has high cohesion if all of its elements are working towards the same goal.
What is coupling? - answer
pf3
pf4
pf5
pf8
pf9

Partial preview of the text

Download Software Engineering Design Q&A 2026 – Architecture & SOLID Guide and more Exams Computer Science in PDF only on Docsity!

Software Engineering: Design questions and

answers 2025/2026 latest update 1.What is design? - answer

2.Why is design difficult? -created answerBecause design is an abstraction of the solution which has yet to be

Can a try/catch statement contain a try/catch statement? - answer 3.What is the Law of Demeter? - answer 4.Name four design principles: - answer1. Cohesion

  1. Coupling3. Abstraction
  2. Encapsulation 5.What is the difference between encapsulation and abstraction? - answer 6.Abstraction is a term used to describe the act of: -context answerDiscarding irrelevant details within a given

7.What is the difference between routine design and original design? Give examples of each. - answer What is cohesion? -responsibilities of a module are. answerCohesion is a measure of how strongly related the functions or A module has high cohesion if all of its elements are working towards the same goal. What is coupling? - answer

What is important about the relationship between cohesion and coupling? -program is one with high cohesion (also called strong cohesion) within modules and low coupling (also answerA well-designed called weak coupling) between modules. Modules are easier to read and understand. Modules are easier to modify.There is an increased potential for reuse. Modules are easier to develop and test. Explain separation of concerns: - answer Name three examples of separation of concerns: -HTML and presentation style in CSS answer1. A web page with content expressed in

  1. OSI Reference Model 3.Database abstraction layer Which has less coupling: a a dependency on an interface or a dependency on a concrete class? - answerA dependency on an interface is less coupling then a dependency on a concrete class.

Are you more or less likely to have regression errors when maintaining code that abides by the singleresponsibility principle? - answerLess likely

What is a fan? - answer What is dependency inversion? - answer What is dependency injection? - answer

One of the absolute worst programming practices (when maintainability is a concern) is to have onemodule write code that is then executed.

What is common coupling? - answerTwo or more modules connected via global data.

  • One module writes/updates global data that another module reads What is control coupling? - answerOne module determines the control flow path of another. Example: print(milesTraveled, displayMetricValues)... public void print(int miles, bool displayMetric) {if (displayMetric) { System.out.println(.. .);...

}else {.. .} What is stamp coupling? -it. Example: passing a record with three fields to a module that only needs the first two fields. answerPassing a composite data structure to a module that uses only part of

What is data coupling? - answerModules that share data through parameters. What is information hiding? - answer Name and describe three characteristics of software design: -deterministic process we have heuristics or rules-of-thumb rather than precise steps. answer**Because design isn't a Role of principles and heuristics: they are used to guide decisions and assess intermediate results.Heuristics arrive from trial and error with practice.

These heuristics tend to produce designs with the desirable characteristics listed earlymanaging complexity. ** —primarily

  1. Non-deterministic - A deterministic process is one that produces the same output given the sameinputs. Design is non-deterministic. No two designers or design processes are likely to produce the same output.
  2. Heuristic - because design is non-deterministic design techniques tend to rely on heuristics and rules-of-thumb rather than repeatable processes.
  3. Emergent - the final design evolves from experience and feedback. Design is an iterative andincremental process where a complex system arises out of relatively simple interactions.

What is encapsulation? -information hiding and abstractions. answerEncapsulation is an implementation mechanism for enforcing

There is no clear widely accepted definition of encapsulation. It can mean: A grouping together of related things (records, arrays) A protected enclosure (object with private data and/or methods) Write an example of each type of coupling: -2. Common answer1. Content

  1. Control4. Stamp
  2. Data What are the SOLID Principles of Object-Oriented Design? -O - Open/closed principle answerS - Single responsibility principle

What is Fan In/ Fan Out? - answerHigh Fan Out is bad What is clojure? - answer For inheritance purposes, can you extend a class that is "final" in Java? -it can't be inherited from so you can't extend its behavior via inheritance answerIf a class is final (in Java)

What's another name for high level design? - answerArchitecture Why is it a good idea to attempt routine design before an original design? -means to apply common patterns to familiar problems. answerA routine design

What are the three main characteristics of abstraction? -included? answer1. Which type of details should be

  1. How much detail should be included?
  2. What is the purpose of the abstraction? This will dictate the type and amount of detail to include. Itdetermines whether the detail should be: static or dynamic, the types: physical or logical, and the level: high or low. Name two types of data that you would want to encapsulate by utilizing the design principle Informationhiding: - answerData that is highly complex/critical and data that is likely to change.

**Encapsulation is a means of implementing information hiding. It is a programming language featurethat encloses one or more items. Examples: arrays recordsclasses

**subroutines

Name three examples of Information Hiding? -Avoid global variables answerScope variables as tight as possible The choice of algorithm or data structureSeparation of Interface and Implementation

What is the degree of coupling determined by? -and number of parameters passed for a connection between classes/interfaces. answer1. The complexity of the reference. The type

What is the difference between an interface and a concrete class? An abstract class? - answer What are heuristics? -thumb that works in most but not all situations. answerTrial and error methods for solving a problem. A heuristic is a rule-of-

What do analysis models represent? -domain and design models represent abstractions from the solution domain answerAnalysis models represent abstractions from the problem

What is the optimal relationship between use cases within an iteration and between iterations? - answerThere should be high cohesion among use cases within an iteration and low coupling between use cases in different iterations. It is generally easier to implemented a group of functionally related use cases rather than a group ofunrelated use cases. High coupling between use cases in different iterations will make development and integration more difficult. What type of fan-in/out will a popular, well written, easy to maintain, low utility module likely have? - answerHigh Fan-In

What is the worst Fan situation a module could be in? - answerHigh Fan-Out Which design strategy is most likely to yield reusable components that can be reused on other projects.- answerBottom-up aggregation