Docsity

19-SOFT-A3 Software Design Exam B, Exams of Technology

Toggle sidebar
bg1
19-SOFT-A3 Software Design Exam B
Question 1. In the Software Development Life Cycle (SDLC), where does the
software design activity typically occur?
A) During requirements gathering
B) After implementation
C) Between requirements analysis and coding
D) During deployment and maintenance
Answer: C
Explanation: Software design occurs after requirements analysis and before
coding, serving as a blueprint for implementation.
Question 2. Which of the following best describes the primary purpose of
creating a software design document?
A) To specify hardware requirements
B) To facilitate communication among stakeholders and guide development
C) To write detailed test cases
D) To deploy the software to users
Answer: B
Explanation: A design document formalizes the architecture, components,
and interfaces, enabling communication and consistent development.
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b
pf4c
pf4d
pf4e
pf4f
pf50
pf51
pf52
pf53
pf54
pf55
pf56
pf57
pf58
pf59
pf5a
pf5b
pf5c
pf5d
pf5e
pf5f
pf60
pf61
pf62
pf63
pf64

Partial preview of the text

Download 19-SOFT-A3 Software Design Exam B and more Exams Technology in PDF only on Docsity!

Question 1. In the Software Development Life Cycle (SDLC), where does the software design activity typically occur? A) During requirements gathering B) After implementation C) Between requirements analysis and coding D) During deployment and maintenance Answer: C Explanation: Software design occurs after requirements analysis and before coding, serving as a blueprint for implementation. Question 2. Which of the following best describes the primary purpose of creating a software design document? A) To specify hardware requirements B) To facilitate communication among stakeholders and guide development C) To write detailed test cases D) To deploy the software to users Answer: B Explanation: A design document formalizes the architecture, components, and interfaces, enabling communication and consistent development.

Question 3. Correctness in software design primarily ensures that: A) The software performs efficiently under load B) The design accurately implements all specified functionalities C) The code is reusable across projects D) The system is easy to modify Answer: B Explanation: Correctness guarantees that the design faithfully implements the specified requirements and functionalities. Question 4. Reliability in software design refers to: A) The ease of maintaining the system B) The system's ability to perform its functions under stated conditions over time C) The portability of the software across environments D) The system's user friendliness Answer: B Explanation: Reliability measures the software's consistent performance and correct operation over a period under specified conditions.

Question 7. Robustness in software design enables the system to: A) Maximize performance under optimal conditions B) Handle errors gracefully during execution or with invalid input C) Be easily extended with new features D) Reduce resource consumption Answer: B Explanation: Robustness allows the system to manage errors and unexpected inputs without failure. Question 8. The principle of Separation of Concerns in software design advocates for: A) Combining multiple functionalities into single modules for efficiency B) Decomposing a system into distinct sections each addressing a specific concern C) Minimizing the number of modules to reduce complexity D) Hiding implementation details from users Answer: B Explanation: Separation of Concerns aims to divide a system into manageable parts, each responsible for a specific aspect.

Question 9. Abstraction in software design is primarily used to: A) Implement detailed algorithms explicitly B) Hide unnecessary complexity and emphasize essential features C) Connect different modules tightly together D) Ensure high performance in real-time systems Answer: B Explanation: Abstraction simplifies complex systems by focusing on relevant details and hiding implementation specifics. Question 10. Information Hiding helps in software design by: A) Making all implementation details visible to developers B) Concealing implementation details to allow independent modification and reduce dependencies C) Increasing coupling between modules D) Requiring full knowledge of the internal structure for module interaction Answer: B Explanation: Information Hiding isolates internal details, promoting independent development and reducing side-effects from changes.

Question 13. High cohesion within a module indicates that: A) Elements within the module are closely related and serve a common purpose B) The module performs many unrelated functions C) The module relies heavily on other modules D) The module can be easily split into smaller parts Answer: A Explanation: High cohesion means that elements of a module are focused and work together towards a single purpose. Question 14. The DRY (Don't Repeat Yourself) principle emphasizes: A) Reusing code and design knowledge to avoid duplication B) Writing code that is as short as possible regardless of clarity C) Creating multiple versions of similar modules for flexibility D) Avoiding the use of functions to reduce complexity Answer: A Explanation: DRY advocates for reducing redundancy, promoting reuse, and maintaining consistency.

Question 15. The KISS (Keep It Simple, Stupid) principle suggests that: A) Complex designs are preferable for flexibility B) Simplicity in design and implementation leads to better maintainability and fewer errors C) Only simple algorithms should be used, regardless of requirements D) Systems should avoid modularity for simplicity Answer: B Explanation: KISS encourages simplicity, which generally results in easier to understand, maintain, and less error-prone systems. Question 16. YAGNI (You Aren't Gonna Need It) principle advises developers to: A) Add all conceivable features up front B) Avoid implementing features until they are genuinely needed C) Implement features based on speculative future requirements D) Focus solely on performance optimization Answer: B Explanation: YAGNI discourages unnecessary features, reducing complexity and avoiding wasted effort.

Question 19. Which SOLID principle states that a class should have only one reason to change? A) Single Responsibility Principle (SRP) B) Open/Closed Principle (OCP) C) Liskov Substitution Principle (LSP) D) Interface Segregation Principle (ISP) Answer: A Explanation: SRP emphasizes that a class should have only one responsibility, minimizing reasons for changes. Question 20. The Open/Closed Principle (OCP) asserts that software entities should be: A) Open for modification but closed for extension B) Closed for modification but open for extension C) Neither modifiable nor extendable D) Modified frequently to adapt to requirements Answer: B Explanation: OCP advocates for designing systems that can be extended without altering existing code.

Question 21. According to the Liskov Substitution Principle (LSP), subtypes must: A) Be interchangeable with their base types without altering correctness B) Depend heavily on the base class implementation C) Have more functionalities than their base types D) Be implemented with different interfaces than their base types Answer: A Explanation: LSP ensures that subclasses can replace base classes without affecting program correctness. Question 22. The Interface Segregation Principle (ISP) suggests that: A) Clients should depend on large, comprehensive interfaces B) Clients should depend only on interfaces they actually use C) Interfaces should be as broad as possible for flexibility D) Interfaces should be avoided altogether Answer: B Explanation: ISP promotes designing specific interfaces so clients are not forced to depend on unused methods.

B) Greater flexibility and rapid prototyping C) Enhanced performance in execution D) Strict enforcement of data types Answer: B Explanation: Dynamic typing allows for more flexible and quicker development, especially in prototyping. Question 26. Mutable types are those that: A) Cannot be changed after creation B) Can be modified after creation C) Are immutable by default D) Are only used in functional programming Answer: B Explanation: Mutable types allow their internal state or data to be changed after instantiation. Question 27. In concurrent environments, immutable types are preferred because they: A) Require locking mechanisms for thread safety B) Are inherently thread-safe as their state cannot change

C) Increase the complexity of synchronization D) Are less predictable and more error-prone Answer: B Explanation: Immutable objects are inherently thread-safe, as their state cannot change, avoiding synchronization issues. Question 28. Component-Based Design emphasizes: A) Building software from reusable, interchangeable components with well- defined interfaces B) Creating monolithic systems with tightly integrated modules C) Designing components without interfaces to maximize flexibility D) Avoiding reuse to ensure specialized functionality Answer: A Explanation: Component-Based Design promotes reuse and modularity through reusable components with clear interfaces. Question 29. In component-based design, interfaces are important because they: A) Define how components communicate and interact B) Contain implementation details of components

D) Describe user workflows and cases Answer: B Explanation: Class diagrams visually represent classes, their properties, methods, and relationships. Question 32. An object diagram in UML illustrates: A) The static structure of classes at compile time B) Specific instances of classes at a particular moment in time C) The flow of control in a process D) The deployment of components across hardware Answer: B Explanation: Object diagrams depict actual instances of classes, showing object states at a given point. Question 33. UML component diagrams are primarily used to: A) Show the internal structure of classes B) Illustrate the organization and dependencies among software components C) Model the sequence of messages exchanged between objects D) Map software artifacts to hardware nodes Answer: B

Explanation: Component diagrams depict how software components are organized and interrelated. Question 34. Deployment diagrams in UML are used to: A) Model data flow between modules B) Map software artifacts to physical hardware nodes C) Show class inheritance hierarchies D) Describe user interaction flows Answer: B Explanation: Deployment diagrams focus on the physical deployment of software components onto hardware. Question 35. Use case diagrams are effective for: A) Describing the internal structure of a class B) Modeling system functionality from the user's perspective C) Showing the sequence of method calls D) Mapping the physical deployment of components Answer: B Explanation: Use case diagrams illustrate actors and their interactions with system functionalities.

B) The various states an object can be in and the transitions between them C) The deployment of hardware components D) The sequence of user interactions Answer: B Explanation: State machine diagrams model object states and how transitions occur based on events. Question 39. Communication diagrams in UML emphasize: A) The organization of objects participating in an interaction and their message exchanges B) The chronological sequence of method calls C) The internal state of an object D) The physical deployment of components Answer: A Explanation: Communication diagrams focus on object relationships and the messages exchanged during interactions. Question 40. Timing diagrams are used to: A) Show the changes in state or value of an object over time B) Model the sequence of operations

C) Illustrate class inheritance structures D) Map components to hardware nodes Answer: A Explanation: Timing diagrams depict how an object's state or data values evolve over time. Question 41. Interaction overview diagrams combine which types of diagrams? A) Class and object diagrams B) Activity and sequence diagrams C) Deployment and component diagrams D) Use case and state diagrams Answer: B Explanation: They provide a high-level overview by integrating activity and interaction diagrams. Question 42. When should a class diagram be used? A) To model the system's static structure and relationships between classes B) To depict the flow of control during a process C) To represent hardware deployment