CS603 – Software Architecture and Design: Midterm Important Subjective (28 Solved Q&As)
Computer Science • Read every solved subjective question with its model answer directly on this page. Free, no login required.
All 664 Midterm Packs · CS603 Course Page · CS603 MCQ Pack (115 MCQs)
-
What is software product design and software engineering design?
Topic: Introduction to Design and Software Products
Software product design is the activity of specifying software product features, capabilities, and interfaces to satisfy client needs and desires. It requires skills in user interface and interaction design, communications, industrial design, and marketing. Software engineering design is the activity of specifying programs and sub-systems, and their constituent parts and workings, to meet software product specifications. It requires skills in programming, algorithms, data structures, software design principles, practices, processes, techniques, architectures, and patterns.
-
Write any five benefits of a good design.
Topic: Introduction to Design and Software Products
1) A good design satisfies client needs and desires within the given constraints, so the right product is built. 2) It bridges the gap between the requirements specification and the code, making implementation straightforward and reducing errors during construction. 3) Because parts and sub-systems are clearly specified, the product is easier to test. 4) It makes maintenance easier and cheaper, since products must later be corrected, ported, and enhanced. 5) Good design work early in the life cycle is crucial for project success: once the design is complete, enough information is available to make accurate and complete plans for the coding and testing phases, saving time, cost, and effort.
-
What is abstraction? Discuss its importance in software design.
Topic: Introduction to Design and Software Products
Abstraction is suppressing or ignoring some properties of objects, events, or situations in favor of others. It is an important problem-solving technique in software design for two reasons. 1) Problem simplification: abstracting allows us to focus on the most important aspects of a problem in (partially) solving it. 2) Structuring problem solving: in the top-down strategy an abstract version of the problem is solved first and details are added later (refinement), while in the bottom-up strategy parts of a problem are solved and connected for a complete solution.
-
What is a model? Differentiate between static and dynamic models with examples.
Topic: Introduction to Design and Software Products
A model is an entity used to represent another entity (the target) by establishing a correspondence between the parts or elements of the target and the parts or elements of the model, and a correspondence between the relationships among them. A static model represents aspects of programs that do not change during program execution, e.g. object and class models, component and deployment diagrams, and data structure diagrams. A dynamic model represents what happens during program execution, e.g. use case descriptions, interaction diagrams, and state diagrams. Models can fail if important and relevant details are left out.
-
Differentiate between product design and engineering design.
Topic: Introduction to Design and Software Products
Product design is the discipline of specifying products; its major issues are aesthetics, product features and capabilities, usability, manageability, manufacturability, and operability. Product designers (industrial designers, architects, interior designers, graphic designers, etc.) are concerned with styling and aesthetics, function and usability, and handle the externals of a product. Engineering design is the activity of specifying the technical mechanisms and workings of a product; engineering designers (structural, mechanical, chemical, and electrical engineers) apply mathematical and scientific principles to work out the internal technical details. Both work together in design teams to specify large and complex products.
-
What is the difference between product design and product engineering design in terms of occurrence?
Topic: Software Design in the Life Cycle
Product design occurs during the requirements specification and maintenance activities of the software life cycle. Engineering design occurs during the design, implementation, and maintenance activities. During maintenance, both recur in the form of product redesign and engineering redesign.
-
What is a software design method? Write its components.
Topic: Software Design in the Life Cycle
A software design method is an orderly procedure for generating a precise and complete software design solution that meets the client's needs and constraints. A method typically specifies: 1) Design process - a collection of related tasks that transforms a set of inputs into a set of outputs. 2) Design notations - a symbolic representational system. 3) Design heuristics - rules providing guidance, but no guarantee, for achieving some end. Design methods also use design principles, which state characteristics of designs that make them better or worse.
-
Explain how design is spread across the software life cycle activities.
Topic: Software Design in the Life Cycle
In the requirements specification activity, the goal is to specify a product satisfying the needs and desires of clients; specifications are recorded in the SRS, and product design is done in this activity. In the design activity, developers figure out how to build the product specified in the SRS: they select an overall program structure, specify major parts and sub-systems and their interactions, and determine how each part will be built; the result is the design document. In the implementation activity, code is written in accord with the design document, and programming itself includes some engineering design work. In the testing activity, programs are run to find bugs, usually bottom up. In the maintenance activity, which occurs after deployment, products are corrected, ported, and enhanced, and both product design and engineering design recur.
-
In the context of UML, explain data flow and control flow.
Topic: UML Activity Diagrams
An activity diagram shows actions and the flow of control and data between them. A control flow is an activity edge that is a conduit for control tokens; control tokens do not contain data, they only control execution - an action node begins when there is a token on every incoming edge. A data flow is an activity edge that is a conduit for data tokens, which carry data or objects; any flow that begins or ends at an object node is a data flow. The token-based execution rules apply just as well to data flows as to control flows, with the addition of a mechanism for adding and removing data from tokens.
-
Differentiate between an activity and an action. Also explain object nodes.
Topic: UML Activity Diagrams
An activity is a non-atomic task or procedure decomposable into actions, e.g. shipping a product or washing clothes. An action is a task or procedure that cannot be broken into parts, i.e. it is atomic, e.g. check products in stock or package the product. In an activity diagram, activities are modeled as an activity graph in which activity nodes represent actions or objects (drawn as rounded rectangles) and activity edges represent control or data flows (solid arrows with unfilled arrowheads). Object nodes show data and objects in the diagram, and an object node may also indicate the state of the object, e.g. a battleship in the state [damaged].
-
Explain the execution of an activity diagram using tokens, including decision/merge and fork/join nodes.
Topic: UML Activity Diagrams
Execution is modeled by tokens. When an activity begins, an initial node produces a token on each of its outgoing edges. When there is a token on every incoming edge of an action node, it consumes them and begins execution; when it completes, it produces tokens on each of its outgoing edges. At a decision node, an incoming token is made available on the outgoing edge whose guard is true, and guards must be mutually exclusive. At a merge node, a token available on any incoming edge is made available on its outgoing edge. At a fork node, a token is reproduced and made available on all outgoing edges, which models concurrency. At a join node, a token is made available on the outgoing edge only when tokens are available on every incoming edge. An activity final node consumes a token available on any incoming edge and terminates the activity.
-
Differentiate between a process and a design process.
Topic: Design Processes and Project Management
A process is a collection of related tasks that transforms a set of inputs into a set of outputs. A design process is the process adopted to carry out design; it is the core of any design endeavor, so designers must adopt an efficient and effective one. A generic design process transforms a design problem into a design solution: analyze the problem, generate/improve candidate solutions, evaluate candidate solutions, select solutions, iterate if no solution is adequate, and finalize the design. Designers should generate many candidate solutions, and the process is highly iterative.
-
What is project design? Write any three of its tasks.
Topic: Design Processes and Project Management
Project design means planning, organizing, and controlling a design project: software development is complex, expensive, and time consuming, and if it is simply allowed to happen, the result is chaos, so it must be managed. Three of its tasks are: 1) Planning - formulating a scheme for doing the project, including estimation of size, effort, time and cost, scheduling, risk analysis, and the rules (policies, procedures, tools and techniques) governing the work. 2) Organizing - structuring the organizational entities involved in the project and assigning them responsibilities and authority. 3) Staffing - filling the positions in the organizational structure and keeping them filled with appropriate individuals. (Tracking progress and leading the people doing the work are also project design tasks.)
-
How do you manage project staffing and project activities as a software designer?
Topic: Design Processes and Project Management
Project staffing is the activity of filling the roles designated in an organizational structure and keeping them filled with appropriate individuals; it includes hiring and orienting new employees, career development guidance, providing opportunities through training and education, and evaluating their performance. A design project needs staff to elicit and analyze needs, create prototypes, model systems, create product designs, write requirements specifications, design user interaction, make high-level and low-level engineering designs, and perform quality assurance. Project activities are managed through planning (estimation, scheduling, risk analysis), organizing (project or functional organization; hierarchical or democratic teams), tracking (measuring and reporting the status of milestones, tasks, and activities, and adjusting work and plans accordingly), and leading (directing and helping people and providing a congenial, supportive work environment).
-
Differentiate between analysis and resolution in software design.
Topic: Design Processes and Project Management
Analysis is breaking down a design problem for the purpose of understanding it; since design is problem solving, understanding the problem must always be the first step. Resolution is solving a design problem, i.e. generating, evaluating, and selecting a solution. Traditionally the problem-solving activity itself was called design, which was confusing; in this course's terminology, analysis means understanding the problem and resolution means solving it. Both software product design and software engineering design consist of an analysis phase followed by a resolution phase.
-
Write the steps of the generic problem-solving strategy and the generic design process.
Topic: Design Processes and Project Management
A generic problem-solving strategy is: understand the problem; generate candidate solutions; evaluate solutions; select the best solution(s); iterate if no solution is adequate; ensure the solution is complete and well-documented, and deliver it. The corresponding generic design process is: analyze the problem; generate/improve candidate solutions; evaluate candidate solutions; select solutions; iterate; and finalize the design.
-
Categorize products on the basis of target market size, giving examples.
Topic: Product Categories and Markets
Target market size is the number of customers a product is intended to serve, and products fall into three types. 1) Consumer products serve mass consumer markets, e.g. word processors, spreadsheets, accounting packages, computer games, and operating systems. 2) Niche market products serve more than one customer but not a mass consumer market, e.g. programs for configuration management, shipyard management, and medical office records management. 3) Custom products are built for individual customers, e.g. systems written for one part of a company by another part, space shuttle software, and weapons software. Designing consumer products is easier than designing niche-market products, which is easier than designing custom products.
-
Explain product line novelty and technical novelty with their types.
Topic: Product Categories and Markets
Product line novelty is how new a product is in relation to other products in the current product line. Its types are: New - different from anything else in the product line; Derivative - similar to one or more existing products in the product line; and Maintenance release - a new release of an existing product. Maintenance releases pose higher constraints on designers than derivative products, which pose higher constraints than new products. Technical novelty is how much new technology is incorporated in a product with respect to the target market at a particular time. Its types are: Visionary technology - new technology must be developed for the product; Leading-edge technology - proven technology not yet in widespread use; and Established technology - widely used, standard technology. Designing products with visionary or leading-edge technologies is the most difficult kind of software design.
-
What is the purpose of requirement elicitation?
Topic: Project Mission Statement and Needs Elicitation
Requirement elicitation (needs elicitation or needs identification) is collecting stakeholder needs and desires. Its purpose is to obtain information from stakeholders in a systematic fashion so that their needs and desires are understood correctly and completely, and can be analyzed and converted into requirements that specify the product design solution. This is necessary because stakeholders often cannot explain their work or articulate their needs, make mistakes, leave things out, and do not understand the capabilities and limitations of technology. Designers therefore use several elicitation techniques - interviews, observation, focus groups, prototypes, and questionnaires - and document and analyze the results.
-
Write two activities which are performed during the product design phase.
Topic: Project Mission Statement and Needs Elicitation
Requirement elicitation and analysis of requirements.
-
What is a project mission statement? Write its roles and the sections of its template.
Topic: Project Mission Statement and Needs Elicitation
A project mission statement is a document that defines a development project's goals and limits. It plays two important roles: 1) it launches a development project, and 2) it states the software design problem. It is the main input to the product design process. Its template has the following sections: 1. Introduction; 2. Product Vision and Project Scope; 3. Target Markets; 4. Stakeholders; 5. Assumptions and Constraints; 6. Business Requirements.
-
Define stakeholder, assumption, constraint, and business requirement.
Topic: Project Mission Statement and Needs Elicitation
A stakeholder is anyone affected by a product or involved in or influencing its development, e.g. product users and purchasers, developers and their managers, marketing, sales, distribution and product support personnel, and regulators, inspectors, and lawyers. An assumption is something that developers take for granted, i.e. a feature of the problem, e.g. target deployment environments and levels of user support. A constraint is any factor that limits developers, i.e. a restriction on the solution, e.g. cost and time limits and conformance to regulations. A business requirement is a statement of a client or development organization goal that a product must meet, concerning time, cost, quality, or business results, and it should be stated so that it is clear whether it is satisfied.
-
Discuss the techniques used for needs elicitation.
Topic: Project Mission Statement and Needs Elicitation
1) Interviews: question-and-answer sessions in which designers ask questions of stakeholders or problem-domain experts; the most important technique for recording responses. 2) Observation: designers watch how people do their work; especially useful for eliciting derivative product and maintenance release needs. 3) Focus groups: an informal discussion among six to nine people led by a facilitator who keeps the group on topic; the main technique for obtaining needs for consumer products. 4) Prototypes: working models of part or all of a final product, which provide a basis for conversations with stakeholders about features, capabilities, and user interface issues; especially useful for products with visionary technology. 5) Questionnaires: an efficient technique to elicit information from many people; close-ended questions are easier to analyze, while open-ended questions give detailed responses that are relatively harder to understand.
-
Write the steps of the software product design process.
Topic: Product Design Process and Needs Documentation
The software product design process has six steps: 1) Understanding of the design problem (from the project mission statement); 2) Elicit/analyze detailed needs; 3) Generate/improve candidate requirements; 4) Evaluate candidate requirements; 5) Select requirements; 6) Finalize requirements. The process starts with the project mission statement as input and its outcome is the SRS (Software Requirements Specification).
-
Explain the three principles of user-centered design.
Topic: Product Design Process and Needs Documentation
1) Stakeholder focus: determine the needs and desires of all stakeholders (especially users), and involve them in evaluating the design and perhaps even in generating the design. 2) Empirical evaluation: gather stakeholder needs and desires and assess design quality by collecting data rather than by relying on guesses. 3) Iteration: improve designs repeatedly until they are adequate.
-
The product design process is a top-down refinement process. Explain the levels of refinement.
Topic: Product Design Process and Needs Documentation
Product design resolution sets technical requirements at a high level of abstraction and then refines them until all product details are specified. User-level needs are elicited and analyzed first, and user-level functional, data, and non-functional requirements are generated, refined, and evaluated until they are adequate; these form an abstract solution to the design problem. The user-level requirements are then refined to produce operational-level requirements, and operational-level requirements are refined to produce physical-level requirements. Refinement is complete when these three levels of requirements are specified.
-
What is an SRS? Discuss the types of requirements with examples.
Topic: Software Requirements Specification (SRS)
A software requirements specification (SRS) is a document cataloging all the requirements for a software product, i.e. statements of the functions, capabilities, appearance, behavior, and other characteristics the product must have. The types of requirements are: 1) Business requirements, which relate to a business's objectives, vision and goals, e.g. implementing a web and mobile based employee tracking system to increase efficiency. 2) Functional requirements, which state how the product must map program inputs to program outputs (externally observable behavior), e.g. upon request from managers, the system must produce daily, weekly, monthly, quarterly, or yearly sales reports in HTML format. 3) Non-functional requirements, which state properties the product must have, e.g. the payroll system must process the payroll for all employees in six hours or less. 4) Data requirements, which describe the format, structure, type, and allowable values of data input to, output from, or stored by the product, e.g. the system must store customer names in fields recording first, last, and middle names.
-
Explain the levels of abstraction of requirements.
Topic: Software Requirements Specification (SRS)
Requirements are stated at three levels of abstraction. 1) A user-level requirement is a statement about how a product must support stakeholders in achieving their goals or tasks. 2) An operational-level requirement is a statement about inputs, outputs, operations, characteristics, etc. that a product must provide, without reference to physical realization. 3) A physical-level requirement is a statement about the physical form of a product, its physical interfaces, or its data formats. SRS templates use these levels, together with requirement types, to organize the material; the SRS is often called the parent document because all subsequent project management documents are related to it.