CS-802-D Object Oriented Software Engineering

Object Oriented Software Engineering (CS-802-D) Important Questions

RGPV · B.Tech · CSE · Semester 8 · Current scheme · 2 papers (2022 to 2025)

  1. Read the answers

    Start with the topics that come every year.

  2. Revise unit notes

    Go through each unit once to score more.

Paperwala Imp Topics - Object Oriented Software Engineering important questions

Download Paperwala Imp Question & Answer (PDF)

Counted from the questions in the past papers listed on this site. Repeated = how many times the topic came in those papers.

Object Oriented Software Engineering important questions with answers

Each answer starts with the short answer. Then come the points to write, a diagram and an exam tip. The questions under each topic are copied from the RGPV papers.

Q1. Rational Unified Process: meaning, life cycle and phases, objectives, compared with traditional methods

Asked 2 times in 2022, 2025 · Unit 2

From the papers

  • “What is the Rational Unified Process (RUP), and what are its primary objectives? Discuss how RUP differs from traditional software development methodologies.” (Jun 2025)
  • “What do you mean by RUP? With a neat diagram, explain RUP software life cycle.” (May 2022)

The short answer

The Rational Unified Process (RUP) is an iterative software development process framework created by Rational Software (now IBM). It is use case driven, architecture centric and iterative and incremental. Its life cycle has four phases (Inception, Elaboration, Construction, Transition). Each phase is made of iterations and ends in a milestone, while nine workflows (disciplines) run across all phases with changing effort.

Write these points

Phases of the RUP life cycle

PhaseGoalMilestone at the end
InceptionBusiness case, scope, key use cases, rough cost and riskLife Cycle Objectives (LCO)
ElaborationStable architecture, most use cases detailed, major risks removedLife Cycle Architecture (LCA)
ConstructionBuild and test the product in iterationsInitial Operational Capability (IOC): beta release
TransitionDeploy to users, beta testing, training, fixesProduct Release

Objectives of RUP

  • Deliver high-quality software that meets user needs, on a predictable schedule and budget.
  • Attack the biggest risks early through iterations.
  • Build a sound architecture before full construction.
  • Give every team member clear roles, activities and artifacts.

RUP compared with traditional (waterfall) methods

PointWaterfallRUP
FlowOne pass: requirements, design, code, testMany iterations, each a mini project
RiskFound late, during testingFound and reduced early
ChangeCostly once a phase is closedExpected and managed
Working softwareOnly at the endAfter every iteration
Driven byDocumentsUse cases and architecture

RUP on a college ERP project (12 months).

Inception, 1 month: business case and 10 key use cases; LCO approved.

Elaboration, 3 months, 2 iterations: architecture with login, fees and timetable modules proven; LCA reached.

Construction, 6 months, 4 iterations: one module set per iteration, tested each time; beta at IOC.

Transition, 2 months: rollout to departments, training, fixes; product release.

Real-life example

Building a house floor by floor, checking each floor with the owner before the next, is how RUP works. Waterfall builds the whole house and shows it only at the end.

Figure: RUP phases, workflows and milestones
Figure: RUP phases, workflows and milestones

Same or opposite: RUP and the waterfall model

PointRUPWaterfallSame or opposite
DevelopmentIterativeSequentialOpposite
Has requirements, design, coding and testing workYesYesSame
Risk handlingEarlyLateOpposite
Feedback from usersEvery iterationAt the endOpposite

Exam tip. Define RUP with its three key features. Draw the phases by workflows diagram, give each phase's goal and milestone, then compare with waterfall.

Back to the topic list

Q2. RUP workflows, best practices and roles

Asked 2 times in 2022, 2025 · Unit 2

From the papers

  • “What are the best practices recommended by RUP? Provide examples of how these practices can improve project outcomes and enhance team collaboration.” (Jun 2025)
  • “What roles are defined within the RUP framework, and what are the responsibilities associated with each role? How do these roles contribute to the successful execution of a project?” (Jun 2025)
  • “What are the various work flows used in RUP? Explain them.” (May 2022)

The short answer

RUP organizes work as nine workflows (disciplines): six core engineering workflows and three supporting ones. It is built on six best practices learned from successful projects. Work is assigned through roles: a role is a set of responsibilities (a person may play several roles).

Write these points

Workflows

  • Core: Business modeling, Requirements, Analysis and design, Implementation, Test, Deployment.
  • Supporting: Configuration and change management, Project management, Environment (tools and process for the team).
  • Each workflow has activities, roles and artifacts (use case model, design model, test cases).

Six best practices

  1. Develop iteratively: frequent releases expose risks early.
  2. Manage requirements: use cases capture and trace what users need.
  3. Use component-based architectures: reusable, replaceable parts.
  4. Model visually (UML): a shared picture for the whole team.
  5. Continuously verify quality: test in every iteration, not only at the end.
  6. Control changes: version control and change requests.

Main roles

RoleResponsibility
Project managerPlans iterations, assigns work, tracks risk
System analystGathers requirements, writes use cases
Software architectDefines the architecture and key design decisions
Designer and implementerDesign classes and write and unit test code
Test designer and testerPlan, write and run tests
Configuration managerVersions, builds and change requests
Process engineerTailors RUP for the project

Best practices improving a project.

Without iteration, a team found after 9 months that the payment gateway could not handle load.

With iterative development, the architect built and load tested the payment path in month 2 (Elaboration).

Visual models let the analyst and the developers agree on the order flow in one meeting.

Change control logged 40 change requests; each was assessed for cost before acceptance, so the schedule held.

Real-life example

A cricket team has roles: captain, bowlers, batsmen, wicketkeeper. Each knows its job. Practice sessions (best practices) make the team win more often.

Figure: RUP best practices
Figure: RUP best practices

Same or opposite: core and supporting workflows

PointCore workflowsSupporting workflowsSame or opposite
ExamplesRequirements, design, testProject management, configurationOpposite
Run across all four phasesYesYesSame
ProduceThe product itselfThe conditions to build itOpposite
CountSixThreeOpposite

Exam tip. List the six core and three supporting workflows. Write the six best practices with one line each and a roles table, then an example of how practices help.

Back to the topic list

Q3. Object oriented paradigm: objects, principles of OO design, inheritance and its types

Asked 2 times in 2022, 2025 · Unit 1

From the papers

  • “What is the object-oriented paradigm? Discuss its significance in software development and how it differs from procedural programming approaches.” (Jun 2025)
  • “Explain the concept of inheritance in OOP. How does it promote code reusability and what are the different types of inheritance (single, multiple, hierarchical, etc.)? Provide examples.” (Jun 2025)
  • “What is an object? What are the principles of an object oriented design? Explain.” (May 2022)

The short answer

The object oriented paradigm builds software from objects: units that combine data (attributes) and behaviour (methods). An object has state, behaviour and identity. It is an instance of a class. Procedural programming organizes a program as functions working on shared data. OO organizes it as interacting objects, which makes large systems easier to change and reuse.

Write these points

Principles of object oriented design

  • Abstraction: show the essential features, hide the details.
  • Encapsulation: keep data and methods together; hide data behind an interface.
  • Inheritance: a subclass reuses and extends a superclass (is-a).
  • Polymorphism: one interface, many forms (overriding, overloading).
  • Modularity and hierarchy: loosely coupled modules; class and part hierarchies.
  • Design rules: SOLID principles, high cohesion, low coupling.

Inheritance and its types

TypeShapeExample
SingleB from ACar from Vehicle
MultilevelC from B from ASportsCar from Car from Vehicle
HierarchicalB and C from ACar and Bike from Vehicle
MultipleC from A and BFlyingCar from Car and Aircraft (C++, or interfaces in Java)
HybridA mixCombination of the above
  • Reusability: common code is written once in the parent; children add only what differs.

OO compared with procedural

PointProceduralObject oriented
UnitFunctionObject and class
DataShared, globalEncapsulated
ReuseCopying functionsInheritance and composition
ChangeRipples through codeLocal to a class
ExampleCJava, C++, Python

Inheritance in a bank.

class Account { balance; deposit(); withdraw(); }

class SavingsAccount extends Account { rate; addInterest(); }

class CurrentAccount extends Account { overdraft; withdraw() overridden to allow overdraft }

deposit() is written once and reused by both; the overridden withdraw() shows polymorphism.

Real-life example

A mobile phone is an object: it has state (battery 60%), behaviour (call, message) and identity (its IMEI). You use its buttons without knowing its circuits: encapsulation.

Figure: principles of object orientation
Figure: principles of object orientation

Same or opposite: procedural and object oriented programming

PointProceduralObject orientedSame or opposite
Organizes code aroundFunctionsObjectsOpposite
Can solve any computable problemYesYesSame
Data protectionLowHigh (encapsulation)Opposite
ReuseLimitedInheritance, compositionOpposite

Exam tip. Define object with state, behaviour and identity. List the OO principles, the inheritance types table with examples and the procedural versus OO table.

Back to the topic list

Q4. UML relationships, notations and stereotypes

Asked 2 times in 2022, 2025 · Unit 3

From the papers

  • “Explain the different types of relationships in UML, such as association, aggregation, composition, inheritance and dependency. How do these relationships help in modeling the interactions between objects?” (Jun 2025)
  • “Write short note: Notations.” (May 2022)
  • “Write short note: Stereotypes.” (May 2022)

The short answer

UML diagrams are drawn with standard notations for things (class, object, use case, component, node, note) and relationships that connect them. Stereotypes extend UML by giving an element a new, project-specific meaning, written in guillemets such as «interface». These three together let any team read any UML diagram.

Write these points

Notations

  • Class: a box with three parts: name, attributes (- private, + public, # protected), operations.
  • Object: underlined name, such as s1 : Student.
  • Use case: an ellipse; actor: a stick figure; component: a box with the component icon; node: a 3-D box; note: a folded corner box.
  • Multiplicity: 1, 0..1, *, 1..* written at the ends of an association.

Relationships

RelationshipMeaningNotationExample
AssociationObjects are linkedSolid lineStudent and Course
AggregationWhole and part; part can exist aloneHollow diamond at the wholeDepartment and Teacher
CompositionStrong whole and part; part dies with the wholeFilled diamondHouse and Room
GeneralizationInheritance (is-a)Hollow triangle to the parentSavingsAccount to Account
DependencyOne uses the other temporarilyDashed arrowOrder uses Printer
RealizationClass implements an interfaceDashed line with hollow triangleCircle realizes Shape

Stereotypes

  • Standard: «interface», «abstract», «include», «extend», «use».
  • Analysis classes: «boundary» (user interface), «control» (logic), «entity» (stored data).
  • Can have their own icon; tools such as Rational Rose apply them as profiles.

Relationships in a college system.

A College is composed of Departments (composition: closing the college removes its departments).

A Department aggregates Teachers (a teacher can move to another department).

Student is associated with Course with multiplicity * to 1..*.

RegistrationForm is a «boundary» class, RegistrationManager «control», Course «entity».

Real-life example

Road signs are a notation everyone understands. UML notations work the same way: a filled diamond means the same thing in every company.

Figure: UML relationship notations
Figure: UML relationship notations

Same or opposite: aggregation and composition

PointAggregationCompositionSame or opposite
Part lifeIndependentEnds with the wholeOpposite
Is a whole and part relationshipYesYesSame
DiamondHollowFilledOpposite
ExampleTeam and PlayerBody and HeartOpposite

Exam tip. Write the class box and other notations, the six relationships table with symbols, then define stereotypes with «boundary», «control» and «entity».

Back to the topic list

Q5. Importance of modeling; UML and its purpose

Asked 2 times in 2022, 2025 · Unit 3

From the papers

  • “What is the Unified Modeling Language (UML), and what purpose does it serve in software development? Discuss its importance in facilitating communication among stakeholders in a project.” (Jun 2025)
  • “Explain the importance of modeling and its principles.” (May 2022)

The short answer

A model is a simplified picture of reality that helps us understand a system before we build it. We model because we cannot understand a complex system as a whole. The Unified Modeling Language (UML) is the standard visual language (from the OMG, by Booch, Rumbaugh and Jacobson) to visualize, specify, construct and document the artifacts of a software system.

Write these points

Importance of modeling

  • Helps visualize the system as it is or as we want it.
  • Specifies structure and behaviour precisely.
  • Gives a template to guide construction.
  • Documents decisions for maintenance and new members.
  • Finds errors cheaply on paper rather than in code.

Four principles of modeling

  1. The choice of models shapes how a problem is attacked and solved.
  2. Every model can be expressed at different levels of precision.
  3. The best models are connected to reality.
  4. No single model is enough: a system needs a set of nearly independent views.

UML diagrams and their use for communication

  • Structural: class, object, component, deployment, package, composite structure.
  • Behavioural: use case, activity, state machine; interaction diagrams (sequence, communication, timing, interaction overview).
  • Stakeholders read use case diagrams; developers read class and sequence diagrams; operations staff read deployment diagrams.
  • One shared notation removes misunderstanding between clients, analysts, designers and testers.

UML improving communication.

A client says, "A student can take many courses."

The analyst draws Student 1..* to * Course and shows it in the meeting.

The client points out that a student may take at most 6 courses; the multiplicity becomes 0..6.

The error is fixed in minutes instead of after coding and testing.

Real-life example

An architect shows a house plan and a 3-D model before building. UML is the plan and model for software.

Figure: UML diagram types
Figure: UML diagram types

Same or opposite: structural and behavioural UML diagrams

PointStructuralBehaviouralSame or opposite
ShowsWhat the system isWhat the system doesOpposite
Part of UMLYesYesSame
ExamplesClass, componentSequence, state, activityOpposite
Changes with timeNo (static)Yes (dynamic)Opposite

Exam tip. Define model and UML with its four purposes. Write the importance, the four principles of modeling and the diagram types, then show how UML helps stakeholders talk.

Back to the topic list

Q6. Conventional and object oriented design approaches

Asked 2 times in 2022, 2025 · Unit 4

From the papers

  • “Compare and contrast the conventional design approach with the Object-Oriented (OO) design approach. What are the key differences in their philosophies, processes and outcomes?” (Jun 2025)
  • “Differentiate Conventional vs OO design approach.” (May 2022)

The short answer

Conventional (structured) design decomposes a system by function: data flow diagrams become a hierarchy of modules (structure chart). Data is kept separately. Object oriented design decomposes it into objects that hold both data and behaviour, built from the classes found in analysis. The philosophies, processes and outcomes therefore differ.

Write these points

PointConventional designObject oriented design
PhilosophyWhat the system does: functionsWhat the system is made of: objects
Building blockModule or functionClass and object
Data and behaviourKept separateKept together (encapsulation)
ModelsDFD, structure chart, ER diagramClass, sequence, state, component diagrams
ProcessTop-down functional decompositionIterative; identify classes, relationships, behaviour
ReuseLowHigh (inheritance, components, patterns)
ChangeA data change ripples through many modulesChange stays inside a class
Suitable forSmall, stable, computation-heavy systemsLarge, changing, interactive systems
  • Conventional process: DFD of the system, transform or transaction analysis, structure chart, module specification.
  • OO process: use cases, identify classes (CRC cards), define relationships, interaction diagrams, state charts, refine classes, map to components.
  • OO design uses the same concepts as OO analysis, so there is no translation gap between analysis and design.
  • Outcome of OO: easier maintenance and reuse; cost is a learning curve and sometimes more classes to manage.

A library system designed both ways.

Conventional: modules IssueBook, ReturnBook, CalculateFine all read and write a shared books file.

Changing the fine rule means checking every module that touches the book record.

OO: classes Book, Member, Loan; Loan has calculateFine(); Book knows its status.

Changing the fine rule changes only Loan.calculateFine().

Real-life example

Organizing a kitchen by actions (a cutting area, a cooking area) is conventional design. Organizing it by appliances that each do their own job is OO design.

Figure: steps of object oriented design
Figure: steps of object oriented design

Same or opposite: conventional and OO design

PointConventionalObject orientedSame or opposite
DecompositionBy functionBy objectOpposite
Aims at a modular designYesYesSame
Main diagramStructure chartClass diagramOpposite
ReuseLowHighOpposite

Exam tip. Give the comparison table of at least eight points, then the steps of each design process and a short example such as a library.

Back to the topic list

Q7. Interaction diagrams (sequence and collaboration) and activity diagrams

Asked 2 times in 2022, 2025 · Unit 4

From the papers

  • “What are interaction diagrams in UML, and how do they contribute to behavioral modeling? Discuss the different types of interaction diagrams (sequence and collaboration diagrams) and their significance in representing object interactions.” (Jun 2025)
  • “What are Activity Diagrams in UML? How is it different from Interaction diagrams? Explain with example.” (May 2022)

The short answer

Interaction diagrams show how a set of objects work together by sending messages to carry out one use case or scenario. UML has two main ones: the sequence diagram (time order of messages) and the collaboration (communication) diagram (links between objects, with numbered messages). The activity diagram is a flowchart of activities and decisions, showing the flow of control rather than messages between objects.

Write these points

Sequence and collaboration diagrams

  • Sequence: objects across the top, lifelines down the page, arrows for messages in time order, activation boxes, return arrows; good for timing.
  • Collaboration: objects anywhere, links between them, messages numbered 1, 1.1, 2; good for structure of interaction.
  • Both show the same information: tools convert one into the other.
  • Use: detail a use case, find the methods each class needs, check the design.

Activity diagrams

  • Elements: initial node, action (rounded box), decision diamond with guards, fork and join bars (parallel), swimlanes, final node.
  • Use: business processes, workflow of a use case, algorithm of an operation.
PointActivity diagramInteraction diagram
FocusFlow of activities and decisionsMessages between objects
Shows objectsOptional (swimlanes)Always
ParallelismFork and joinNot natural
Best forProcess and workflowOne scenario in detail

Student registering for a course (sequence).

1: Student enters details on :RegistrationForm.

2: The form calls register() on :RegistrationManager, which calls 3: checkSeat() on :Course.

4: The course replies that a seat is free; 5: addStudent() adds the student.

6 and 7: a confirmation returns to the form and the student sees success. The activity diagram of the same use case would show decisions (seat free? fees paid?) instead.

Real-life example

A cricket commentary describes ball by ball who did what: a sequence diagram. The plan of the innings drawn on a board is an activity diagram.

Figure: sequence diagram for course registration
Figure: sequence diagram for course registration

Same or opposite: sequence and collaboration diagrams

PointSequenceCollaborationSame or opposite
EmphasisTime orderObject linksOpposite
Is an interaction diagramYesYesSame
LayoutLifelines down the pageObjects in a networkOpposite
Message order shown byPositionNumbersOpposite

Exam tip. Define interaction diagrams, then explain sequence and collaboration with their elements. Give activity diagram elements and the comparison table. Draw the registration sequence.

Back to the topic list

Q8. Components: component and class, component diagrams

Asked 2 times in 2022, 2025 · Unit 4

From the papers

  • “Explain the purpose of component diagrams in object-oriented design. How do component diagrams illustrate the organization and dependencies of components in a system?” (Jun 2025)
  • “Define component. What are the differences between components and classes? How are component and interface related?” (May 2022)

The short answer

A component is a modular, replaceable part of a system that encapsulates its implementation and offers its services only through interfaces, for example a DLL, JAR file or web service. An interface is a named set of operations. A component provides some interfaces (it implements them) and requires others (it uses them). A component diagram shows components, their interfaces and their dependencies.

Write these points

Components compared with classes

PointClassComponent
LevelLogical (design)Physical (implementation, deployable)
ContainsAttributes and operationsOne or more classes
AccessThrough its public operationsOnly through interfaces
ReplaceableUsually not independentlyYes, if interfaces stay the same
Shown inClass diagramComponent diagram

Component diagrams

  • Notation: a box with «component» or the component icon; provided interface as a ball (lollipop); required interface as a socket.
  • Dependencies (dashed arrows) show which component needs which.
  • Ports and assembly connectors join a required socket to a provided ball.
  • Purpose: show the physical organization, plan builds and releases, find the effect of a change, support reuse and team division.

Online shop components.

Web UI requires IOrder; Order Service provides IOrder.

Order Service requires IPayment from Payment Service and uses the Inventory DB.

The payment provider changes: a new Payment Service that still provides IPayment is dropped in.

Web UI and Order Service do not change at all: that is the value of interfaces.

Real-life example

A phone charger works with any socket of the right shape. The socket is the interface; the charger is a component that can be swapped for another brand.

Figure: component diagram with interfaces
Figure: component diagram with interfaces

Same or opposite: component and class

PointComponentClassSame or opposite
NaturePhysical, deployableLogicalOpposite
Encapsulates behaviourYesYesSame
AccessThrough interfaces onlyThrough public methodsOpposite
SizeContains classesSingle unitOpposite

Exam tip. Define component and interface with provided and required interfaces. Give the component versus class table, then the diagram notation and purpose with a shop example.

Back to the topic list

Q9. Design patterns

Asked 2 times in 2022, 2025 · Unit 5

From the papers

  • “Define design patterns in the context of software development. Why are they important, and how do they contribute to more maintainable and scalable software systems?” (Jun 2025)
  • “What is meant by design pattern? How it is different from object-oriented modeling?” (May 2022)

The short answer

A design pattern is a proven, named solution to a problem that keeps recurring in software design, described so it can be reused in many situations. The idea came from the architect Christopher Alexander; the Gang of Four (Gamma, Helm, Johnson, Vlissides, 1994) catalogued 23 patterns. Each pattern has a name, the problem, the solution (classes and collaborations) and the consequences.

Write these points

Categories with examples

CategoryPurposeExamples
CreationalHow objects are createdSingleton, Factory Method, Abstract Factory, Builder, Prototype
StructuralHow classes and objects are composedAdapter, Composite, Decorator, Facade, Proxy
BehaviouralHow objects interact and share workObserver, Strategy, Command, Iterator, State, Template Method

Why patterns matter

  • Reuse of expert experience; no need to reinvent solutions.
  • A shared vocabulary: "use an Observer here" says a lot in few words.
  • Loose coupling and programming to interfaces make code maintainable and easier to extend (scalable).
  • Fewer design errors; easier code reviews and documentation.

Design pattern compared with OO modeling

  • OO modeling describes this system: its classes, relationships and behaviour (UML diagrams).
  • A design pattern is a general, reusable solution template, applied inside many models.
  • Patterns sit at a higher level than one model; a model may contain several patterns.
  • Patterns are described in text with UML; they are not finished designs or code.

Observer pattern in a score app.

Problem: when a cricket score changes, the TV screen, mobile app and website must all update.

Solution: Score (subject) keeps a list of observers and calls notify() on change; each display implements update().

Adding a new smartwatch display means writing one new observer class; Score does not change.

Consequence: loose coupling, but many observers can slow notifications.

Real-life example

Tailors use standard patterns for a shirt instead of designing each from scratch. Software design patterns are the same proven templates.

Figure: categories of design patterns
Figure: categories of design patterns

Same or opposite: design pattern and OO model

PointDesign patternOO modelSame or opposite
ScopeGeneral, reusableOne specific systemOpposite
Uses classes and objectsYesYesSame
FormName, problem, solution, consequencesUML diagrams of the systemOpposite
ExampleObserverLibrary class diagramOpposite

Exam tip. Define design pattern with its four elements and the GoF. Give the three categories with examples, why they help maintainability, the difference from OO modeling and one pattern in detail.

Back to the topic list

Q10. Object oriented testing: strategies, test cases, unit testing of classes, test plan

Asked 2 times in 2022, 2025 · Unit 5

From the papers

  • “Discuss various testing strategies specifically designed for object-oriented software. How do these strategies differ from traditional testing methods, and what are the advantages of using them?” (Jun 2025)
  • “Explain the importance of unit testing in the context of object-oriented programming. What practices can be implemented to ensure comprehensive unit testing of classes and methods?” (Jun 2025)
  • “What are the different strategies and test cases used for Object Oriented Software process?” (May 2022)
  • “What is a Test plan? Explain in detail the guidelines to be followed in developing a test plan.” (May 2022)

The short answer

Object oriented testing must handle encapsulation, inheritance and polymorphism, so the unit of testing is the class, not a single function. Testing widens from classes to clusters of collaborating classes, then the whole system. A test plan documents what will be tested, how, by whom and when.

Write these points

Testing strategies for OO software

  • Unit (class) testing: test each operation and the state behaviour of a class; methods cannot be tested apart from their object's state.
  • Integration testing: thread-based (classes for one input or event), use-based (independent classes first, then dependent ones), cluster testing.
  • Validation and system testing: use case based, black box tests against requirements; acceptance, performance and security tests.
  • Test case methods: fault-based, scenario-based, random tests on operation sequences, partition testing (state, attribute, category), inheritance and polymorphism tests (retest inherited methods in each subclass).

How OO testing differs and its advantages

  • Traditional: unit = function, integration top-down or bottom-up by call hierarchy. OO: unit = class, integration by threads, use or clusters.
  • Advantages: tests follow use cases, so they match user needs; classes are reused with their tests; regression testing is easier.
  • Unit testing practices: a test class per class (JUnit, pytest), test every public method with normal, boundary and error inputs, use mocks for collaborators, run tests automatically on every build, measure coverage.

Test plan and guidelines

  1. Identifier, scope, features to be tested and not tested.
  2. Approach and test levels; pass and fail criteria; entry and exit criteria.
  3. Test deliverables, environment, schedule, roles and staffing.
  4. Risks and contingencies; approvals.
  5. Guidelines: base it on requirements, keep it reviewed and updated, make every test traceable and repeatable.

Unit testing an Account class.

Test 1: deposit(500) on a new account; expect balance 500.

Test 2: withdraw(800) when balance is 500; expect InsufficientFunds.

Test 3: boundary: withdraw(500) leaves balance 0.

Inheritance test: rerun all tests on SavingsAccount, since it overrides withdraw().

Real-life example

Before a cricket match each player practises alone (unit testing), then the batting pair practises running (integration), then a practice match is played (system testing).

Figure: OO testing strategy
Figure: OO testing strategy

Same or opposite: traditional and OO testing

PointTraditionalObject orientedSame or opposite
Unit testedFunction or moduleClassOpposite
Has unit, integration and system levelsYesYesSame
IntegrationTop-down or bottom-upThread, use or cluster basedOpposite
Extra concernsNoneInheritance, polymorphism, stateOpposite

Exam tip. Explain class testing, the three integration strategies and validation. Give the test case design methods, unit testing practices with an example, then the test plan contents.

Back to the topic list

Q11. State chart diagrams: course registration system, payroll system design

Asked 2 times in 2022, 2025 · Unit 4

From the papers

  • “Discuss the design of a payroll system using object-oriented principles. What are the primary classes involved, and how would you represent the system's behavior through state chart and activity diagrams?” (Jun 2025)
  • “Compose the state chart diagram for Course and Registration System.” (May 2022)

The short answer

A state chart (state machine) diagram shows the states an object passes through during its life, the events that cause transitions and the actions taken. It is drawn for classes with important time-dependent behaviour. Notation: rounded boxes for states, arrows labelled event [guard] / action, a filled circle for the start and a ringed circle for the end.

Write these points

Course registration system

  • Object: CourseOffering. States: Open, Full, Closed, Cancelled.
  • addStudent [count < 9] / count++ keeps it Open; addStudent [count = 9] moves it to Full.
  • dropStudent returns Full to Open.
  • closeRegistration [count ≥ 3] moves it to Closed; cancel [count < 3] moves it to Cancelled; both lead to the end state.

Payroll system with OO principles

  • Classes: Employee (abstract), with SalariedEmployee, HourlyEmployee, CommissionedEmployee; PayrollSystem, Payslip, TimeCard, Deduction, BankAccount.
  • Polymorphism: each subclass overrides calculatePay(); PayrollSystem loops over all Employees.
  • State chart of a Payslip: Created → Calculated (calculate) → Approved (approve [no errors]) → Paid (transfer to bank) → Archived; Calculated → Created on reject.
  • Activity diagram of a pay run: collect time cards → compute gross pay → apply deductions (fork: tax and PF in parallel, join) → generate payslips → transfer salary.

Tracing the course offering.

Start: count = 0, Open.

Nine students add: count = 9, still Open. The tenth add has guard count = 9, so the course becomes Full.

One student drops: back to Open with 9.

At the deadline count = 9 ≥ 3, so closeRegistration moves it to Closed and then to the end state.

Real-life example

A railway ticket has states: Waiting list, RAC, Confirmed, Cancelled. Events such as a cancellation by someone else move it between states.

Figure: state chart of a course offering
Figure: state chart of a course offering

Same or opposite: state chart and activity diagram

PointState chartActivity diagramSame or opposite
FocusStates of one objectFlow of activitiesOpposite
Is a behavioural UML diagramYesYesSame
Arrows triggered byEventsCompletion of an activityOpposite
ExampleCourseOffering statesPayroll runOpposite

Exam tip. Give the notation with event [guard] / action. Draw the course offering state chart, then list payroll classes, the payslip states and the pay run activities.

Back to the topic list

Q12. Requirement analysis; use case, actor and flow of events

Asked 2 times in 2022, 2025 · Unit 3

From the papers

  • “What is requirement analysis in the context of software development? Discuss the techniques used in requirement analysis and how they contribute to identifying and documenting the needs of stakeholders.” (Jun 2025)
  • “Explain the following with an example: Use case, Actor, Flow of events.” (May 2022)

The short answer

Requirement analysis finds, analyzes, documents and validates what the stakeholders need from the system: functional requirements (what it must do) and non-functional requirements (performance, security, usability). In OO analysis these are captured mainly as use cases: a use case is a sequence of actions the system performs that gives a result of value to an actor. Its flow of events describes the steps.

Write these points

Techniques of requirement analysis

  • Interviews, questionnaires, workshops (JAD) and brainstorming.
  • Observation and study of existing documents and systems.
  • Prototyping to confirm what users really want.
  • Use case modeling and scenarios; the result is a Software Requirements Specification (SRS) that is reviewed and traced.

Use case, actor and flow of events

  • Actor: a role outside the system that interacts with it: a person, another system or a device (Student, Bank system).
  • Use case: an ellipse with a verb phrase (Register for Course). Relationships «include» (always used) and «extend» (optional).
  • Flow of events: precondition, basic (main) flow, alternative flows, exception flows, postcondition.
  • Use cases drive design and testing in RUP.

Use case: Withdraw Cash.

Actor: Customer (primary), Bank system (secondary). Precondition: card is valid.

Basic flow: 1 insert card, 2 enter PIN, 3 choose amount, 4 system checks balance, 5 dispense cash, 6 print receipt.

Alternative flow at step 4: balance too low, show message, return to step 3.

Exception: wrong PIN three times, card retained. Postcondition: account debited.

Real-life example

A tailor asks how the customer will wear a suit: to work, to a wedding, travelling. Those uses are the use cases; the customer is the actor.

Figure: requirement analysis process
Figure: requirement analysis process

Same or opposite: functional and non-functional requirements

PointFunctionalNon-functionalSame or opposite
DescribesWhat the system doesHow well it does itOpposite
Recorded in the SRSYesYesSame
ExampleRegister for a courseResponse in 2 secondsOpposite
Captured mainly byUse casesSupplementary specificationOpposite

Exam tip. Define requirement analysis and its types, list the techniques, then define actor, use case and flow of events with a full example including alternative flows.

Back to the topic list

Q13. CRC cards

Asked 1 time in 2022 · Unit 4

From the papers

  • “What is a CRC card? How do you design it? Explain in detail.” (May 2022)

The short answer

A CRC card is an index card (about 4 × 6 inches) used to find and design classes. It has three parts: the Class name at the top, its Responsibilities (what it knows and does) on the left. Its Collaborators (other classes it needs to fulfil those responsibilities) go on the right. Kent Beck and Ward Cunningham introduced it in 1989 as a simple, team-based design aid.

Write these points

How to design CRC cards

  1. Read the requirements or use cases; pick candidate classes from the nouns.
  2. Write one card per class with its name.
  3. Add responsibilities from the verbs: what the class must know and do.
  4. For each responsibility, list the classes it must ask for help: the collaborators.
  5. Role-play scenarios: team members hold cards and pass the flow along; missing or overloaded responsibilities show up.
  6. Refine: split overloaded cards, remove unused ones, group cards into subsystems; then draw the class diagram.

Why CRC cards help

  • Cheap and fast; easy to change by rewriting a card.
  • Encourage thinking in objects instead of functions.
  • Involve the whole team, including users.
  • Limit the size of a class: if the card is full, the class does too much.

Cards for course registration.

Course: knows code, title, enrolled students; adds and drops students; checks seats. Collaborators: Student, Registrar, Schedule, Professor.

Student: knows name and roll number, its courses; requests registration. Collaborators: Course, Registrar.

Registrar: validates eligibility and fees. Collaborators: Student, Course, Accounts.

Role-play "register for a full course" shows that Course needs a waitlist responsibility, so it is added.

Real-life example

Students planning a college fest write each committee's duties and whom it must work with on a chit. CRC cards are those chits for classes.

Figure: a CRC card
Figure: a CRC card

Same or opposite: CRC card and class diagram

PointCRC cardClass diagramSame or opposite
FormIndex cardUML diagramOpposite
Describes classesYesYesSame
DetailResponsibilities and collaboratorsAttributes, operations, relationshipsOpposite
StageEarly analysisDetailed designOpposite

Exam tip. Define CRC with the three parts and draw a card. Write the six steps including role-play and the advantages, with a registration example.

Back to the topic list

Q14. Correctness and consistency of OOA and OOD models

Asked 1 time in 2022 · Unit 5

From the papers

  • “How Correctness and consistency of OOA and OOD models are made?” (May 2022)

The short answer

Before testing code, the OOA and OOD models themselves are tested, because an error in a model spreads into many classes. Two checks are made: correctness (does the model match the real problem domain and the requirements?) and consistency (do the parts of the model agree with each other?). These are done by reviews and inspections.

Write these points

Correctness

  • Syntactic correctness: UML symbols and conventions used properly.
  • Semantic correctness: every class, attribute and relationship reflects the real world.
  • Domain experts review the model; class names and responsibilities must make sense to them.
  • Every requirement and use case must be traceable to model elements.

Consistency checks

  1. Review the CRC cards and the class diagram: every collaborator on a card must be a class with a matching responsibility.
  2. Check that each responsibility given to a class is actually defined in it (no orphan responsibilities).
  3. Invert connections: if A collaborates with B, check that B supports what A asks for.
  4. Check that widely requested responsibilities are not spread over many classes; group them.
  5. Check that interaction diagrams only send messages that exist as operations; state charts only use events that exist.
  6. OOD checks: subsystems and their interfaces agree with the analysis; object design matches class definitions.

Finding an inconsistency.

The sequence diagram shows Registrar calling course.addToWaitlist().

The Course class in the class diagram has no addToWaitlist() operation.

The review records the defect; the designer adds the operation and a waitlist attribute.

Fixing it in the model costs minutes; finding it in system testing would cost days.

Real-life example

Before printing a building plan, the architect checks that the floor plan and the electrical plan agree on where the walls are. Model consistency checks do the same.

Figure: reviewing OOA and OOD models
Figure: reviewing OOA and OOD models

Same or opposite: correctness and consistency

PointCorrectnessConsistencySame or opposite
Question askedDoes the model match reality?Do the model's parts agree?Opposite
Checked by reviews before codingYesYesSame
Checked againstRequirements and domainOther diagrams and cardsOpposite
Example defectWrong multiplicityMissing operationOpposite

Exam tip. Define correctness (syntactic and semantic) and consistency. List the CRC based consistency steps and the OOD checks, with an example defect.

Back to the topic list

Q15. Software development life cycle and its phases

Asked 1 time in 2025 · Unit 1

From the papers

  • “What is the Software Development Life Cycle (SDLC), and why is it important in software engineering? Describe the different phases of SDLC and their significance in delivering a quality software product.” (Jun 2025)

The short answer

The Software Development Life Cycle (SDLC) is the series of phases a software product goes through from idea to retirement. It gives a planned, controlled way to build software so that it is delivered on time, within budget and with good quality. Models such as waterfall, spiral, iterative (RUP) and agile arrange these phases in different ways.

Write these points

Phases and their significance

PhaseWork doneWhy it matters
Feasibility and planningScope, cost, schedule, riskAvoids projects that cannot succeed
Requirements analysisGather and document needs (SRS)Builds the right product
DesignArchitecture, classes, database, interfacesBlueprint that guides coding
ImplementationWrite and unit test codeTurns design into a working product
TestingIntegration, system, acceptance testsFinds defects before users do
DeploymentInstall, train, go liveUsers get value
MaintenanceFix, adapt, improveKeeps it useful; often 60% or more of total cost
  • Importance: clear goals and deliverables for every phase; better estimates; early defect detection; documentation and control.
  • Cost of fixing a defect rises sharply with each later phase.
  • Choosing the right model depends on how stable the requirements are.
  • Each phase has entry and exit criteria and reviews.

Cost of a late defect.

A wrong tax rule costs about ₹1,000 to fix in requirements (change one line of the SRS).

In design it costs about ₹5,000; in coding about ₹10,000.

Found in testing: about ₹50,000; after release: over ₹1,00,000 with patches and user complaints.

This is why SDLC stresses reviews in early phases.

Real-life example

Building a house follows steps: plan, design, build, inspect, hand over, repair. Skipping the design step gives a house nobody wants to live in.

Figure: SDLC phases
Figure: SDLC phases

Same or opposite: SDLC and RUP

PointSDLC (classic)RUPSame or opposite
ShapePhases in orderPhases with iterationsOpposite
Covers requirements to deploymentYesYesSame
FeedbackLateEvery iterationOpposite
Best forStable requirementsChanging requirementsOpposite

Exam tip. Define SDLC and give the phases table with the significance of each. Add why it is important with the cost-of-defect example.

Back to the topic list

About Object Oriented Software Engineering

Object Oriented Software Engineering (CS-802 D) is an elective in Semester 8 of RGPV B.Tech CSE. It shows how software is analysed, designed and tested using objects and UML. Its five units cover object oriented basics, the Rational Unified Process (RUP), UML and analysis, design, and testing. Draw the UML diagrams for a small system as you study.

Object Oriented Software Engineering unit-wise brief

Unit 1: Review of object oriented concepts

This unit reviews the object oriented paradigm and its basic concepts, the software development life cycle and the model architectures. Be able to explain the life cycle stages in order.

Unit 2: Introduction to RUP

Here you study the Rational Unified Process: symptoms in software development and their root causes, the best practices of RUP, its life cycle, the 4+1 view model and the workflows. Learn the 4+1 views.

Unit 3: Introduction to UML and object oriented analysis

This unit introduces UML notation, relationships and stereotypes, and tools such as Rational Rose. It then covers object oriented analysis compared with conventional analysis: requirements, use case diagrams, activity diagrams and the analysis class model. Draw a use case diagram for an ATM.

Unit 4: Object oriented design

The unit covers object oriented against conventional design, CRC cards, class diagrams, behavioural models (interaction and state chart diagrams) and implementation diagrams (component and deployment), with case studies such as an ATM, payroll and course registration. Draw a class diagram for one case study.

Unit 5: Object oriented testing

The last unit covers checking the correctness and consistency of analysis and design models, testing strategies and test cases for object oriented software, project management, Rational tool mentors, and an introduction to design patterns. Learn two design patterns with an example each.

Units follow the RGPV scheme and syllabus, B.Tech Computer Science and Engineering, Semester 8 (AICTE flexible curriculum, w.e.f. Jan 2021). For the full topic list of each unit, open the Object Oriented Software Engineering notes.

Start with the latest papers

Object Oriented Software Engineering - Jun 2025

Object Oriented Software Engineering - May 2022

See all 2 papers →

Object Oriented Software Engineering (CS-802-D) FAQs

What are the most important topics in Object Oriented Software Engineering?

By how often they were asked in the papers on this site: Rational Unified Process: meaning, life cycle and phases, objectives, compared with traditional methods (2 times); RUP workflows, best practices and roles (2 times); Object oriented paradigm: objects, principles of OO design, inheritance and its types (2 times); UML relationships, notations and stereotypes (2 times); Importance of modeling; UML and its purpose (2 times).

How were these Object Oriented Software Engineering important questions chosen?

Each topic was counted from the questions in the past papers listed on this site (2022-2025). Repeated is the number of times the topic came. The counts come from keyword matching and the answers are not teacher-reviewed, so use them together with your syllabus.

Is there a PDF of Object Oriented Software Engineering important questions with answers?

Yes. The Paperwala Imp Question & Answer PDF for Object Oriented Software Engineering is free to download from this page.

The 15 most repeated topics of Object Oriented Software Engineering (CS-802-D) for RGPV B.Tech CSE semester 8, counted from the previous year papers on this site.