Docsity

Software engineering handwritten notes Software engineering study notes se notes for exam, Study notes of Engineering

Toggle sidebar
bg1
SOFTWARE ENGINEERING
Q1. Explain Software Engineering and explain its need.
Software Engineering
Software engineering is the technique through which user can develop or created
computer system and any other devices.
In software engineering user requirements are analysed and software is created using
these requirements .
Software engineering uses some software principles , procedures, scientific rules to
develop high quality software .
To develop a high quality,complex software there are two terms users abstraction and
decomposition where abstraction means describing only necessary information and
leave complex data for later stage
Decomposition means breakdown the software into number of module where each
module produces a well,define independent task .
Software Engineering helps developers create software in a structured and organized way. It
includes several stages such as planning, designing, coding, testing, and maintenance.
The main goal of software engineering is to develop high-quality software that meets user
requirements, works efficiently, and is easy to maintain.
Software Engineering is important because modern software systems are very large and
complex. Without proper engineering methods, it would be difficult to develop and manage
such systems.
Need of Software Engineering
Software Engineering is required for many reasons:
1. Managing Large Software Systems
Modern software systems like banking systems, hospital management systems, and airline
reservation systems are very large and complex. Software engineering helps manage these
systems effectively.
2. Improving Software Quality
Software engineering ensures that software is reliable, secure, and efficient. It reduces
errors and improves performance.
3. Meeting User Requirements
Software engineering focuses on understanding user needs and designing software that
satisfies those requirements.
4. Reducing Development Cost
Proper planning and management reduce unnecessary work and help save time and money.
5. Easy Maintenance
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b
pf4c
pf4d
pf4e
pf4f
pf50

Partial preview of the text

Download Software engineering handwritten notes Software engineering study notes se notes for exam and more Study notes Engineering in PDF only on Docsity!

SOFTWARE ENGINEERING

Q1. Explain Software Engineering and explain its need.

Software Engineering Software engineering is the technique through which user can develop or created computer system and any other devices. In software engineering user requirements are analysed and software is created using these requirements. Software engineering uses some software principles , procedures, scientific rules to develop high quality software. To develop a high quality,complex software there are two terms users abstraction and decomposition where abstraction means describing only necessary information and leave complex data for later stage Decomposition means breakdown the software into number of module where each module produces a well,define independent task. Software Engineering helps developers create software in a structured and organized way. It includes several stages such as planning, designing, coding, testing, and maintenance. The main goal of software engineering is to develop high-quality software that meets user requirements, works efficiently, and is easy to maintain. Software Engineering is important because modern software systems are very large and complex. Without proper engineering methods, it would be difficult to develop and manage such systems. Need of Software Engineering Software Engineering is required for many reasons:

  1. Managing Large Software Systems Modern software systems like banking systems, hospital management systems, and airline reservation systems are very large and complex. Software engineering helps manage these systems effectively.
  2. Improving Software Quality Software engineering ensures that software is reliable, secure, and efficient. It reduces errors and improves performance.
  3. Meeting User Requirements Software engineering focuses on understanding user needs and designing software that satisfies those requirements.
  4. Reducing Development Cost Proper planning and management reduce unnecessary work and help save time and money.
  5. Easy Maintenance

Software often needs updates and improvements. Software engineering makes it easier to maintain and modify software.

  1. Better Project Management Software engineering provides proper planning, scheduling, and monitoring of software projects.
  2. Handling Complexity Large projects involve many developers and tasks. Software engineering methods help organize and coordinate the work. Conclusion Software Engineering plays an important role in modern technology. It helps in developing reliable, efficient, and high-quality software systems that meet the needs of users and organizations.

Q2. What is the Specialized Process Model? Explain with Example.

Specialized Process Model Specialized process models are software development models designed for specific types of software projects. These models are used when traditional process models are not suitable for certain situations. Specialized models focus on particular requirements, technologies, or development environments. These models help in developing software more effectively in complex or unique situations. Types of Specialized Process Models Some common specialized process models include: Component-Based Development Model Formal Methods Model Aspect-Oriented Software Development Model

  1. Component-Based Development Model In this model, software is developed using pre-built software components. Instead of creating everything from scratch, developers reuse existing components. This approach saves time and reduces development cost. Example: A website may use ready-made components for login systems, payment gateways, and user authentication.
  2. Formal Methods Model This model uses mathematical techniques to design and verify software. It ensures that software works correctly without errors. Formal methods are mostly used in safety-critical systems.

Suitable for large and complex projects. Continuous customer feedback. Errors are detected early. Flexible development process. Disadvantages of Spiral Model Expensive to implement. Requires experienced developers. Not suitable for small projects. Risk analysis process can be complex. Conclusion The Spiral Model is very effective for large and complex software projects where risk management is important.

Q4. What are the characteristics of Good Software Engineering?

Good software should have certain qualities to ensure efficiency and reliability. Characteristics of Good Software

  1. Reliability The software should work correctly without errors or failures.
  2. Efficiency The software should use system resources such as CPU, memory, and storage efficiently.
  3. Usability The software should be easy to learn and easy to use for users.
  4. Maintainability The software should be easy to modify and update when needed.
  5. Security The software should protect data and prevent unauthorized access.
  6. Portability The software should run on different platforms and operating systems.
  7. Scalability The software should be able to handle increased workload without performance issues.
  8. Flexibility The software should be adaptable to future changes and improvements. Conclusion Good software engineering focuses on producing high-quality software that is reliable, efficient, secure, and easy to maintain.

Q5. What is Prospective Process Model?

Prospective Process Model A Prospective Process Model is a development approach where the software process is

planned and designed before the project begins. It focuses on predicting the steps and activities required to develop software successfully. This model defines the complete process in advance, including design methods, development strategies, testing procedures, and management techniques. Features of Prospective Process Model Planning is done before development starts. Activities and stages are clearly defined. It focuses on future project needs. Helps reduce risks and uncertainties. Advantages Better project planning. Improved project management. Clear development structure. Reduced chances of errors. Disadvantages Requires accurate planning. Changes may be difficult once development starts. Conclusion The Prospective Process Model helps in systematic software development by planning the entire development process in advance. ==============================================

Assignment 2.

Q1. What is SRS and why is it used?

SRS (Software Requirement Specification) is a document that describes all the requirements of a software system. It explains what the software should do and how it should perform. In simple words, SRS is a written document that contains all the details about the system before development starts. It is prepared by system analysts after discussing with the client and users.

Components of SRS

Functional requirements – What the system should do. Non-functional requirements – Performance, security, reliability etc.

Examples

System should load within 2 seconds System should support 1000 users at a time Data should be secure System should be reliable

Characteristics

Focus on performance Improve user experience Define system quality

Difference Between Functional and Non-Functional Requirements

Functional Requirements Non-Functional

Requirements

Describe what system does Describe how system works

Focus on features Focus on quality

Example: login system Example: system speed

Example In an ATM System Functional requirement: User can withdraw money. Non-functional requirement: Transaction should complete within 5 seconds.

Q3. What is cost estimation and how is it measured? Give

example.

Cost estimation is the process of predicting the amount of money, time, and resources required to develop a software project. It helps organizations plan the budget and schedule of the project. Cost estimation is done in the early stages of software development.

Why cost estimation is important

Helps in project planning Helps manage project budget Helps decide project schedule Helps allocate resources properly Reduces risk of project failure

Methods of Cost Estimation

Expert judgment Experts estimate the cost based on their experience.

Analogous estimation Cost is estimated based on similar past projects. Algorithmic models Mathematical models like COCOMO are used. Top-down estimation Total project cost is estimated first and then divided. Bottom-up estimation Cost of each small task is estimated and then added.

How cost estimation is measured

Cost estimation is usually measured in: Effort (Person-months) Time (months or weeks) Money (budget)

Example

Suppose a company wants to develop a Library Management System. Estimated values: Development time = 4 months Team members = 3 developers Cost per developer = ₹30,000 per month Total Cost = 3 × 30,000 × 4 = ₹3,60, So the estimated project cost is ₹3,60,000.

Q4. What is the role of a system analyst?

A System Analyst is a person who studies the existing system and helps design a new and improved system. The system analyst acts as a bridge between the client and the development team.

Roles of a System Analyst

Requirement gathering Collects requirements from clients and users. System analysis Studies the current system to find problems. System design Helps design the structure of the new system. Communication Communicates between clients and developers. Documentation Prepares documents like SRS. Problem solving Identifies issues and suggests solutions. Testing support Helps testers understand system requirements.

Example (Loan System)

Income Credit Score Loan

High Good Approve

High Poor Reject

Low Good Reject

Low Poor Reject

Advantages Easy to understand Shows multiple conditions clearly Helps in system analysis and design ===============================================

Assignment 3.

Q1. Write the Characteristics of Good Software Design.

Software design is a very important step in software development. It is the process of planning how a software system will work before coding starts. A good software design helps in developing quality software that is easy to understand, maintain, and use. The main characteristics of good software design are explained below:

  1. Correctness Correctness means the software design should meet all the requirements of the user. It should solve the actual problem for which it is developed. If the design is not correct, then the final software will also not work properly.
  2. Simplicity A good design should be simple and easy to understand. Complex designs are difficult to implement and maintain. Simple design helps developers to work easily and reduces errors.
  3. Efficiency Efficiency means the software should use minimum resources like memory, CPU time, and storage. A well-designed system performs tasks quickly and smoothly.
  4. Maintainability Maintainability means the software should be easy to update, fix, and modify. In real life, software needs changes regularly, so design should support easy maintenance.
  5. Modularity Modularity means dividing the system into smaller parts called modules. Each module performs a specific function. This makes the system easy to manage and test.
  1. Reusability Good design allows some parts of software to be reused in other projects. This saves time and effort in development.
  2. Flexibility Flexibility means the design should allow changes easily. If user requirements change, the software should be updated without major problems.
  3. Reliability Reliability means the software should work correctly for a long time without failure. A reliable system produces correct output every time.
  4. Scalability Scalability means the software should handle increased workload without affecting performance. For example, more users or more data.
  5. Security Security is also important. The design should protect data from unauthorized access and attacks. Conclusion In conclusion, a good software design improves the overall quality of software. It reduces errors, saves time, and makes the system easy to use and maintain.

Q2. Difference between Structure Analysis and Object-Oriented Analysis.

Software analysis is the process of understanding system requirements. There are two main approaches: Structured Analysis and Object-Oriented Analysis. Structured Analysis Structured analysis focuses on processes and functions. It breaks down the system into smaller processes using a top-down approach. It mainly uses tools like Data Flow Diagrams (DFD). Features: Focus on functions Uses DFD Data and functions are separate Less flexible Object-Oriented Analysis (OOA) Object-Oriented Analysis focuses on objects and classes. It combines data and functions together. It uses concepts like objects, classes, inheritance, etc. Features: Focus on objects Uses class diagrams Data and functions together More flexible and reusable

Algorithms and logic Input and output details Example: How login validation works step by step.

Difference between High-Level Design (HLD) and Low-

Level Design (LLD)

High-Level Design (HLD) gives the overall structure of the system, whereas Low- Level Design (LLD) provides detailed design of each module. HLD focuses on the big picture of the system, while LLD focuses on small details and internal working. HLD describes main modules and their relationships, whereas LLD explains logic, algorithms, and functions of each module. HLD is less detailed and more general, while LLD is more detailed and technical. HLD is created before LLD, whereas LLD is developed after HLD. HLD is mainly used by system architects and designers, while LLD is used by developers/programmers. HLD includes diagrams like DFD and architecture diagrams, whereas LLD includes flowcharts, pseudocode, and detailed logic. HLD gives an idea of how the system is divided, while LLD shows how each part will work step by step. Conclusion Both HLD and LLD are important. HLD gives the structure, while LLD gives detailed working of the system.

Q4. What are the Software Design Phases.

Software design is an important step in software development. It is the process of planning how the software will be built before coding starts. A good design helps in reducing errors and makes the system efficient and easy to maintain. Software design is divided into different phases, which are explained below:

1. Requirement Analysis Phase

This is the first phase of software design. In this phase, all the requirements of the user are collected and studied carefully. Developers interact with users to understand their needs. Both functional and non-functional requirements are identified. A document called Software Requirement Specification (SRS) is prepared. This phase is very important because if requirements are wrong, the whole system will be affected.

2. System Design Phase (High-Level Design)

In this phase, the overall structure of the system is created. The system is divided into different modules or components. The relationship between modules is defined. Architecture of the system is decided. Example: Dividing a system into login, payment, database modules. This phase gives a big picture of the system.

3. Detailed Design Phase (Low-Level Design)

In this phase, each module is designed in detail. Algorithms and logic are developed. Data structures are selected. Input and output details are defined. This phase helps programmers to start coding easily.

4. Interface Design Phase

In this phase, the interaction between user and system is designed. User Interface (UI) like screens, forms, buttons are created. It ensures the system is user-friendly and easy to use. A good interface improves user experience.

5. Database Design Phase

In this phase, data storage is planned. Tables, fields, and relationships are defined. Data is organized properly to avoid redundancy. Good database design improves performance and data management.

6. Design Review Phase

This is the final phase of software design. The complete design is checked for errors and improvements. Experts review the design to ensure quality. Necessary changes are made before implementation. This phase helps in reducing mistakes before coding starts.

Conclusion

In conclusion, software design phases play a very important role in software development. Each phase helps in building a strong and efficient system. Proper design makes the software easy to develop, maintain, and use. It also reduces cost and time in the long run.

Q5. Explain the Cohesion and Coupling.

Easy to modify and test Example: If login module works without affecting payment module → Low coupling Advantages of Low Coupling Easy to modify Easy to test Improves flexibility Reduces errors

Difference between Cohesion and Coupling (in lines)

Cohesion refers to the relationship within a module, whereas Coupling refers to the relationship between different modules. Cohesion shows how closely the functions inside a module are related, while Coupling shows how much one module depends on another. In Cohesion, high cohesion is good, whereas in Coupling, low coupling is good. Cohesion improves the internal quality of a module, while Coupling affects the connection between modules. High cohesion makes a module simple and focused, while low coupling makes modules independent. Cohesion deals with single module design, whereas Coupling deals with interaction between multiple modules.

Conclusion

In conclusion, cohesion and coupling are key factors in software design. A good design always aims for high cohesion and low coupling. This makes the software system more reliable, flexible, and easy to maintain. Proper use of these concepts improves overall software quality. ===============================================

ASSIGNMENT 4

Q1. Difference between Unit Testing and Integration Testing

Introduction Testing is an important part of software development. It helps to find errors and improve quality. Two important types of testing are Unit Testing and Integration Testing.

  1. Unit Testing Unit testing is the process of testing small parts (units) of a program. A unit can be a function, method, or module. Features of Unit Testing

It tests individual components separately Done by developers Helps to find bugs at early stage Usually uses test cases and tools Example If a program has a function to add two numbers, unit testing will check if that function works correctly. Advantages Easy to detect errors Saves time and cost Improves code quality

  1. Integration Testing Integration testing is the process of testing combined units or modules together. Features of Integration Testing Tests interaction between modules Done after unit testing Checks data flow between components Can be done using different approaches (Top-down, Bottom-up) Example If one module sends data and another receives it, integration testing checks if both work correctly together. Advantages Detects interface errors Ensures modules work as a system Improves reliability

Difference between Unit Testing and Integration Testing (in proper lines)

Unit Testing checks individual units or components of a program, whereas Integration Testing checks combined modules working together. Unit Testing is performed at the lowest level of testing, while Integration Testing is performed at a higher level after unit testing. Unit Testing focuses on the internal logic of the code, whereas Integration Testing focuses on the interaction between different modules. Unit Testing is usually done by developers, while Integration Testing can be done by both developers and testers. Unit Testing is done before combining modules, whereas Integration Testing is done after modules are integrated. In Unit Testing, errors related to logic and function are found, while in Integration Testing, errors related to data flow and interface are found. Unit Testing is simple and easy to perform, whereas Integration Testing is more complex. Unit Testing uses small test cases for each unit, while Integration Testing uses test

Re-engineering optimizes the system so that it works faster and uses fewer resources.

Process of Software Re-engineering (Point-wise Explanation)

Inventory Analysis In this step, all software systems are studied to decide which ones need re- engineering. Important systems are selected first. Document Restructuring Old or missing documents are updated or rewritten. This helps developers understand the system better. Reverse Engineering The existing system is analyzed to understand its design and working. No changes are made in this step. Code Restructuring The code is improved and simplified without changing its output. This makes it clean and easy to maintain. Data Restructuring Data is reorganized to improve storage and access. It helps in better performance and management. Forward Engineering The system is rebuilt using improved design and modern technology. This results in a better and updated software. Advantages of Software Re-engineering Saves time and cost compared to new development Improves system performance Increases software life Reduces errors and bugs Makes system easier to maintain Disadvantages Sometimes costly for large systems Requires skilled developers Risk of losing important data Conclusion Software re-engineering is very important for updating old systems. It helps to improve performance, reduce cost, and extend the life of software without building a new system from scratch.

Q3. Explain in brief about Software Measurement

Introduction

Software measurement is an important concept in software engineering. It helps in measuring different properties of software such as size, complexity, quality, and performance. Without measurement, it is difficult to manage and improve software development. Definition Software measurement is the process of assigning numerical values to software attributes so that they can be analyzed and improved. Need of Software Measurement For better estimation Software measurement helps in estimating the time, cost, and effort required for a project. By knowing the size and complexity, developers can plan properly. For improving quality Measurement helps in identifying defects and errors in software. By analyzing these values, developers can improve the quality of the product. For project control Managers use measurement to track the progress of the project. It helps in checking whether the project is going on the right path or not. For productivity analysis It helps in measuring the performance of developers. For example, how much work is completed in a given time. Types of Software Measurement (Explained) Size Measurement It measures the size of software using Lines of Code (LOC) or Function Points. Larger size generally means more effort is required. Complexity Measurement It shows how difficult the software is to understand and maintain. Complex software needs more testing and debugging. Quality Measurement It measures reliability, correctness, and performance. High-quality software has fewer errors and better user satisfaction. Cost Measurement It calculates the total cost required to develop the software including resources and manpower. Advantages Helps in better planning and estimation Improves software quality Reduces development cost Helps in decision making Conclusion