SE601 – Software Construction & Development: Midterm Important Subjective (25 Solved Q&As)
Virtual University of Pakistan • Read every solved subjective question with its model answer directly on this page. Free, no login required.
All 664 Midterm Packs · SE601 Course Page · SE601 MCQ Pack (100 MCQs)
-
What is software construction? Discuss its objective and major activities.
Topic: Software Construction Foundations
According to SWEBOK, software construction refers to the detailed creation of working software through a combination of coding, verification, unit testing, integration testing and debugging. Its objective is to map the detailed design onto correct and manageable code. The major construction activities are: (1) coding, (2) debugging, (3) integration of separately developed components, (4) developer testing — unit testing and integration testing — and (5) continuous liaison with detailed design. Construction activities also include detailed design, construction planning, code tuning, and verifying that the code is built according to specification.
-
What does SWEBOK stand for? List its major knowledge areas.
Topic: Software Construction Foundations
SWEBOK stands for Software Engineering Body of Knowledge. It is the IEEE's guide (standardized as ISO/IEC TR 19759) that organizes the knowledge of the software engineering discipline into knowledge areas. Its major knowledge areas include: (1) Software requirements, (2) Software design, (3) Software construction, (4) Software testing, (5) Software maintenance, along with areas such as software configuration management, software engineering management, software engineering process, and software quality.
-
Why is problem definition called the foundation of the development process? What makes a good problem statement?
Topic: Software Construction Foundations
Problem definition is considered the prerequisite and foundation of the development process because every later activity — requirements, architecture, design, construction and testing — is built on the understanding of the problem. If the problem is defined wrongly, the team will build the wrong system correctly. A good problem statement defines what the problem is, without describing how it will be solved; it states the problem in the user's terms and leaves the solution open to the design activities that follow.
-
Differentiate between software architecture, high-level design and detailed design.
Topic: Software Construction Foundations
Software architecture is the set of structures needed to reason about the system — its major components, their relationships and the key design decisions; it is the high-level organization of the system. High-level design breaks the architecture into major subsystems and modules and defines how they interact. Detailed design refines the elements of the software architecture further: it specifies the internal logic of each component — classes, methods, data structures and algorithms — in enough detail that a programmer can directly convert it into code during construction.
-
Name and briefly describe the five software structures and architectures.
Topic: Architecture & Design Patterns
The five software structures and architectures are: (1) Architectural Structures and Viewpoints — the logical, process, physical and deployment views of a system. (2) Architectural Styles — recurring organizations such as layers and pipes-and-filters (general structure), client/server and broker (distributed), microkernel (interactive) and interpreters (adaptable). (3) Design Patterns — proven reusable solutions to recurring design problems (creational, structural, behavioral). (4) Architecture Design Decisions — decisions involving trade-offs among quality attributes, e.g. the time–space trade-off. (5) Families of Programs and Frameworks — designing reusable and customizable components from which related products are built.
-
What are design patterns? Name the three types of design patterns with examples of each.
Topic: Architecture & Design Patterns
A design pattern is a proven, reusable solution to a commonly occurring problem in software design. The three types are: (1) Creational patterns — concerned with object creation, e.g. Factory, Builder, Prototype and Singleton. (2) Structural patterns — concerned with how classes and objects are composed, e.g. Adapter, Façade and Proxy. (3) Behavioral patterns — concerned with communication and interaction between objects, e.g. Observer, State and Iterator.
-
What is MVC? Explain the role of each of its three components.
Topic: Architecture & Design Patterns
MVC (Model-View-Controller) is an architectural pattern that separates an interactive application into three components. (1) Model: manages the application data and business logic — it holds the model state, answers model queries and performs model edits/updates. (2) View: presents information to the user — it renders the view state and reflects model changes. (3) Controller: handles user inputs — it receives input, invokes controller methods that update the model, and causes the view to be refreshed. This separation makes the interface easier to modify and allows multiple views of the same data.
-
What are software construction techniques? A company is developing a critical banking application that requires high reliability and wants to minimize software defects before deployment. How can software construction techniques help?
Topic: Construction, Coding & Testing
Software construction techniques are the practical methods used while coding to produce correct, reliable and maintainable code — e.g. designing and writing classes and methods carefully, naming variables meaningfully, selecting proper control structures, formatting and commenting code, code tuning, and verifying code against the specification. For a critical banking application that requires high reliability, defects are minimized before deployment by: writing code defensively with input validation and error handling; following a strict coding standard; performing code reviews and inspections (desk checks, walkthroughs, peer reviews); carrying out thorough unit testing and integration testing by developers; integrating components early and continuously; and tuning and re-verifying the code against the specification at every step. These construction-time techniques catch defects where they are cheapest to fix — during construction itself.
-
Differentiate between unit testing, integration testing and system testing.
Topic: Construction, Coding & Testing
Unit testing tests the smallest piece of code that can be logically isolated — a class, function or component — and is carried out by developers to verify that the standalone module is functionally correct and fit for use. Integration testing tests groups of subsystems (collections of classes) that were created separately, to expose faults in their interfaces and interactions; it is performed after unit testing. System testing tests the entire system behavior as a whole, with respect to the requirements, to validate that the complete product works correctly in its intended environment.
-
Differentiate between coding and debugging. What is a bug?
Topic: Construction, Coding & Testing
Coding is the activity of writing instructions in a programming language — transforming the detailed design into code, including writing classes, methods, variables and control structures. Debugging is the activity of finding and fixing bugs in code that already exists. A bug is an error in the program — a fault in the code that can cause incorrect or unexpected behavior. In short, coding creates the program, while debugging diagnoses and removes the defects discovered in it during testing or use.
-
Name the stages of the SDLC in order and briefly describe each stage.
Topic: Process Models, Agile & Scrum
The stages of the SDLC (Software Development Life Cycle), in order, are: (1) Requirement analysis — gathering and analyzing what the system should do (problem definition and requirements development). (2) Design — software design and prototyping of the architecture and components. (3) Coding (implementation/construction) — transforming the design into a computer language format. (4) Testing — verifying and validating the system. (5) Deployment — releasing the system for use. (6) Maintenance — the system evolves after deployment through continued improvements and changes.
-
An organization is working on a large-scale banking application using the waterfall model. After the design phase is completed, the client requests a major change. The team proposes an alternative model — which model is best suited for this situation and why?
Topic: Process Models, Agile & Scrum
In the waterfall model the phases are strictly sequential: the outcome of one phase is the input of the next, and going back is difficult and expensive, so a major change requested after the design phase would require redoing design and all downstream work. The best-suited alternative is an iterative/incremental model (such as the iterative process model, RUP, or an agile approach), in which the system is built in iterations: the changed requirements can be absorbed in a later iteration without discarding completed work. An evolutionary prototyping approach can also help validate the changed requirements with the client early. The key reason is flexibility: iterative models are designed to accommodate changing requirements, whereas waterfall assumes requirements are frozen after the early phases.
-
State the five values of Scrum and explain any two of them.
Topic: Process Models, Agile & Scrum
The five values of Scrum are: (1) Commitment — team members personally commit to achieving the goals of the Scrum team. (2) Courage — team members have the courage to do the right thing and work on tough problems. (3) Focus — everyone focuses on the work of the Sprint and the goals of the Scrum team. (4) Openness — the team and stakeholders agree to be open about all the work and the challenges. (5) Respect — team members respect each other to be capable, independent people. For example, Focus keeps the team from being distracted during a Sprint, while Openness ensures problems are surfaced early instead of hidden.
-
Explain the roles in Scrum and the lifecycle of a Sprint.
Topic: Process Models, Agile & Scrum
Scrum defines three roles. (1) Product Owner: defines the business value and requirements of the project and prioritizes the Product Backlog. (2) Scrum Master: leads the project (acts as the project manager/facilitator), removes obstacles and makes sure the software meets the requirements set by the Product Owner and that Scrum is followed. (3) Development Team: a dedicated, cross-functional team responsible for meeting the Sprint goal and deadline. The lifecycle of a Sprint (an iteration of approximately 30 days) includes: pre-Sprint planning, the Sprint Planning Meeting (selecting Sprint Backlog items), the Sprint itself (development work with constant feedback), the Sprint Review Meeting (demonstrating the increment), and the Sprint Retrospective (improving the process).
-
What is pair programming? List and briefly explain any five XP practices.
Topic: Process Models, Agile & Scrum
Pair programming is an XP practice in which two programmers work together at one workstation on the same code: one writes the code (driver) while the other reviews it continuously (navigator), and they switch roles frequently; it improves quality and spreads knowledge. Five other XP practices are: (1) The Planning Game — jointly deciding the scope of the next release. (2) Small Releases — putting a simple system into production quickly and releasing frequently. (3) Simple Design — keeping the design as simple as possible for current needs. (4) Refactoring — improving the structure of existing code without changing its behavior. (5) Continuous Integration — integrating and building the system many times a day. (Other practices: testing, metaphor, collective ownership, 40-hour week, on-site customer, coding standards.)
-
Name and explain the user interface design principles.
Topic: User Interface Design & Interaction Styles
Sommerville's user interface design principles are: (1) User familiarity — the interface should use terms and concepts drawn from the experience of the people who will use the system (letters, documents, folders rather than directories and file identifiers). (2) Consistency — comparable operations should be activated in the same way; commands and menus should have the same format. (3) Minimal surprise — users should never be surprised by the behavior of the system; comparable commands should behave predictably. (4) Recoverability — the interface should include mechanisms to recover from errors, e.g. an undo facility, confirmation of destructive actions and soft deletes. (5) User guidance — meaningful feedback when errors occur and context-sensitive help facilities. (6) User diversity — appropriate interaction facilities for different types of users, e.g. larger text for users with seeing difficulties.
-
What are interaction styles? Describe any four interaction styles with examples.
Topic: User Interface Design & Interaction Styles
Interaction styles are the ways in which users interact with a computer system — how information from the user is provided to the system. The main interaction styles are: (1) Direct manipulation — users interact with objects directly on the screen (e.g. dragging files, WIMP interfaces); it is easy to learn but can be hard to implement and needs screen space. (2) Menu selection — users select commands from visible lists of options; they need not remember command names. (3) Form-based interaction — users fill in fields on a form; mainly used for data entry. (4) Command language — users type special commands; powerful and flexible for experts but must be learned and is error-prone for casual users. (5) Natural language — users interact using everyday language; easy in principle but understanding natural language is difficult for the system.
-
An e-commerce store has a high drop-off rate on its checkout page. As a UI designer, how would you assess the problem and sort it out?
Topic: User Interface Design & Interaction Styles
A high drop-off at checkout is a usability problem, so the designer should first evaluate before redesigning: run a usability evaluation of the checkout flow — heuristic evaluation by experts against usability principles (visibility of system status, error prevention/recovery, consistency, recognition rather than recall), plus formal usability testing in which real users are observed completing a purchase, and review where exactly users abandon (too many steps, forced registration, unclear costs, poor error messages, lack of feedback). Then fix the findings: simplify the checkout to fewer steps with a visible progress indicator (system status), offer guest checkout, show all costs early (minimal surprise), provide clear error messages and easy recovery/undo, keep the layout consistent, minimize form fields, and offer help/guidance at the point of need. Finally re-test with users and measure the drop-off rate again to confirm improvement.
-
Define usability according to ISO 9241-210. Write the usability evaluation methods (approaches).
Topic: Usability
According to ISO 9241-210, usability is the extent to which a system, product or service can be used by specified users to achieve specified goals with effectiveness, efficiency and satisfaction in a specified context of use. Usability evaluation methods (approaches) include: (1) Heuristic evaluation — experts inspect the interface against usability heuristics/principles. (2) Walkthrough (cognitive walkthrough) — evaluators step through tasks as a user would, checking each step. (3) Interactive evaluation — users interact with the system/prototype while being observed. (4) Formal usability testing — controlled tests with representative users performing real tasks while effectiveness, efficiency and satisfaction are measured.
-
Write the steps of the usability design process.
Topic: Usability
The steps of the usability design process are: (1) Use scenario development — develop scenarios (single threads through use cases) describing how users will perform their tasks. (2) UI structure design — design the architecture/structure of the interface based on the scenarios. (3) Interface standard design — define the standards and guidelines (UI design principles) that the interface must follow. (4) Interface design prototyping — build prototypes of the interface, e.g. a storyboard on paper, an HTML prototype or a language prototype. (5) Interface evaluation — evaluate the design using heuristic evaluation, walkthroughs, interactive evaluation or formal usability testing, and feed the results back into redesign.
-
Name the usability principles (heuristics) used for interface evaluation and explain any four.
Topic: Usability
The commonly used usability heuristics (principles) for evaluating interfaces are: visibility of system status; match between system and the real world; user control and freedom (obviousness); consistency and standards; error prevention; recognition rather than recall; flexibility and efficiency of use; aesthetic and minimalist design; realistic error management (help users recognize, diagnose and recover from errors); and help and documentation. Four explained: (1) Visibility of system status — the system should always keep users informed about what is going on, through appropriate feedback within reasonable time (e.g. a battery indicator showing status). (2) Recognition rather than recall — make objects, actions and options visible so the user does not have to remember information from one part of the dialogue to another. (3) Consistency and standards — users should not have to wonder whether different words or actions mean the same thing; follow platform conventions. (4) Aesthetic and minimalist design — dialogues should not contain information that is irrelevant or rarely needed, because extra information competes with relevant information.
-
What is User Centered Design (UCD)? State its rules of thumb.
Topic: Usability
User Centered Design (UCD) is a design approach in which the users are involved throughout the design process; it is a dialog between the customer and the designer. Its rules of thumb are: (1) Get to know and understand the users — their needs, experience and capabilities. (2) Build the application applying usability principles. (3) Test the designs by observing users in a real work setting, with a realistic environment and workload, and use the findings to improve the design.
-
Discuss the benefits of usability engineering for an organization and for the users.
Topic: Usability
Benefits to the organization: reduced training costs; reduced development costs because problems are identified and fixed early when they are cheapest; reduced support costs and less need for support personnel/help desks; an enhanced reputation through positive word-of-mouth; and larger numbers of hits and return visits for websites. Benefits to the user: less time to complete work; greater success with tasks; and increased user satisfaction. In short, usability engineering produces systems that are more effective, efficient and satisfying for their specified users.
-
What is heuristic evaluation? How is it performed?
Topic: Usability
Heuristic evaluation is an inspection-based usability evaluation method in which a small set of evaluators (usability experts) independently inspect a user interface and judge its compliance with recognized usability principles (heuristics), such as visibility of system status, match with the real world, consistency, error prevention and recognition rather than recall. Each evaluator goes through the interface several times, compares it against the heuristics, and records the usability problems found and the principles violated. The findings of all evaluators are then aggregated and prioritized by severity so the design team can fix the most serious problems first. It is relatively quick and inexpensive because no real users are required.
-
Differentiate between the Waterfall model and Agile methodologies.
Topic: Process Models, Agile & Scrum
The Waterfall model is a plan-driven, conventional approach: development flows sequentially through requirements, design, coding, testing and maintenance; it is simple to manage and works well when requirements are stable and well understood, but it is inflexible — change is difficult and expensive once a phase is complete, and working software appears late. Agile methodologies are iterative and incremental: the Agile Manifesto values individuals and interactions over processes and tools, working software over comprehensive documentation, customer collaboration over contract negotiation, and responding to change over following a plan. Agile development is modular, adaptive, people-oriented and collaborative, delivering highest-priority working software in short cycles (e.g. Scrum Sprints) with constant feedback, so it welcomes changing requirements but needs active customer involvement and suits projects where requirements evolve.