SE Answer
SE Answer
1. What is the difference between Verification and Validation? Also discuss, its
significance in Software testing with examples.
Ans:
Verification is the process of checking whether the software is being developed
correctly according to the design and requirements. It is a static process (no code
execution), involving reviews and inspections.
Validation is the process of checking whether the developed software meets the user’s
needs and performs the intended functions. It is a dynamic process (involves code
execution), done through testing.
Aspect Verification Validation
3. Briefly explain each steps involved in developing the DFD model of a system.
Ans: A Data Flow Diagram (DFD) is a visual representation of how data flows through
a system. It shows how input is transformed into output through a series of processes,
data stores, and interactions with external entities. DFDs are very useful in
understanding how a system works and are often used during the analysis and design
phases of software development.
Here are the main steps involved in developing a DFD model:
1. Develop the Context Diagram (Level 0 DFD)
The first step in creating a DFD is to draw the context diagram, also known as Level 0
DFD.
This diagram represents the entire system as a single process or bubble, and shows all
the external entities that interact with it.
• The context diagram gives a high-level overview of the system.
• It includes arrows to show the flow of data between the system and the external
entities like users, organizations, or other systems.
• The name of the system is written inside the central process bubble (noun form), since
it represents the entire system.
4. What is UML ? Explain the following in context to UML. A)Use Case Diagram
B)Sequence Diagram C)State Diagram D)Classes and Objects.
Ans: UML stands for Unified Modeling Language. It is a standardized modeling language
used to visualize, design, and document the components of a software system. UML helps
in representing both the structure and behavior of software systems using diagrams.
These diagrams show the interactions between actors (users or other systems) and the
system itself. They depict use cases, which are functionalities or features the system
provides. For example, in a library system, actors might be Librarian and Member, with
use cases like "Borrow Book" or "Return Book."Key Components:
• Actor: Any user or external system that interacts with the application.
B) Sequence Diagram
A Sequence Diagram show how objects interact in a particular sequence over time.
They focus on the order of messages exchanged between objects. For instance, when
a user logs in, the sequence might involve the user interface sending a request to the
authentication service, which then checks the database. Arrows represent messages,
and lifelines show the objects' existence during the interaction.
Key Components:
C) State Diagram
A State Diagram illustrate the different states an object can be in and the transitions
between those states triggered by events. For example, a traffic light system might
have states like Red, Yellow, Green, and transitions based on timers. It's useful for
modeling behavior that depends on an object's state.
Key Components:
In UML:
• A Class is a blueprint that defines the attributes and methods of a set of objects.