CS504 – Software Engineering I: Midterm Important Subjective (103 Solved Q&As)
Software Engineering • Read every solved subjective question with its model answer directly on this page. Free, no login required.
All 664 Midterm Packs · CS504 Course Page · CS504 MCQ Pack (282 MCQs)
-
Enlist the names of the phases of software development (software development life cycle).
Topic: Software Engineering Process, Phases & Activities
The phases of software development are: 1. Planning Stage 2. Feasibility or Requirements Analysis Stage 3. Design and Prototyping Stage 4. Software Development Stage 5. Software Testing Stage 6. Implementation and Integration 7. Operations and Maintenance Stage
-
A scenario was given in which some activities were mentioned; identify the phases of software engineering. Describe the four basic phases of software development.
Topic: Software Engineering Process, Phases & Activities
There are four basic phases of software development: Vision: Here we determine why we are doing this thing and what are our business objectives that we want to achieve. Definition: Here we actually realize or automate the vision developed in the first phase. Here we determine what are the activities and things involved. Development: Here we determine what should be the design of the system, how it will be implemented and how to test it. Maintenance: This is a very important phase of software development. Here we control the change in the system, whether that change is in the form of enhancements or defect removal.
-
Write the four phases of the software development loop.
Topic: Software Engineering Process, Phases & Activities
Software Development Loop: 1. Problem Definition: In this stage we determine what is the problem against which we are going to develop software. 2. Technical Development: In this stage we try to find the solution of the problem on technical grounds and base our actual implementation on it. 3. Solution Integration: If there are already developed system(s) available with which our new system has to interact, then those systems should also be part of our new system. 4. Status Quo: After going through the previous three stages successfully, when we actually deploy the new system at the user site, that situation is called status quo.
-
What is software development? Into which two major categories can its activities be divided?
Topic: Software Engineering Process, Phases & Activities
The activities involved in software development can broadly be divided into two major categories: first is construction and second is management. The construction activities are those that are directly related to the construction or development of the software.
-
Write the activities of the software construction phase.
Topic: Software Engineering Process, Phases & Activities
The construction activities are those that are directly related to the development of software, e.g. gathering the requirements of the software, developing the design, implementing and testing the software, etc. Some of the major construction activities are: Requirement Gathering, Design, Development, Coding, Testing.
-
Write the software engineering framework.
Topic: Software Engineering Process, Phases & Activities
Software Engineering Framework: Quality Focus: The quality focus demands that processes be defined for rational and timely development of software. Processes: The processes are a set of key process areas (KPAs) to effectively manage and deliver quality software in a cost effective manner. Methods: Methods provide the technical "how-to's" to carry out these tasks. Tools: Tools provide automated or semi-automated support for software processes, methods, and quality control.
-
Enlist the risk areas (risk impact areas) of a software development project.
Topic: Software Engineering Process, Phases & Activities
For most software development projects, we can define five main risk impact areas: (i) New, unproven technologies (ii) User and functional requirements (iii) Application and system architecture (iv) Performance (v) Organizational
-
System engineers are assigned the task of developing system models. Which process must be included in the system methodology?
Topic: Software Engineering Process, Phases & Activities
Systems engineers are responsible for assessing systems, determining problems, providing solutions to issues that arise, designing systems, upgrading systems, maintaining systems and brainstorming possible improvements that can be made to a system in the future.
-
Besides coding, what other things are important in making software? (Marks: 5)
Topic: Software Engineering Process, Phases & Activities
Software development is the process of conceiving, specifying, designing, programming, documenting, testing, and bug fixing involved in creating and maintaining applications, frameworks, or other software components. So, apart from coding, conceiving the idea, specifying and designing the system, documenting it, testing it and fixing bugs are all important in making software.
-
What is a Functional Requirement?
Topic: Requirements Engineering & Analysis
A Functional Requirement (FR) is a description of the service that the software must offer. It describes a software system or its component. It can be a calculation, data manipulation, business process, user interaction, or any other specific functionality which defines what function a system is likely to perform.
-
What is a Non-Functional Requirement?
Topic: Requirements Engineering & Analysis
In systems engineering and requirements engineering, a non-functional requirement (NFR) is a requirement that specifies criteria that can be used to judge the operation of a system, rather than specific behaviors. They are contrasted with functional requirements that define specific behavior or functions.
-
Write the types of functional requirements.
Topic: Requirements Engineering & Analysis
Some of the more typical functional requirements include: - Business Rules - Transaction corrections, adjustments and cancellations - Administrative functions - Authentication - Authorization levels - Audit Tracking - External Interfaces - Certification Requirements
-
Write the characteristics of a good requirements specification document.
Topic: Requirements Engineering & Analysis
A good requirements specification document should possess the following characteristics: Complete - No requirement or necessary information should be missing. Consistent - No requirement should conflict with other software or higher-level system or business requirements. Unambiguous - Every requirement stated has only one interpretation. Verifiable - Every requirement can be checked/tested. Modifiable - The structure allows changes to be made easily and consistently. Traceable - The origin of each requirement is clear and it can be traced through design and implementation. (Note: the source lists only the first two characteristics; the remaining ones are completed from course knowledge.) (Answer written from course knowledge — not in sources)
-
A scenario was given; identify/select the actors in it. What are actors?
Topic: Requirements Engineering & Analysis
Actors are people and organizations that take part in the system under consideration. Examples of actors are: person, organization (agency, company, corporation, foundation).
-
Write the technique (phases) for requirement data management / data requirements analysis.
Topic: Requirements Engineering & Analysis
The data requirements analysis process employs a top-down approach that emphasizes business-driven needs, so the analysis is conducted to ensure the identified requirements are relevant and feasible. The data requirements analysis process consists of these phases: 1. Identifying the business contexts 2. Conducting stakeholder interviews 3. Synthesizing expectations and requirements 4. Developing source-to-target mappings
-
What are the post-conditions for the use cases "Student login" and "Schedule of lectures"?
Topic: Requirements Engineering & Analysis
A post-condition describes the state of the system after a use case has executed successfully. Student login: The student is authenticated against the stored credentials and is logged into the system; a session for the student is created and the student gains access to the system's functions according to his/her role. Schedule of lectures: The lecture schedule is retrieved from the system and displayed to the student; the system state remains unchanged (no data is modified) because it is a view/display use case. (Note: the answer printed in the source does not address this question, so this answer is written from course knowledge.) (Answer written from course knowledge — not in sources)
-
Write the thumb rules ("Who I know" - rules of thumb) used for selecting objects.
Topic: Object-Oriented Analysis, Object Selection & Peter Coad Methodology
Who I Know - Rules of Thumb: - An actor knows about its participants. (Person knows about cashier.) - A transaction knows about its participants. - A session knows about its register and cashier. - A transaction contains its transaction line items. (Sale contains its sales line items.)
-
"Alia has a fruit basket." Identify the classes, objects and relationships in this statement.
Topic: Object-Oriented Analysis, Object Selection & Peter Coad Methodology
Objects: Alia, Fruit, Basket Classes: Person, Fruits, Baskets Relations: Alia ---- Fruits -------- Association Alia ---- Basket ------- Association Basket -- Fruits -------- Association - Container
-
Define the state and behaviour of an object.
Topic: Object-Oriented Analysis, Object Selection & Peter Coad Methodology
State of an object - The state or attributes are the built-in characteristics or properties of an object. For example, a T.V has the size, colour, model etc. Behaviour of the object - The behaviour or operations of an object are its predefined functions. For example, a T.V's behaviour includes switching it on/off, changing channels and adjusting volume.
-
Explain Object-Oriented Analysis using Abbott's Textual Analysis (mapping of parts of speech to model components). Also: what are the meanings of Proper Noun, Improper Noun, Being Verb and Having Verb in textual analysis? (Marks: 5)
Topic: Object-Oriented Analysis, Object Selection & Peter Coad Methodology
In Abbott's textual analysis, parts of speech in the problem statement are mapped to model components: Part of speech = Model component Proper noun = Instance (a specific object, e.g. Mehdi Hassan) Improper (common) noun = Class / type / role (e.g. student, teacher) Doing verb = Operation (e.g. buy) Being verb = Classification (e.g. is a horse, is a book) Having verb = Composition (e.g. fan has wings) Adjective = Attribute value or class (e.g. this ball is green) Adjective phrase = Association (e.g. the customer with children, the customer who bought the kite) So, in textual analysis: a proper noun identifies a specific instance/object; an improper noun identifies a class; a being verb shows classification (is-a relationship); and a having verb shows composition (whole-part relationship).
-
Write a fact/principle of Peter Coad's methodology.
Topic: Object-Oriented Analysis, Object Selection & Peter Coad Methodology
The principle that any operation that achieves a well-defined effect can be treated by its users as a single entity, despite the fact that the operation may actually be achieved by some sequence of lower-level operations. (This is the principle of abstraction used in Coad's methodology.)
-
"Radio and cat are objects." Explain why radio and cat are considered objects.
Topic: Object-Oriented Analysis, Object Selection & Peter Coad Methodology
Radio and cat have state, behaviour and properties. They may belong to the Electric device and Animal classes respectively, so we can say that these are objects.
-
Ali is considered as an object. What are the characteristics which decide that Ali is an object? (Marks: 3)
Topic: Object-Oriented Analysis, Object Selection & Peter Coad Methodology
Ali could be a person, a student, or an employee. He will have characteristics which tell his class - for which class of object it is. In other words, Ali has an identity, a state (his attributes/properties, e.g. name, age) and behaviour, and these characteristics decide the class to which he belongs.
-
Suppose you were analyzing a requirement statement. How will you determine that an object belongs to a certain class? (Marks: 5)
Topic: Object-Oriented Analysis, Object Selection & Peter Coad Methodology
Objects are analyzed on the basis of their characteristics, behaviour and states. Things with the same (all these) characteristics, behaviour and states will be in the same class. If we need many items of the same (all these things), we will define a class for them.
-
As per Peter Coad methodology, identify the transaction object(s) from the list below: 1) Sale 2) Purchase 3) Computer 4) Cashier (Marks: 2)
Topic: Object-Oriented Analysis, Object Selection & Peter Coad Methodology
In Peter Coad's methodology, transactions are the events that must be remembered through time. From the list, the transaction objects are: Sale and Purchase. Cashier is a participant (a person/role taking part in the transaction), and Computer is a place/device, not a transaction. (Answer written from course knowledge — not in sources)
-
Write the difference between coupling and cohesion.
Topic: Software Design, Coupling & Cohesion
The major difference between cohesion and coupling is that cohesion deals with the interconnection between the elements of the same module, whereas coupling deals with the interdependence between software modules.
-
What is coupling? Explain (long question).
Topic: Software Design, Coupling & Cohesion
Coupling is a measure of independence of a module or component. Loose coupling means that different system components have loose or less reliance upon each other. Hence, changes in one component would have a limited effect on other components. High (tight) coupling, on the other hand, means components are strongly dependent on each other, so a change in one component strongly affects the others. A good design aims at low coupling.
-
Enlist points on software design (contents of a software design description).
Topic: Software Design, Coupling & Cohesion
A software design description covers: 1. Overview, 2. Design concepts, 3. Design considerations, 4. Modeling language, 5. Design patterns, 6. Technique, 7. Usage.
-
Write the activities of the design phase.
Topic: Software Design, Coupling & Cohesion
In the design phase, one or more designs are developed with which the project result can apparently be achieved. Depending on the subject of the project, the products of the design phase can include dioramas, sketches, flow charts, site trees, HTML screen designs, prototypes, photo impressions and UML schemas.
-
Which of the following statement(s) is/are true about software design?
Topic: Software Design, Coupling & Cohesion
All three statements are true: (a) True - common coupling occurs when two or more modules share a global data repository/area. (b) True - polymorphism lets the same interface be used for different types, which makes the code flexible and reusable. (c) True - reused components have already been tested and used, so software reuse injects more reliability into the code. (Answer written from course knowledge — not in sources)
-
Apply cohesion on the following code:
Topic: Software Design, Coupling & Cohesion
Cohesion measures how strongly the elements inside a single class/module belong together and work for a single purpose. In the visible part of the code, the class Reserv groups the data of one single entity - a reservation/room - i.e. its room number (roomno) and its type (type). Because all the members of the class describe and serve the same single entity/purpose, the class shows high (functional) cohesion, which is desirable. A class has weak cohesion if unrelated data and functions are placed in it. (Note: only the beginning of the code is visible in the source screenshot; this answer is written from course knowledge on the visible part.) (Answer written from course knowledge — not in sources)
-
Consider the following five code fragments. Which of the above code fragments shows the weakest level of cohesion? Brief it with reason.
Topic: Software Design, Coupling & Cohesion
Fragment 3 (class MyClass) shows the weakest level of cohesion. Reason: its functions do not belong to a single purpose - OpenFile and SearchIndex are file-handling functions, while InitPrinter and Print index are printer-related functions. Unrelated responsibilities (file handling and printing) are mixed in one class, so the elements of the class are only weakly (coincidentally) related to each other. All the other fragments group functions that serve one single task (file operations, area calculations, power-on self test steps, and soup-making steps respectively), so they are more cohesive. (Note: the source gives the answer "3"; the reasoning is written from course knowledge.) (Answer written from course knowledge — not in sources)
-
You are asked to develop object oriented design for a system. Your concern about decomposition would be based on function or data? (Marks: 2)
Topic: Software Design, Coupling & Cohesion
Both. In object-oriented design, decomposition is based on both function and data, because an object encapsulates data (attributes) together with the functions (services) that operate on that data; the system is decomposed into objects, and each object is responsible for its own data and the functions performed on it. (Note: the source answer is the single word "both"; the explanation is written from course knowledge.) (Answer written from course knowledge — not in sources)
-
"Early design decisions can vary in software development." Do you agree or not? Justify your choice. (Marks: 2)
Topic: Software Design, Coupling & Cohesion
I do not agree. Early design decisions should be the ones that are most likely to remain constant throughout the software development cycle, because an early decision affects everything built on top of it and changing it later is very costly. The decisions that are likely to vary/change should not be made early; they should be delayed as much as possible and hidden (encapsulated) inside modules so that, if they change, the change remains localized. (Answer written from course knowledge — not in sources)
-
What is software architecture / architectural design?
Topic: Software Architecture & Design Quality
The design process for identifying the sub-systems making up a system and the framework for sub-system control and communication is architectural design. The output of this design process is a description of the software architecture.
-
Write two fundamental reasons why software architecture is important.
Topic: Software Architecture & Design Quality
1. Defining a solution to meet requirements. 2. Enabling and inhibiting quality attributes (the architecture enables or inhibits the system's quality attributes such as performance, reliability and maintainability).
-
What is the role of architectural design?
Topic: Software Architecture & Design Quality
Architectural design is the first stage of the design process. Its role is to identify the major sub-systems/components that make up the system, to define how these sub-systems communicate and are controlled, and to produce an architectural description of the software. It provides the overall structural framework of the system on which detailed design and implementation are built, and it strongly influences the quality attributes of the system. (Note: the answer printed in the source describes building/landscape architects, which is off-context, so this answer is written from course knowledge.) (Answer written from course knowledge — not in sources)
-
Using the architecture of a house or building, draw a comparison with software architecture. (Marks: 5)
Topic: Software Architecture & Design Quality
The architecture of a house/building is a plan (blueprint) that shows the overall structure of the house before it is built: its foundation, rooms, floors, plumbing and wiring, and how all these parts are connected. Software architecture is the same idea for a software system: it is the high-level plan/structure of the system that shows its major components (sub-systems), how they are organized and how they communicate with each other, before detailed design and coding begin. In both cases: (i) the architecture is decided first and is very costly to change once construction/coding has started; (ii) it must satisfy the owner's/user's requirements and constraints (space, cost, safety in a house; functionality and quality attributes in software); (iii) many different detailed designs can be built on the same architecture; and (iv) specialists (architects) produce it so that builders/developers can construct the actual product from it. (Answer written from course knowledge — not in sources)
-
Differentiate between a sub-system and a module. (Marks: 3)
Topic: Software Architecture & Design Quality
A sub-system is a larger, relatively independent part of a system; it is itself composed of several modules/components that work together to provide a major functionality of the system, and it can often be designed, developed and tested fairly independently. A module is a much smaller, well-defined unit inside a sub-system that performs one specific function; it has high cohesion, a well-defined interface, and hides its internal details (information hiding). In short: a system is decomposed into sub-systems, and each sub-system is further decomposed into modules. (Answer written from course knowledge — not in sources)
-
What is "The Balancing Act" in software engineering? Which requirements may conflict with each other?
Topic: Software Architecture & Design Quality
Requirements may be conflicting. For example, there may be tension among the following: Cost vs. Efficiency Cost vs. Reliability Efficiency vs. User-interface A software engineer is required to analyze these conflicting entities and tries to strike a balance. This trade-off between conflicting requirements is called the balancing act.
-
What are the challenges of Object-Oriented Design (OOD)?
Topic: Software Architecture & Design Quality
The major challenge for a software engineer is that he has to build software within limited time and budget, in a cost-effective way and with good quality.
-
Give at least two reasons to choose prototyping.
Topic: Software Architecture & Design Quality
There are many great reasons to make prototypes and to include them early and often in your process. The four main points are: to understand (the problem/requirements), to communicate (with users and stakeholders), to test and improve (the design), and to advocate (the proposed solution).
-
Write four parameters of software quality design which can be used from different angles to balance the quality.
Topic: Software Architecture & Design Quality
Cost, efficiency, reliability, maintainability.
-
What are the main parts (basic types) of software?
Topic: Software Architecture & Design Quality
Your system has three basic types of software: application programs, device drivers, and operating systems. Each type of software performs a completely different job, but all three work closely together to perform useful work.
-
Write the types of objects.
Topic: Software Architecture & Design Quality
In object-oriented analysis, the things of the problem domain that become objects are of different kinds: actors (people/roles that interact with the system), participants (people or things taking part in a transaction), places (locations where things happen), tangible things (physical items), and transactions (events that must be remembered through time), along with transaction line items. (Note: the answer printed in the source gives the English-grammar types of objects - direct object, indirect object, object of a preposition - which is off-context for this course, so this answer is written from course knowledge.) (Answer written from course knowledge — not in sources)
-
Write the attributes of the cinema (movie) ticketing system.
Topic: Software Architecture & Design Quality
Movie Ticket Booking System entities and their attributes: Booking Entity: Attributes of Booking are booking_id, booking_title, booking_type, booking_ticket, booking_date, booking_description. Payment Entity: Attributes of Payment are payment_id, payment_customer_id, payment_date, payment_amount, payment_description.
-
Write three parameters (components) of a collaboration diagram.
Topic: UML & Modelling (Use Case, Class, Sequence, Collaboration Diagrams & DFD)
The three parameters/components of a collaboration diagram are: (i) Objects (ii) Links (iii) Messages
-
How is a collaboration diagram better than a sequence diagram? Compare the two.
Topic: UML & Modelling (Use Case, Class, Sequence, Collaboration Diagrams & DFD)
Sequence diagrams are best to see the flow of time. On the other hand, static object connections are best represented by collaboration diagrams. The sequence of messages is more difficult to understand in collaboration diagrams than in the case of sequence diagrams. On the other hand, object organization with control flow is best seen through collaboration diagrams. It may be noted that complex control is difficult to express anyway, but collaboration diagrams can become very complex very quickly.
-
What is collaboration in object-oriented programming?
Topic: UML & Modelling (Use Case, Class, Sequence, Collaboration Diagrams & DFD)
In object-oriented programming, collaboration occurs among objects that mimic real-world objects inside an application. Objects collaborate by sending messages to each other to accomplish a task.
-
Write the three types of collaboration.
Topic: UML & Modelling (Use Case, Class, Sequence, Collaboration Diagrams & DFD)
The three types of collaboration are: - Creative - where two or more people create something to achieve a specific goal. - Connective - bringing together information from disparate sources. - Compounding - where a team builds on previous achievements to reach further.
-
Write the steps for making a use case diagram.
Topic: UML & Modelling (Use Case, Class, Sequence, Collaboration Diagrams & DFD)
1. Identify the actors (roles of users) of the system. 2. For each category of users, identify all roles played by the users relevant to the system. 3. Identify what the users require the system to perform to achieve these goals. 4. Create use cases for every goal. 5. Structure the use cases.
-
Write the four major elements of a use case diagram.
Topic: UML & Modelling (Use Case, Class, Sequence, Collaboration Diagrams & DFD)
Use case diagrams have only 4 major elements: the actors that the system you are describing interacts with, the system itself, the use cases (or services) that the system knows how to perform, and the lines that represent relationships between these elements.
-
What is a use case diagram? Write information about it.
Topic: UML & Modelling (Use Case, Class, Sequence, Collaboration Diagrams & DFD)
A use case diagram is a way to summarize details of a system and the users within that system. It is generally shown as a graphic depiction of interactions among different elements in a system. A use case is a methodology used in system analysis to identify, clarify, and organize system requirements.
-
Define: (i) Class, (ii) Class Diagram, (iii) Sequence Diagram.
Topic: UML & Modelling (Use Case, Class, Sequence, Collaboration Diagrams & DFD)
(i) A class is a blueprint that defines the variables and the methods common to all objects of a certain kind. (ii) A class diagram in the Unified Modeling Language (UML) is a type of static structure diagram that describes the structure of a system by showing the system's classes, their attributes, operations (or methods), and the relationships among objects. (iii) A sequence diagram is an interaction diagram that details how operations are carried out - what messages are sent and when.
-
Write characteristics of a Data Flow Diagram (DFD).
Topic: UML & Modelling (Use Case, Class, Sequence, Collaboration Diagrams & DFD)
Characteristics of a DFD include: - Processes on a data flow can operate in parallel. - Looping and branching are typically not shown. - Each process path may have a very different timing.
-
Write the mistake in the context diagram and its solution. (Mistake: two operations labeled on a single data flow arrow.)
Topic: UML & Modelling (Use Case, Class, Sequence, Collaboration Diagrams & DFD)
Mistake: Two operations cannot be labeled on a single data flow arrow. Solution: We should draw a single data flow arrow for a single operation.
-
Define whole-part aggregation and inheritance.
Topic: UML & Modelling (Use Case, Class, Sequence, Collaboration Diagrams & DFD)
Aggregation: A special form of association that specifies a whole-part relationship between the aggregate (whole) and a component part. Composition is a form of aggregation with strong ownership and coincident lifetime of the part with the whole. Inheritance: In object-oriented programming, inheritance is the relationship in which a child class (subclass) acquires the attributes and operations of a parent class (superclass) and can add its own; it represents a generalization-specialization (is-a) relationship. (Note: the source prints a dictionary/legal definition of inheritance - devolution of property on an heir - which is off-context, so the OOP definition is written from course knowledge.) (Answer written from course knowledge — not in sources)
-
What is the difference between Aggregation and Association? (Marks: 3)
Topic: UML & Modelling (Use Case, Class, Sequence, Collaboration Diagrams & DFD)
An association is a general structural relationship between two classes which shows that objects of one class are connected to objects of another class (e.g. a student is associated with a course). Aggregation is a special kind of association that represents a whole-part relationship: one class (the whole/aggregate) is made up of other classes (the parts), e.g. a basket (whole) contains fruits (parts). In aggregation the parts can exist independently of the whole, whereas in a simple association there is no whole-part ownership at all. Every aggregation is an association, but every association is not an aggregation. (Answer written from course knowledge — not in sources)
-
As a software designer, you are assigned to prepare the class diagram for the object model. What is the notation for showing the Inheritance relationship? (Marks: 2)
Topic: UML & Modelling (Use Case, Class, Sequence, Collaboration Diagrams & DFD)
Inheritance (generalization) is shown by a solid line with a hollow (unfilled) triangular arrowhead pointing towards the parent (super) class. The other notations shown with it are: - Association: solid line with an open arrowhead. - Realize/Implementation: dashed line with a hollow triangular arrowhead. - Dependency: dashed line with an open arrowhead. - Aggregation: solid line with a hollow diamond at the whole end. - Composition: solid line with a filled diamond at the whole end.
-
Identify the object(s) from the following sequence diagram: (The diagram shows two object boxes "Student" and "Registrar" with dashed lifelines, and a message "SendsApplication" going from Student to Registrar.) (Marks: 2)
Topic: UML & Modelling (Use Case, Class, Sequence, Collaboration Diagrams & DFD)
Answer given in the source: Object: Student and Application. Note: the two object boxes drawn in the diagram are Student and Registrar; "SendsApplication" is the message passed from Student to Registrar.
-
Define the following: 1) Synchronous Messages 2) Asynchronous Messages (Marks: 3)
Topic: UML & Modelling (Use Case, Class, Sequence, Collaboration Diagrams & DFD)
Asynchronous messages are "signals", denoted by a half arrow. They do not block the caller. Asynchronous messages typically perform the following actions: - Create a new thread - Create a new object - Communicate with a thread that is already running Synchronous messages are "call events" and are denoted by the full arrow. They represent nested flow of control, which is typically implemented as an operation call. In case of a synchronous message, the caller waits for the called routine to complete its operation before moving forward.
-
A client sends an authentication request (with username and password) to server; server verifies the request and returns a response to the client. Draw a sequence diagram of the above scenario. (Marks: 5)
Topic: UML & Modelling (Use Case, Class, Sequence, Collaboration Diagrams & DFD)
The sequence diagram is drawn as follows (described in text): Objects (drawn as boxes at the top, each with a dashed vertical lifeline below it): Client and Server. Messages, in time order from top to bottom: 1. Client -> Server: authentication request (username, password) - a synchronous message, drawn as a solid line with a filled arrowhead from the Client lifeline to the Server lifeline. 2. The Server verifies the username and password (against its stored user data) - shown as a self-processing/activation on the Server's lifeline. 3. Server -> Client: response (authenticated / not authenticated) - a return message, drawn as a dashed line with an open arrowhead from the Server lifeline back to the Client lifeline. Time flows downwards along the lifelines, so the request is drawn above the response. (Answer written from course knowledge — not in sources)
-
Consider the following diagram: (The diagram in the source screenshot shows two boxes labeled X and Y, each with a dashed vertical line below it. The remaining question text is cut off in the source screenshot.) (Marks: 3)
Topic: UML & Modelling (Use Case, Class, Sequence, Collaboration Diagrams & DFD)
The visible diagram is a fragment of a sequence diagram: X and Y are the two objects (shown as boxes at the top), and the dashed vertical lines below them are their lifelines, which represent the existence of the objects over time. Messages between the objects would be drawn as horizontal arrows between these lifelines, in time order from top to bottom. (Note: the question statement is cut off in the source screenshot, so this answer describes the visible diagram from course knowledge.) (Answer written from course knowledge — not in sources)
-
What is Software Engineering as defined by IEEE? (Marks: 2)
Topic: Software Engineering Process, Phases & Activities
The application of a systematic, disciplined, quantifiable approach to the development, operation, and maintenance of software; that is, the application of engineering to software. (IEEE stands for Institute of Electrical and Electronics Engineers.)
-
What is the difference between Computer Science and Software Engineering? (Marks: 5)
Topic: Software Engineering Process, Phases & Activities
When we use physics in making machines like engines or cars then it is called mechanical engineering. And when we apply the knowledge of physics in developing electronic devices then the process is called electrical engineering. The relation of computer science with software engineering is similar as the relation of physics with the electrical, mechanical or civil engineering or for that matter the relation of any basic science with any engineering field. So, this is the process of utilizing our knowledge of computer science in effective production of software systems.
-
What is Software Crisis? (Marks: 3)
Topic: Software Engineering Process, Phases & Activities
The term software crisis refers to the difficulties faced in developing large and complex software. More powerful hardware resulted in the development of more powerful and complex software. Those very complex software systems were very difficult to write, and the tools and techniques that were used for less complex software became inapplicable for the more complex software. This mismatch between growing software complexity and inadequate development techniques was called the software crisis.
-
Write the characteristics of well-engineered software. (Marks: 3)
Topic: Software Engineering Process, Phases & Activities
• It is reliable • It has good user-interface • It has acceptable performance • It is of good quality • It is cost-effective
-
Write the names of the major activities of management. (Marks: 3)
Topic: Software Engineering Process, Phases & Activities
• Project Planning and Management • Configuration Management • Software Quality Assurance • Installation and Training
-
Write the roles of software requirements. (Marks: 3)
Topic: Requirements Engineering & Analysis
1.Project Planning 2.project Tracking 3.Change Control 4.System Testing 5.User Dacumentation 6.Construction Process
-
What is a Sink? (Marks: 3)
Topic: Requirements Engineering & Analysis
Sink is the consumer of certain information. It is that entity which provides a logical end to a business process. Thus, "sinks of requirements" is a concept that helps in identifying persons, organizations or external systems that get certain functionality from the system.
-
What is a Source (of requirements)? (Marks: 3)
Topic: Requirements Engineering & Analysis
Sources of requirements are the origins from where the corresponding business process is initiated. By this concept, one has to trace from a requirement back to its origins to see who is involved in its initiation.
-
What is a Business Process Model? (Marks: 2)
Topic: Requirements Engineering & Analysis
The first model that we will look at is called the process model. This model provides a high-level pictorial view of the business process. This model can be used as a starting point in giving the basic orientation to the reader of the document.
-
Which techniques can be used to avoid ambiguity, uncertainty and vagueness from user requirements? Write any two.
Topic: Requirements Engineering & Analysis • 2 marks marks
Two techniques that can be used to avoid ambiguity, uncertainty and vagueness in user requirements are: 1. Prototyping: building a prototype of the system helps users and analysts discover ambiguities and misunderstandings in the requirements at an early stage. 2. Requirements reviews (inspections/walkthroughs): a systematic review of the requirements document by stakeholders detects vague and ambiguous statements. In addition, using precise and consistent language, maintaining a glossary of terms, and using formal specification techniques also reduce ambiguity.
-
What is GUI (Graphical User Interface)? (Marks: 2)
Topic: Requirements Engineering & Analysis
Graphical user interface is a computer interface that allows user to interact with a device through graphical elements such as pictures and animations, as opposed to text-based commands.
-
What is the motivation for GUI? (Marks: 3)
Topic: Requirements Engineering & Analysis
System users often judge a system by its interface rather than its functionality A poorly designed interface can cause a user to make catastrophic errors Poor user interface design is the reason why so many software systems are never Used
-
Write the three pitfalls of using GUIs in functional specifications. (Marks: 3)
Topic: Requirements Engineering & Analysis
UIs distract from business process understanding (what) to interfacing details (how) Unstable requirements cause frequent modifications in UIs An extra work to be done at the requirement level each time a GUI change has to be incorporated
-
Define abstraction. (Marks: 2)
Topic: Object-Oriented Analysis, Object Selection & Responsibilities
An abstraction is a technique in which we construct a model of an entity based upon its essential characteristics and ignore the inessential details.
-
Define the Object Model.
Topic: Object-Oriented Analysis, Object Selection & Responsibilities
The elements of object-oriented design collectively are called the Object Model. The object model encompasses the principles of abstraction, encapsulation, and hierarchy or inheritance.
-
What is meant by "Identify Structures" in object model derivation?
Topic: Object-Oriented Analysis, Object Selection & Responsibilities
A structure is a manner of organization which expresses a semantically strong organization within the problem domain.
-
How many types of structures are there in object model derivation? Name them.
Topic: Object-Oriented Analysis, Object Selection & Responsibilities
There are two types of structures: 1. Generalization-Specialization (Gen-Spec) 2. Whole-Part
-
Suppose you want to develop the object Model of a Hospital system. Identify and write down any five classes that will be used in object Model of Hospital System.
Topic: Object-Oriented Analysis, Object Selection & Responsibilities • 5 Marks marks
1. Doctor 2. Patient 3. Rooms 4. Department 5. Bill
-
The attributes have relationship among them to perform the functionality of the system. Identify which types of relationship exist among objects?
Topic: Object-Oriented Analysis, Object Selection & Responsibilities • 5 Marks marks
Inheritance, association and aggregation are the three inter-object relationships specified by the object model. 1. Inheritance defines a “kind of” hierarchy among classes. 2. In an association relationship, when objects A “uses” object B, then A may send messages to B. The relationship defines visibility among objects. 3. The aggregation relationship defines part-of structure among objects. When object A is part of the state of object B, A is said to be contained by B.
-
While identifying structure in object model derivation, there are three steps involved. Mention those steps.
Topic: Object-Oriented Analysis, Object Selection & Responsibilities • 3 Marks marks
1. Define Attributes - What I Know? 2. Show Collaborations (associations and aggregations) - Who I know? 3. Define Services - What I do?
-
Define Container Objects. Give an example and name any two attributes.
Topic: Object-Oriented Analysis, Object Selection & Responsibilities • 2 Marks marks
Containers are objects that hold other objects, e.g. bin, box, cabinet, folder, locker. Two attributes of a container object (for example, a box) are its capacity and its location.
-
Provide any two examples of attributes that may be expected in a 'Student' object.
Topic: Object-Oriented Analysis, Object Selection & Responsibilities
Examples of attributes of a Student object include: Student ID (s_Id), Student Name (s_Name), Phone Number (s_PhNo), Address and Date of Birth.
-
How can the quality of an Object-Oriented Design be evaluated?
Topic: Object-Oriented Analysis, Object Selection & Responsibilities
Judging the quality of a design is difficult. We can however look at certain object- Oriented design attributes to estimate its quality. The idea is to analyze the basic principle Of encapsulation and delegation to judge whether the control is centralized or distributed, Hence judging the coupling and cohesion in a design. This will tell us how maintainable a Design is. You may also recall our earlier discussion of coupling and cohesion. It can be easy to see That OO design yield more cohesive and loosely coupled systems. Lecture No 22:
-
Differentiate between the action-oriented and object-oriented approaches of decomposition.
Topic: Software Design, Coupling & Cohesion
wer: In the case of action-oriented approach, data is decomposed according to functionality requirements. That is, decomposition revolves around function. In the OO approach, decomposition of a problem revolves around data. Action-oriented paradigm focuses only on the functionality of a system and typically ignores the data until it is required. Object- oriented paradigm focuses both on the functionality and the data at the same time. The basic difference between these two is decentralized control mechanism versus centralized control mechanism respectively. Decentralization gives OO the ability to handle essential complexity better than action- oriented approach.
-
Suppose there are two modules A and B; they interact with each other through message passing. Is this an example of high coupling or low coupling?
Topic: Software Design, Coupling & Cohesion • 2 Marks marks
The modules that interact with each other through message passing have low coupling
-
What should be the considerations for a maintainable design? (Marks: 5)
Topic: Software Design, Coupling & Cohesion
In order to make a design that is maintainable, it should be understandable and the changes should be local in effect. That is, it should be such that a change in some part of the system should not affect other parts of the system. This is achieved by applying the principles of modularity, abstraction, and separation of concern. If applied properly, these principles yield a design that is said to be more cohesive and loosely coupled and thus is easy to maintain.
-
Is the design of software architecture a creative process? (Marks: 2)
Topic: Software Architecture & Design Quality
Design of software architecture is a creative and iterative process. This involves performing a number of activities, not necessarily in any particular order or sequence.
-
What is the architectural design process? Explain briefly. (Marks: 3)
Topic: Software Architecture & Design Quality
System structuring: - System structuring is concerned with decomposing the system into interacting sub-systems. The system is decomposed into several principal sub-systems and communications between these sub-systems are identified. Control modeling:- Control modeling establishes a model of the control relationships between the different parts of the system. Modular decomposition:- During this activity, the identified sub-systems are decomposed into modules. This design process is further elaborated in the following section where architectural views are discussed.
-
What are the architectural attributes (requirements that the software architecture must address)?
Topic: Software Architecture & Design Quality
Software architecture must address the non-functional as well as the functional Requirements of the software system. This includes performance, security, safety, Availability, and maintainability.
-
What is Performance in architectural design? How can it be enhanced?
Topic: Software Architecture & Design Quality
– Performance can be enhanced by localizing operations to minimize sub- System communication. That is, try to have self-contained modules as Much as possible so that inter-module communication is minimized.
-
Differentiate between architectural design and system architecture in a single line.
Topic: Software Architecture & Design Quality
Architecture faces towards strategy, structure and purpose, towards the abstract while Design faces towards implementation and practice, towards the concrete.
-
What is Security, Safety and Availability in architectural design?
Topic: Software Architecture & Design Quality
Security: Security can be improved by using a layered architecture with critical assets put in inner layers. Safety: Safety-critical components should be isolated. Availability: Availability can be ensured by building redundancy in the system and having redundant components in the architecture.
-
What is the purpose of collaboration diagrams? (Marks: 3)
Topic: UML & Modelling (Use Case, Class, Sequence & DFD)
Collaboration diagrams can also be used to depict the dynamic behavior of a system. They show how objects interact with respect to organizational units (boundaries!). Collaboration diagrams can also show synchronous, asynchronous, create, and destroy message using the same notation as used in sequence diagrams.
-
Discuss the relationship between sequence diagrams and logical complexity. (Marks: 5)
Topic: UML & Modelling (Use Case, Class, Sequence & DFD)
It is important to understand that the diagrams are meant to make things clear. Therefore, in order to keep them simple, special attentions should be paid to the conditional logic. If it is simple then there is no harm in adding it to the diagram. On the other hand if the logic is complex then we should draw separate diagrams like flow charts.
-
What is a data flow model? Explain it. (Marks: 5)
Topic: UML & Modelling (Use Case, Class, Sequence & DFD)
Captures the flow of data in a system. It helps in developing an understanding of system’s functionality. What are the different sources of data, what different transformations take place on data and what are final outputs generated by these transformations. It describes data origination, transformations and consumption in a system. Information is organized and disseminated at different levels of abstraction. Thus this technique becomes a conduit for top down system analysis and requirements modeling.
-
Write the types of DFD notations (shapes) and explain them. (Marks: 5)
Topic: UML & Modelling (Use Case, Class, Sequence & DFD)
There are four shapes of notations 1. Process What are different processes or work to be done in the system. Transforms of data. 2. External Agent External systems which are outside the boundary of this system. These are represented using the squares 3. Data Store Where data is being stored for later retrieval. Provides input to the process Outputs of the processes may be going into these data stores. 4. Data Flow Where the data is flowing. Represents the movement of the data in a data flow diagram.
-
Write the names of CRUD operations and explain them. (Marks: 3)
Topic: UML & Modelling (Use Case, Class, Sequence & DFD)
These are four operations Create: creates data and stores it. Read: retrieves the stored data for viewing. Update: makes changes in an stored data. Delete: deletes an already stored data permanently.
-
In UML, a 'class' notation has 3 parts. Write their names.
Topic: UML & Modelling (Use Case, Class, Sequence & DFD)
A class notation in UML has three parts: 1. Class Name: the name of the class. 2. Attributes: the data or properties of the class. 3. Operations (Methods): the functions or behaviour of the class.
-
What is a context diagram? Give an example.
Topic: UML & Modelling (Use Case, Class, Sequence & DFD)
A context diagram is a data flow diagram that only shows the top level, otherwise known as Level 0. At this level, there is only one visible process node that represents the functions of a complete system in regards to how it interacts with external entities. ... Shows the overview of the boundaries of a system
-
How many types of messages are there? Name them.
Topic: UML & Modelling (Use Case, Class, Sequence & DFD)
There are four types of messages: 1. Synchronous 2. Asynchronous 3. Create 4. Destroy