BIT302 · TU past paper
Software Engineering 2081 question paper
The complete TU 2081 exam paper for Software Engineering (BIT302), all 12 questions with solved model answers written to the mark scheme.
Tap a question to open its answer.
- Q1.10 marksPrototyping process modelHideAnswer
Explain process model for software prototype development with a neat diagram focusing on its different stages.[10]
- Q2.10 marksArchitecture patterns and their importanceHideAnswer
Why architecture patterns are important? Explain Model-View-Controller, layered and repository architecture.[10]
- Q3.10 marksUnit testingHideAnswer
Explain key activities performed during Unit testing, component testing and system testing.[10]
- Q4.5 marksSoftware configuration management processHideAnswer
Explain the process of software configuration management. [5]
- Q5.5 marksSoftware review processHideAnswer
Explain software review process. [5]
- Q6.5 marksFactors affecting software pricingHideAnswer
Describe different factors affecting software pricing. [5]
- Q7.5 marksSequence diagramsHideAnswer
Draw sequence diagram for online food ordering system where the user can choose foods of various restaurants and pay online. The system also provides discount of 10% if the total amount paid is more than Rs. 3000. The user if cancels the order within 30 minutes will be approved else the paid amount will not be refunded. [5]
- Q8.5 marksRequirements engineering processHideAnswer
Briefly explain requirement engineering process. [5]
- Q9.5 marksAgile principles and practicesHideAnswer
What are the basic principles of agile methods? Explain. [5]
- Q10.5 marksSoftware quality characteristicsHideAnswer
List various attributes of good software and explain them. [5]
- Q11.5 marksModel-driven architecture and transformatiHideAnswer
Describe Model-driven architecture. What type of abstract system models are produced by it? [5]
- Q12.5 marksTest-driven development approachHideAnswer
Write short notes on: a) open-source development b) Test driven development [5]
Short Notes
a) Open-Source Development
Open-source development is a software development model where the source code is made publicly available for anyone to view, use, modify, and distribute. It follows a collaborative, community-driven approach.
Key Characteristics:
- Public Repository: Source code is hosted on platforms like GitHub, GitLab, or SourceForge, accessible to everyone.
- Community Collaboration: Developers worldwide contribute bug fixes, new features, and improvements through pull requests and patches.
- Transparency: All changes, discussions, and decisions are visible to the public.
- Licensing: Governed by licenses such as GNU GPL, MIT, or Apache, which define terms of use and redistribution.
- Peer Review: Code is reviewed by multiple contributors, improving quality and security.
Examples:
Linux, Apache, Mozilla Firefox, Python.
Advantages:
- Reduces development cost
- Faster bug detection and fixing
- Encourages innovation and reuse
Disadvantages:
- Lack of formal support
- Inconsistent documentation
- Security risks if code is misused
b) Test-Driven Development (TDD)
Test-Driven Development (TDD) is a software development practice where tests are written before the actual code. It follows a short, repetitive development cycle.
The TDD Cycle (Red-Green-Refactor):
Step Description Red Write a test that fails (since code does not exist yet) Green Write the minimum code necessary to pass the test Refactor Clean and improve the code without changing its behavior Key Principles:
- No production code is written unless there is a failing test to justify it.
- Tests act as living documentation of the system.
- Encourages simple, modular, and loosely coupled design.
Process Flow:
Write Failing Test --> Write Code to Pass Test --> Refactor --> RepeatAdvantages:
- Early detection of defects
- Improved code quality and design
- Provides a safety net for future changes (regression testing)
- Better requirement understanding before coding
Disadvantages:
- Requires discipline and practice
- Initial development may be slower
- Difficult to apply for complex UI or legacy systems
Example:
Before writing a function
add(a, b), a developer first writes:assert add(2, 3) == 5 # Test written firstThen implements the function to make the test pass.