CS510 – Software Requirements and Specifications: Midterm Important Subjective (33 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 · CS510 Course Page · CS510 MCQ Pack (41 MCQs)
-
What is requirements engineering? Why is deciding "exactly what to build" considered the hardest part of building a software system?
Topic: Requirements Engineering Basics & the SRS Document
Requirements engineering is the process of establishing the services that the customer requires from a system and the constraints under which it operates and is developed. Its main activities are requirements elicitation, analysis, specification and validation. Deciding exactly what to build is the hardest part because requirements come from many different stakeholders whose needs are often incomplete, ambiguous and conflicting, and they keep changing with time. An error made at this stage propagates into design and code, and correcting it later is far more expensive than correcting it during the requirements phase. As Fred Brooks put it, the hardest single part of building a software system is deciding precisely what to build.
-
What is an SRS document? In which phase of the SDLC is it prepared, and what is its purpose?
Topic: Requirements Engineering Basics & the SRS Document
SRS stands for Software Requirements Specification. It is the official document that describes what the system should do - all of its functional and non-functional requirements - in a precise and unambiguous manner. The SRS is prepared in the requirement phase of the SDLC, after elicitation and analysis of requirements. It serves as an agreement (contract) between the customer and the development team, and forms the basis for system design, testing, validation and later maintenance.
-
Who reads the SRS document? What is the goal of a software developer when reading the SRS?
Topic: Requirements Engineering Basics & the SRS Document
The SRS is read by customers and end users, project managers, software developers, testers and maintenance engineers; each reader uses it for a different purpose (agreement, estimation and planning, implementation, test-case preparation and future changes). The goal of the software developer in reading the SRS is to understand exactly what has to be built, so as to ensure that the software fulfills the customer requirements.
-
Enlist and briefly explain the characteristics of a good SRS document.
Topic: Requirements Engineering Basics & the SRS Document
A good SRS should have the following characteristics: Correct: every requirement stated in it is one that the software shall meet. Unambiguous: every requirement has only one interpretation. Complete: it includes all significant functional and non-functional requirements and responses to all inputs. Consistent: no requirement conflicts with any other requirement. Verifiable: there is a finite, cost-effective process to check that the final software meets each requirement. Modifiable: changes can be made to it easily, completely and consistently. Traceable: the origin of each requirement is clear and it can be followed into design, code and tests.
-
Differentiate between user requirements and system requirements.
Topic: Requirements Engineering Basics & the SRS Document
User requirements are statements, in natural language plus simple diagrams, of what services the system is expected to provide and the constraints under which it must operate. They are written for customers and managers who do not need detailed technical knowledge. System requirements are detailed descriptions of the system's functions, services and operational constraints. They are written for the developers and may form part of the contract for implementing the system.
-
Describe the main activities of the requirements engineering process.
Topic: Requirements Engineering Basics & the SRS Document
The requirements engineering process consists of the following activities: 1. Requirements elicitation (discovery): requirements are gathered from stakeholders, documents, existing systems and the application domain. 2. Requirements analysis: requirements are classified and organized, prioritized, and conflicts between stakeholders are negotiated and resolved. 3. Requirements specification: the agreed requirements are documented in the SRS, in a form understandable to both customer and developers. 4. Requirements validation: the documented requirements are reviewed and checked (for validity, consistency, completeness and verifiability) to make sure they define the system the customer really wants. Requirements management continues throughout the project to handle changes in requirements.
-
Define the term "requirement". Give one example.
Topic: Requirements Engineering Basics & the SRS Document
A requirement is a condition or capability needed by a user to solve a problem or achieve an objective; in software terms, it is a statement of a service that the system must provide, or a constraint on its operation. Example: "The system shall allow a student to view his/her result by entering the roll number."
-
What are functional requirements? Give two examples.
Topic: Requirement Types & Characteristics
Functional requirements describe the services and behaviour the system must provide - what the system shall do in response to particular inputs or situations. Examples: (1) "The system shall generate a sales report at the end of every month." (2) "The ATM shall dispense cash after the customer's PIN has been verified."
-
What are non-functional requirements? Give examples.
Topic: Requirement Types & Characteristics
Non-functional requirements are constraints on the services or functions offered by the system - they describe how well the system performs its functions (its quality attributes) rather than what it does. Examples: the system should be highly usable, the system should be highly available, and the system should be easily modifiable. (Note: "the system should generate a report twice a month" is a functional requirement, not a non-functional one.)
-
Differentiate between functional and non-functional requirements.
Topic: Requirement Types & Characteristics
Functional requirements state specific functions and behaviour - what the system does; e.g., "the system shall print the student's transcript." Non-functional requirements state quality attributes and constraints - how well the system does it; e.g., "the system shall print the transcript within 5 seconds." A missing functional requirement means a feature is absent, whereas failure to meet a non-functional requirement (such as very poor usability or availability) can make the whole system unusable.
-
What are domain requirements? Discuss the different forms they can take.
Topic: Requirement Types & Characteristics
Domain requirements are requirements that come from the application domain of the system rather than from the specific needs of its users. They reflect the characteristics, business rules, standards and laws of that domain; for example, rules for interest calculation in a banking system. Domain requirements can be functional as well as non-functional, and they can also be inverse requirements. If a domain requirement is not satisfied, the system may be unworkable, even if all user requirements are met. Domain experts often do not state them explicitly because they consider them obvious, which makes them easy to miss during elicitation.
-
What are inverse requirements? Give an example.
Topic: Requirement Types & Characteristics
Inverse requirements state what the system shall NOT do. They describe behaviour or features that are explicitly excluded, and so define the boundaries of the system. Example: "The system shall not allow a student to change his/her recorded marks." Inverse requirements prevent misunderstanding and scope creep by making exclusions as clear as inclusions.
-
Differentiate between implicit and explicit requirements.
Topic: Requirement Types & Characteristics
Explicit requirements are clearly stated and documented by the customer, for example in the SRS. Implicit requirements are not stated, but are assumed and expected on the basis of domain knowledge and common sense; for example, that the system saves the user's data before shutting down. A system can meet all explicit requirements and still dissatisfy the customer if its implicit requirements are missed.
-
Explain the characteristics that a good (individual) requirement should possess.
Topic: Requirement Types & Characteristics
A good requirement should be: Valid: it is actually needed by the customer and supports a real business/user goal. Correct: it correctly states a need that the delivered system must satisfy. Unambiguous: it has only one interpretation for every reader. Complete: it contains all the information needed, with nothing left to be guessed. Consistent: it does not conflict with any other requirement. Verifiable: it can be tested/checked in the delivered system. Feasible: it can be implemented within the available budget, time and technology. Modifiable: changes can be made to it easily and consistently. Traceable: its source is known and it can be traced into design, code and tests. (Note: "portable" is not a characteristic of a requirement.)
-
When is a requirement called (a) verifiable and (b) unambiguous?
Topic: Requirement Types & Characteristics
(a) Verifiable: a requirement is verifiable if there exists a finite, cost-effective process - such as a test, inspection, analysis or demonstration - by which a person or a machine can check that the delivered software product meets the requirement; in short, it can be tested. (b) Unambiguous: a requirement is unambiguous if it has only one interpretation, i.e., every reader understands it in exactly the same way.
-
Why should requirements be modifiable and traceable? Explain.
Topic: Requirement Types & Characteristics
Requirements are modifiable if changes can be made to them easily, completely and consistently. This matters because requirements inevitably change during development, and a well-structured SRS allows a change to be incorporated without rewriting the whole document. Requirements are traceable if the origin (source) of each requirement is known and its links to other requirements, design components, code and tests are recorded. Traceability makes it possible to assess the impact of any proposed change before making it.
-
What is requirements elicitation? Why is it considered a difficult activity?
Topic: Requirements Elicitation
Requirements elicitation is the process of discovering and gathering requirements from stakeholders and from other sources such as existing documents, existing systems and domain knowledge. It is difficult because stakeholders often do not know exactly what they want, express their needs in their own (non-technical) terms, and different stakeholders have conflicting requirements. Organizational and political factors also influence what is asked for, and many needs are tacit - users simply cannot state them.
-
Name and briefly describe the conventional requirements elicitation techniques.
Topic: Requirements Elicitation
Conventional elicitation techniques collect requirements by asking stakeholders directly. The main ones are: Interviews: the analyst discusses the system with stakeholders, using structured (pre-planned) or unstructured questions; good for depth but time-consuming. Questionnaires: a set of written questions distributed to a large number of stakeholders; cheap and wide-reaching, but answers are shallow and cannot be probed. Brainstorming: a group session in which participants generate as many ideas as possible without criticism, to bring out new and hidden requirements. (Note: normalization is a database design activity, not an elicitation technique.)
-
What does JAD stand for? Explain this elicitation technique briefly.
Topic: Requirements Elicitation
JAD stands for Joint Application Development. It is a group technique in which customers, end users, managers and developers sit together in structured, facilitated workshops to define and agree upon the requirements jointly. Because all parties are present, conflicts are resolved on the spot and a shared understanding is reached quickly, which speeds up elicitation compared with interviewing stakeholders one by one.
-
What are contextual elicitation techniques? Give examples.
Topic: Requirements Elicitation
Contextual techniques collect requirements in the context of the user - that is, by studying users in their actual working environment instead of asking them questions away from their work. Examples include observation (also called social analysis) and ethnographic/apprenticeship-style study. They are especially useful for discovering tacit requirements - work practices that users follow but cannot articulate when simply asked.
-
In contextual elicitation techniques, another name for "Observation" is "Social Analysis". What does observation involve?
Topic: Requirements Elicitation
Observation, also called social analysis, involves the analyst watching end users in their working environment, noting how tasks are actually performed and asking questions while the work is being done. It reveals how work really happens - including exceptions and informal steps - rather than how users say it happens.
-
Explain the cognitive requirements elicitation techniques.
Topic: Requirements Elicitation
Cognitive techniques are based on how people organize knowledge in their minds, and are used to draw out that organization. The main techniques are: Laddering: the analyst uses probing "why" and "how" questions to move up and down a hierarchy of concepts, eliciting goals, attributes and values from the stakeholder. Card sorting: stakeholders are given cards representing system entities or functions and asked to sort them into groups; the groupings reveal their mental model and classification of the domain. Repertory grids: stakeholders compare elements of the system and state the constructs (similarities/differences) that distinguish them, which the analyst records in a grid for analysis.
-
Differentiate between conventional and contextual elicitation techniques.
Topic: Requirements Elicitation
Conventional techniques collect requirements by asking stakeholders directly - through interviews, questionnaires and brainstorming - usually away from the actual workplace. They are quick and inexpensive but may miss tacit, work-practice requirements. Contextual techniques collect requirements in the user's own work context, mainly through observation/social analysis. They give a richer and more accurate picture of real needs, but are slower and more costly to carry out.
-
What is brainstorming? State two benefits of using it during elicitation.
Topic: Requirements Elicitation
Brainstorming is a group discussion technique in which participants are encouraged to generate as many ideas as possible in a short time, with criticism and evaluation suspended until the session ends. Benefits: (1) it produces new and creative ideas that individual interviews may not surface; (2) it involves many stakeholders at once and helps build consensus and shared understanding of the problem.
-
What is modeling in requirements engineering? What are its benefits, and what is a requirement model?
Topic: Modeling, Use Cases & State Machines
Modeling means building abstract representations (diagrams) of the required system so that the requirements can be understood, communicated and analyzed before the system is built. Modeling helps us in: (1) visualization - requirements become visible in a graphical form that is easier to grasp than pages of text; (2) communication with the customer - the customer can see and confirm what will be built; and (3) reduction of complexity - the system is broken into understandable views. A requirement model is a set of diagrams, each of which focuses on a different aspect of the user's needs (for example, use case diagrams, state machines, data flow diagrams and entity-relationship diagrams).
-
What is a use case diagram? Name and explain its components.
Topic: Modeling, Use Cases & State Machines
A use case diagram is a UML diagram that shows the functionality of the system from the users' point of view - what the system offers to the outside world, without showing how it works internally. Its components are: Actor: an external entity (a person or another system) that interacts with the system; drawn as a stick figure outside the system boundary. Use case: a function or service the system provides to an actor; drawn as an ellipse inside the boundary. Association: the communication link between an actor and a use case; drawn as a line. System boundary: the rectangle that encloses the use cases and separates the system from its environment. (Note: pre-conditions and alternate paths are not components of the diagram - they belong to the detailed textual description of a use case.)
-
What is an actor in a use case diagram? Can an actor be a non-human entity?
Topic: Modeling, Use Cases & State Machines
An actor is an external entity that interacts with the system in order to achieve some goal. Yes - an actor need not be human: it can be a person (customer, administrator) or an external system or device, such as a payment gateway or a sensor, as long as it lies outside the system boundary and exchanges information with the system.
-
What are the rules for naming a use case? Why is "FlightNumber" not a proper use case name?
Topic: Modeling, Use Cases & State Machines
A use case name must be a verb phrase - a verb together with a noun - that describes the goal or action performed, for example BookOrder, CancelOrder and TrackOrder. "FlightNumber" is not a proper use case name because it is only a noun: it names a data item, not an action or goal of the system.
-
What is a detailed use case (narrative form)? List the headings used in a detailed use case description.
Topic: Modeling, Use Cases & State Machines
A detailed use case is the complete textual (narrative) description of a use case, which records everything about one interaction between an actor and the system. Its usual headings are: Use case name and ID; Actors (primary and secondary); Description/purpose; Priority; Pre-conditions; Post-conditions; Main (basic) flow of events; Alternate flows and exceptions.
-
Differentiate between a pre-condition and a post-condition in a use case. What is an alternate path?
Topic: Modeling, Use Cases & State Machines
A pre-condition is a condition that must be true before the use case can begin; for example, "the user is logged in." A post-condition is the state that is guaranteed after the use case completes successfully; for example, "the order is saved in the database." An alternate path (alternate flow) is a sequence of steps that handles a variation or exception to the main flow; for example, what happens when the payment is declined during checkout.
-
Which requirements diagrams include a flow of information or decision, and which one does not? Explain briefly.
Topic: Modeling, Use Cases & State Machines
Activity diagrams, sequence diagrams and state machines all include flow: they show the order of activities, the sequence of messages, or transitions between states, and they can represent decisions through branches, guards and events. A use case diagram does not include any flow of information or decision. It only shows the actors, the use cases and the associations between them - i.e., what services the system offers - not the order in which things happen or any decisions.
-
What is state machine modeling? How are a state and the initial state represented in it?
Topic: Modeling, Use Cases & State Machines
State machine modeling is a behavioral modeling technique that describes the different states of the system (or of an object) and the transitions between those states that occur in response to events. A state is represented by a rounded-corner rectangle. The initial state is represented by a black filled circle. Transitions are drawn as arrows labeled with the event (and, where needed, a guard condition or action) that causes the change of state.
-
What are nested (composite) states in a state machine? Differentiate between AND and OR relationships.
Topic: Modeling, Use Cases & State Machines
A nested (composite) state is a state that itself contains sub-states. Nesting is used to reduce the complexity of a state machine diagram by grouping related states together. OR relationship: the composite state can be in exactly one of its sub-states at a time - the sub-states are alternatives. (A nested state diagram is a form of OR relationship.) AND relationship: the composite state is in all of its concurrent sub-states (regions) at the same time, i.e., the state is decomposed into parallel state machines that run simultaneously.