Question No. 1: Briefly answer the following short questions. Each answer should not exceed 5-6 lines. [Marks: 3 X 5 = 15] Part I: Briefly differentiate between Elaboration activity of Requirement Engineering and Analysis Modeling activity of software development life cycle. Part II: Quality of software has a cost, but lack of quality also has a cost. Briefly describe this concept. 2/4 Part III: Differentiate between Driver and Stub with help of appropriate example and diagram? Part IV: Software testing usually performed either by Developer or Independent Tester. What is difference between their approaches of testing? Part V: In order to formally test the functionalities of a system, test-cases are designed, you are required to design a test-case to test the functionality of multiplication function of a calculator.
Part I: Elaboration activity of Requirement Engineering is the process of gathering, specifying, and refining the requirements of a software system. Analysis Modeling, on the other hand, is the process of creating a representation of a software system that can be used to understand and communicate its structure and behavior.
Part II: The concept is that the cost of implementing quality controls and testing during software development may be high, but the cost of not having these controls in place can be even higher. This is because defects or errors in the software can lead to costly downtime, lost productivity, and potential legal issues.
Part III: A driver is a software module that calls a function or method in another module and is used to test the functionality of that module. A stub is a software module that takes the place of another module and is used to simulate the behavior of that module. For example, a driver might call a method in a database module, while a stub simulates the behavior of the database.
Part IV: Developers typically approach testing by writing test cases that exercise the code they have written, while independent testers may take a more holistic approach and test the software as a whole. Developers may have a deeper understanding of the code, but independent testers may have a more objective view of the software and be able to identify defects that developers may have missed.
Part V: Test Case 1:
- Input: 2 x 3
- Expected Output: 6
- Result: Pass/Fail Test Case 2:
- Input: -2 x 5
- Expected Output: -10
- Result: Pass/Fail Test Case 3:
- Input: 0 x 10
- Expected Output: 0
- Result: Pass/Fail
ion No. 1 CLO -2 (6) In software engineering two classes of models can be created, requirements model and the design model. Elaborate the domains of both classes and explicitly state the things which we have to consider in those domains
ā