SE602 – Software Re—engineering: 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 · SE602 Course Page · SE602 MCQ Pack (126 MCQs)
-
Enlist the maintenance cost factors.
Topic: Short Questions
The maintenance cost factors are: 1. Team Stability — maintenance costs are reduced if the same staff are involved with the system for some time. 2. Contractual Responsibility — the developers of a system may have no contractual responsibility for maintenance, so there is no incentive for them to design for future change. 3. Staff Skills — maintenance staff are often inexperienced and have limited domain knowledge. 4. Program Age and Structure — as programs age, their structure is degraded and they become harder to understand and change.
-
What type of changes are involved in migration? Enlist them.
Topic: Short Questions
Migration involves changes, often including: 1. Restructuring the system. 2. Enhancing the functionality. 3. Modifying the attributes. However, migration retains the basic functionality of the existing system; the legacy system is ported to a modern platform while introducing minimal disturbance in the business environment.
-
State Lehman's Law of Continuing Change and Law of Increasing Complexity.
Topic: Short Questions
Law of Continuing Change: A program that is used in a real-world environment must change, or become progressively less useful in that environment. Law of Increasing Complexity: As a program evolves, it becomes more complex, and extra resources are needed to preserve and simplify its structure.
-
Differentiate between software evolution and software maintenance.
Topic: Short Questions
1. Evolution means a continual change from a lesser, simpler, or worse state to a higher or better state, whereas maintenance means preventing software from failing to deliver its intended functionalities by means of bug fixing. 2. All activities carried out to effect changes in requirements are put under the category of evolution, whereas all support activities carried out after delivery of software are put under the category of maintenance. 3. Evolution introduces new requirements to the existing system, whereas maintenance fixes incorrectly implemented requirements.
-
Enlist the four types of software maintenance and describe each in one line.
Topic: Short Questions
1. Corrective Maintenance — modifications and updations done to correct or fix problems, which are either discovered by users or concluded by user error reports. 2. Adaptive Maintenance — modifications and updations applied to keep the software product up-to-date and tuned to the ever-changing world of technology and business environment. 3. Perfective Maintenance — modifications and updates done to keep the software usable over a long period of time; it includes new features and new user requirements to improve reliability and performance. 4. Preventive Maintenance — modifications and updations to prevent future problems of the software; it attends to problems which are not significant at this moment but may cause serious issues in the future.
-
What is a legacy system? Enlist its typical problems.
Topic: Short Questions
A legacy system is a piece of software that you have inherited, and is valuable to you. It can neither be replaced nor upgraded except at a high cost. Typical problems with legacy systems are: 1. Original developers are not available. 2. Missing or outdated documentation. 3. Outdated development methods were used. 4. Extensive patches and modifications have been made. 5. Further evolution and development may be too expensive.
-
Enlist the characteristics of a legacy project.
Topic: Short Questions
A legacy project is characterized as: 1. Old — the project has existed for a few years and has passed through a number of generations of maintainers, losing knowledge of the original design at each handoff. 2. Large — there is more code to understand, a larger number of existing bugs, and a higher probability of a new change causing a regression. 3. Inherited — the people who originally wrote the code and those who now maintain it are not the same individuals. 4. Poorly Documented — documents are missing, outdated, or cannot be fully trusted.
-
What is wrapping? Enlist the types of wrappers.
Topic: Short Questions
Wrapping is a black-box-based modernization technique in which the legacy system (component) is surrounded with a new layer of software that hides the complexity of the existing interfaces, applications and data, and provides new interfaces. A wrapper does not directly modify the source code; instead, it indirectly modifies and changes the software functionality of the legacy component. The encapsulation layer communicates with the legacy component through remote procedure calls (RPCs) and predefined application program interfaces (APIs). Types of wrappers are: Database wrappers, Application wrappers, Function wrappers, and System service wrappers.
-
Enlist and briefly describe the three cut-over (transition) strategies in migration.
Topic: Short Questions
1. Cut-and-Run — the simplest transition strategy; the legacy system is switched off and the new system is turned on. 2. Phased Interoperability — to reduce risks, the cut-over is gradually performed in incremental steps. 3. Parallel Operation — the target system and the legacy system operate at the same time; once the new system is considered reliable, the legacy system is taken off service.
-
Enlist the seven migration methods.
Topic: Short Questions
The seven approaches (methods) of legacy system migration are: 1. Cold Turkey 2. Database First 3. Chicken Little 4. Database Last 5. Butterfly 6. Composite Database 7. Iterative
-
What is rehosting? When is it most effective?
Topic: Short Questions
Rehosting means re-engineering of source code without addition or reduction of features in the transformed target source code. It is most effective when the user is satisfied with the system's functionality, but looks for better qualities of the system; examples of better qualities are improved efficiency of execution and reduced maintenance costs.
-
Differentiate between redocumentation and design recovery in reverse engineering.
Topic: Short Questions
Redocumentation aims at revising the current description of components or generating alternative views at the same level of abstraction; examples of redocumentation are pretty printing and drawing control flow graphs (CFGs). Design recovery creates design abstractions from code, expert knowledge, and existing documentation; it works at a higher level of abstraction than redocumentation.
-
Enlist the six objectives of reverse engineering identified by Chikofsky and Cross.
Topic: Short Questions
The six objectives of reverse engineering are: 1. Coping with complexity. 2. Recovering lost information. 3. Detecting side effects. 4. Generating alternative views. 5. Synthesizing higher levels of abstractions. 6. Facilitating reuse.
-
What is refactoring? Enlist its benefits.
Topic: Short Questions
Refactoring is the process of changing a software system such that the external behavior of the system does not change, but the internal structure of the system is improved. It is improving the design after it has been written, and its goal is not to add new functionality but to make the code easier to maintain in the future. Benefits of refactoring are: 1. Refactoring improves the design of software. 2. Refactoring makes software easier to understand. 3. Refactoring helps you find bugs. 4. Refactoring promotes a deep understanding of the code. 5. Refactoring helps you program faster, because a good design enables progress.
-
Enlist the five categories of code smells with one example of each.
Topic: Short Questions
Code smells are descriptions of signals or symptoms that warn us of possible design problems. Fowler's book lists 22 bad smells, grouped into five categories: 1. Bloaters — code, methods and classes that have grown to enormous proportions, e.g. Long Method, Long Class. 2. Object-Orientation Abusers — incomplete or incorrect application of object-oriented principles, e.g. Switch Statements, Refused Bequest. 3. Change Preventers — changing one place requires many changes elsewhere, e.g. Divergent Change, Shotgun Surgery. 4. Dispensables — something pointless and unneeded whose absence would make the code cleaner, e.g. Duplicated Code, Lazy Class. 5. Couplers — smells contributing to excessive coupling between classes, e.g. Feature Envy, Message Chains.
-
Maintenance prediction complexity depends on which factors? Enlist and explain them.
Topic: Long Questions
Maintenance prediction is concerned with assessing which parts of the system may cause problems and have high maintenance costs. Predictions of maintainability can be made by assessing the complexity of system components. This complexity depends on: 1. Complexity of control structures — components with complex control flow (many branches and paths) are harder to understand and change, so they are predicted to cost more to maintain. 2. Complexity of data structures — components built on complex data structures require more effort to comprehend and modify safely. 3. Object, method (procedure) and module size — larger objects, methods and modules are more complex and more likely to be error-prone and expensive to maintain. In addition, predicting the number of changes requires an understanding of the relationship between a system and its environment, which is influenced by the number and complexity of system interfaces, the number of inherently volatile system requirements, and the business processes in which the system is used.
-
Write the names of the six solutions of a legacy project and explain each briefly.
Topic: Long Questions
The solutions for legacy systems generally fall into six categories: 1. Freeze — the organization decides to not carry out further work on the legacy system. 2. Outsource — the organization decides that supporting the legacy software is not its core business, so it outsources it to a specialist organization offering this service. 3. Carry on Maintenance — despite all the problems associated with supporting the system, the organization decides to carry on maintenance for another period. 4. Discard and Re-develop — the organization throws all the software away and re-develops the application once again from scratch, using a new hardware platform and modern architecture, tools and database. 5. Wrap — the legacy system is surrounded with a new layer of software (a wrapper) that hides the complexity of the existing interfaces, applications and data behind new interfaces; it is a black-box-based modernization technique. 6. Migrate — the legacy system is ported to a modern platform, while retaining most of the system's functionality and introducing minimal disturbance in the business environment.
-
Explain the three fundamental principles of re-engineering: abstraction, refinement and alteration.
Topic: Long Questions
1. Principle of Abstraction — the level of abstraction of the representation of a system can be gradually increased by successively replacing the details with abstract information. Abstraction produces a view that focuses on selected system characteristics by hiding information about other characteristics; it is represented by an up-arrow. 2. Principle of Refinement — refinement is the reverse of abstraction; the level of abstraction of the representation of the system is gradually decreased by successively replacing some aspects of the system with more details. It is represented by a down-arrow. 3. Principle of Alteration — alteration means making some changes to a system representation. It does not involve any change to the degree of abstraction, and it is an optional principle for re-engineering. It is represented by a horizontal arrow. The four levels across which these principles operate are: Conceptual, Requirements, Design and Implementation.
-
Explain the three re-engineering strategies (Rewrite, Rework, Replace) and state the principles each strategy applies.
Topic: Long Questions
1. Rewrite Strategy — this strategy reflects the principle of alteration. By means of alteration, an operational system is transformed into a new system while preserving the abstraction level of the original system; for example, C language code of a system can be rewritten in Python. 2. Rework Strategy — this strategy applies all three principles: abstraction, alteration and refinement. For example, the goal of a re-engineering project may be to replace the unstructured control flow constructs, namely GOTOs, with more commonly used structured constructs such as a for loop. 3. Replace Strategy — this strategy applies two principles, namely abstraction and refinement. To change a certain characteristic of a system, the system is first reconstructed at a higher level of abstraction by hiding the details of the characteristic, and then a suitable representation for the target system is generated at a lower level of abstraction by applying refinement.
-
Explain the five re-engineering approaches (Big Bang, Incremental, Partial, Iterative, Evolutionary) with one advantage or disadvantage of each.
Topic: Long Questions
1. Big Bang — the whole system is replaced at once, and the effort continues until all objectives are achieved. Disadvantage: the project becomes a monolithic task and consumes too much resources at once for large systems. 2. Incremental — the system is re-engineered gradually, one step closer to the target system at a time, producing several interim versions. Advantage: locating errors becomes easier, and the customer can notice progress because interim versions are released. 3. Partial — only a part of the system is re-engineered and then integrated with the non-engineered portion. Advantage: it reduces the scope of the re-engineering task (less time and cost); disadvantage: modifications are not performed to the interface between the modified and unmodified portions. 4. Iterative — the re-engineering process is applied on the source code of a few procedures at a time, repeatedly on different components; four types of components (old, being re-engineered, already re-engineered, newly added) co-exist. Advantage: it guarantees the continued operation of the system during re-engineering. 5. Evolutionary — components of the original system are grouped by functions and substituted with re-engineered components. Advantage: the resulting design is more cohesive and the scope of individual components is reduced.
-
Explain the three main steps of legacy system migration.
Topic: Long Questions
A database has two main components: the schema of the database and the data stored in the database. Accordingly, migration comprises three main steps: 1. Conversion of the existing schema to a target schema (Schema Conversion) — this means translating the legacy database schema into an equivalent database structure expressed in the new technology. It is made up of two processes: first, DBRE (Database Reverse Engineering) recovers the conceptual schema that expresses the semantics of the source data structure; second, the target physical schema is derived from this conceptual schema through a logical schema. 2. Conversion of data (Data Conversion) — this means moving the data instances from the legacy database to the target database. It requires three steps, Extract, Transform and Load (ETL): extract data from the legacy store, transform the extracted data so their structures match the target format (including data cleansing/scrubbing), and load the transformed data into the target database. 3. Conversion of program (Program Conversion) — this means modifying a program to access the migrated database instead of the legacy data. The conversion process leaves the functionalities of the program unchanged, and it depends upon the rules used in transforming the legacy schema into the target schema.
-
Explain the general model of software re-engineering given by Byrne, and the expression of re-engineering given by Jacobson and Lindström.
Topic: Long Questions
The model proposed by Eric J. Byrne suggests that re-engineering is a sequence of three activities: Reverse Engineering, Re-design, and Forward Engineering, strongly founded in the three principles, namely abstraction, alteration, and refinement. The re-engineering process accepts as input the existing code of a system and produces the code of the renovated system: first a more abstract view of the system is created by means of reverse engineering activities, then the abstract view is restructured, and finally the system is implemented in a new form by means of forward engineering activities. This process is formally captured by Jacobson and Lindström with the expression: Re-engineering = Reverse Engineering + Δ + Forward Engineering The element Δ captures alterations made to the original system. Two major dimensions of alteration are: change in functionality (which comes from a change in the business rules) and change in implementation technique.
-
Explain the four types of change (Re-code, Re-design, Re-specify, Re-think) with examples.
Topic: Long Questions
Based on the type of changes required, system characteristics are divided into four groups: 1. Re-code — the implementation characteristics of the source program are changed by re-coding it, through program translation (transforming a program into a different language, e.g. compilation, decompilation, migration) or rephrasing (keeping the program in the same language, e.g. normalization, optimization, refactoring, renovation). 2. Re-design — the design characteristics of the software are altered by re-designing the system; common changes include restructuring the architecture, modifying the data model of the system, and replacing a procedure or an algorithm with a more efficient one. 3. Re-specify — the requirement characteristics of the system are changed, either by changing the form of the requirements or by changing the scope of the requirements. 4. Re-think — the concepts embodied in an existing system are manipulated to create a system that operates in a different problem domain, changing the system in a fundamental way; for example, moving from the development of an ordinary cellular phone to the development of a smartphone system.
-
Discuss the goals, risks and objectives of software re-engineering.
Topic: Long Questions
Goals of re-engineering: 1. To understand artifacts of the existing software system, namely specification, design, implementation, and documentation. 2. To improve the functionality and quality attributes of the system. Risks involved in re-engineering: 1. The target system may not have the same functionality as the existing system. 2. The target system may be of lower quality than the original system. 3. The benefits are not realized in the required time frame. Objectives of re-engineering: Software systems are re-engineered by keeping one or more of the following four general objectives in mind: 1. Improving maintainability. 2. Migrating to a new technology. 3. Improving quality. 4. Preparing for functional enhancement.
-
Describe the software evolution process.
Topic: Long Questions
Change identification and evolution continue throughout the system lifetime. Proposals for change are the driver for system evolution; these should be linked with the components that are affected by the change, thus allowing the cost and impact of the change to be estimated. The software evolution process depends on the type of software being maintained, the development processes used, and the skills and experience of the people involved. Change implementation can be viewed as an iteration of the development process, where the revisions to the system are designed, implemented and tested. The first stage of change implementation may involve program understanding, especially if the original system developers are not responsible for the change implementation. During the program understanding phase, one has to understand how the program is structured, how it delivers functionality, and how the proposed change might affect the program.