Professional Documents
Culture Documents
Software Engineering Important Questions
Software Engineering Important Questions
o Valid Test cases: Valid test cases for the above can be any value entered greater than 17 and less
than 57.
Enter the value- 18.
Enter the value- 19.
Enter the value- 37.
Enter the value- 55.
Enter the value- 56.
o Invalid Test cases: When any value less than 18 and greater than 56 is entered.
Enter the value- 17.
Enter the value- 57.
2) What are relationships in UML?
Unified Modelling Language (UML) is a general purpose modelling language. The main aim of UML is to
define a standard way to visualize the way a system has been designed.
UML is not a programming language, it is rather a visual language.
In UML modelling, a relationship is a connection between two or more UML model elements that adds
semantic information to a model.
It constitutes four types of relationships:
o Dependency
o Association
o Generalization
o Realization.
A. Association:
o An association between two classes describes connection among them.
o If the association is between two classes then it is called binary association.
o It is represented by solid line.
o It can form several types of associations, such as one-to-one, one-to-many, many-to-one, and
many-to-many.
o The mostly used association are unidirectional and bidirectional.
o For example: ‘An employee works for a company’
Employee Company
B. Dependency:
o A dependency relationship is a weaker form of relationship. A dependency states that a change in
specification of one class may effect another class that uses first one but not vice versa.
o It is represented by dashed lines.
o We can say a class contained in other class is known as dependency.
o It is a unidirectional relationship.
C. Generalization:
o Deriving a class out of parent class having some inherited property from parent class and some
new property of derived class.
o It exists between two objects (things or entities), such that one entity is a parent (superclass or
base class), and the other one is a child (subclass or derived class).
o It is represented by a solid line with large arrow head pointing towards the parent class.
Vehicle
Car Truck
D. Realization:
o Realization is very similar to inheritance, the only difference between them is a class is derived
from an interface instead of a base class.
o An interface is an abstract class.
Example-1:
o Let us consider an example of any college admission process. There is a college that gives
admissions to students based upon their percentage.
o Consider percentage field that will accept percentage only between 50 to 90 %, more and even
less than not be accepted, and application will redirect user to an error page. If percentage
entered by user is less than 50 %or more than 90 %, that equivalence partitioning method will
show an invalid percentage. If percentage entered is between 50 to 90 %, then equivalence
partitioning method will show valid percentage.
4) What do you mean by LOC? Explain with example.
A line of credit (LOC) is the maximum amount that a customer has access to and can borrow from a bank
on an ongoing basis. In other words, this is an open credit line that allows a customer to continually
borrow funds from a bank up to a maximum amount.
A line of code (LOC) is any line of text in a code that is not a comment or blank line, and also header lines,
in any case of the number of statements or fragments of statements on the line. LOC clearly consists of all
lines containing the declaration of any variable, and executable and non-executable statements. As Lines
of Code (LOC) only counts the volume of code, you can only use it to compare or estimate projects that
use the same language and are coded using the same coding standards.
Features :
o Variations such as “source lines of code”, are used to set out a code-base.
o LOC is frequently used in some kinds of arguments.
o They are used in assessing a project’s performance or efficiency.
Advantages :
o Most used metric in cost estimation.
o Its alternates have many problems as compared to this metric.
o It is very easy in estimating the efforts.
Disadvantages :
o Very difficult to estimate the LOC of the final program from the problem specification.
o It correlates poorly with quality and efficiency of code.
o It doesn’t consider complexity.
Research has shown a rough correlation between LOC and the overall cost and length of developing a
project/ product in Software Development, and between LOC and the number of defects. This means the
lower your LOC measurement is, the better off you probably are in the development of your product.
5) Explain Function point analysis with example.
Function Point Analysis was initially developed by Allan J. Albercht in 1979 at IBM and it has been further
modified by the International Function Point Users Group (IFPUG).
FPA gives a dimensionless number defined in function points which we have found to be an effective
relative measure of function value delivered to our customer.
Function Point Analysis (FPA) is a method or set of rules of Functional Size Measurement. It assesses the
functionality delivered to its users, based on the user’s external view of the functional requirements. It
measures the logical view of an application, not the physically implemented view or the internal technical
view.
The Function Point Analysis technique is used to analyse the functionality delivered by software and
Unadjusted Function Point (UFP) is the unit of measurement.
Types of FPA:
o External Input (EI): EI processes data or control information that comes from outside the
application’s boundary. The EI is an elementary process.
o External Output (EO): EO is an elementary process that generates data or control information
sent outside the application’s boundary.
o External Inquiries (EQ): EQ is an elementary process made up of an input-output combination that
results in data retrieval.
o Internal Logical File (ILF): A user identifiable group of logically related data or control information
maintained within the boundary of the application.
o External Interface File (EIF): A group of users recognizable logically related data allusion to the
software but maintained within the boundary of another software.
Objectives of FPA:
o To measure the functionality that the user requests and receives.
o To measure software development and maintenance independently of the technology used for
implementation.
o To minimize the overhead of the measurement process.
o It should be a consistent measure among various projects and organizations.
The drawback of FPA:
o It requires a subjective evaluation and involves many judgements.
o Compared to LOC, there are less research data on function points.
o Run after creating the design spec.
o With subjective judgement, the accuracy rate of the assessment is low.
o Due to the long learning curve, it is not easy to gain proficiency.
o This is a very time-consuming method.
6) What is Unit Testing
Unit Testing is a software testing technique by means of which individual units of software i.e. group of
computer program modules, usage procedures, and operating procedures are tested to determine
whether they are suitable for use or not.
It is a testing method using which every independent module is tested to determine if there is an issue by
the developer himself.
It is correlated with the functional correctness of the independent modules.
Unit testing is defined as a type of software testing where individual components of a software are tested.
Unit testing of the software product is carried out during the development of an application. An individual
component may be either an individual function or a procedure.
Unit testing is typically performed by the developer.
In SDLC or V Model, Unit testing is the first level of testing done before integration testing.
Unit testing is such a type of testing technique that is usually performed by developers.
Although due to the reluctance of developers to test, quality assurance engineers also do unit testing.
There are 2 types of Unit Testing:
o Manual
o Automated.
Objective of Unit Testing: The objective of Unit Testing is:
o To isolate a section of code.
o To verify the correctness of the code.
o To test every function and procedure.
o To fix bugs early in the development cycle and to save costs.
o To help the developers to understand the code base and enable them to make changes quickly.
o To help with code reuse.
Workflow of Unit Testing: Unit Testing Techniques:
13) Explain COCOMO Model? What will be development time & effort required for 400KLOC (Organic Mode).
16) Explain Unit Testing, Integration Testing, System Testing & Acceptance Testing.
17) What is SRS? Write Functional & Non Functional requirement of Hospital Management System.