Beruflich Dokumente
Kultur Dokumente
Answer:
When the sole instance should be extensible by sub classing, and clients
should be able to use an extended instance without modifying their code.
Answer:
// Driver Code
class Main
{
public static void main(String args[])
{
// instantiating Singleton class with variable x
Singleton x = Singleton.Singleton();
Explanation: In the Singleton class, when we first time call Singleton() method, it
creates an object of class Singleton with name single_instance and return it to the
variable. Since single_instance is static, it is changed from null to some object.
Next time if we try to call Singleton() method, since single_instance is not null, it
is returned to the variable, instead of instantiating the Singleton class again.
Answer:
class Namer {
return first;
}
return last;
public FirstLast(String s) {
if (i > 0) {
last =s.substring(i+1).trim();
else {
last = s;
}}
public LastFirst(String s) {
if (i > 0) {
last = s.substring(0, i).trim();
else {
first = "";
class NameFactory {
int i = entry.indexOf(",");
if (i>0)
else
txFirstName.setText(namer.getFirst());
txLastName.setText(namer.getLast());
Answer:
3. Describe Class Diagram Machine?
Answer: Class diagrams are the main building block in object-oriented modeling.
They are used to show the different objects in a system, their attributes, their
operations and the relationships among them.
The following figure is an example of a simple class:
In the example, a class called “loan account” is depicted. Classes in class diagrams
are represented by boxes that are partitioned into three:
The example shows how a class can encapsulate all the relevant data of a particular
object in a very systematic and clear way. A class diagram is a collection of classes
similar to the one above.
Typically, behavioral state machine diagrams are not used for all classes, but just
to further define complex classes to help simplify the design of algorithms for their
methods
4. What is temporal event? How many “Actors” can be in use case modeling?
Describe briefly.
Answer: An event that occurs as a result of a reaching a point in time.
5. How many “Associations” can be in use case modeling? Describe briefly.
Answer:
6. .How to create a use-case diagram/modeling? Draw a sample use-case
diagram explaining its elements.
Ans: A use case diagram summarizes all of the use cases (for the part of the
system being modeled) together in one picture.
Creating a Use Case Diagram: Steps in creating a use case diagram
1. Identify use cases.
2. Draw the system boundary.
3. Place the use cases on the diagram.
4. Identify the actors.
5. Add association relationships.
Example:
7. What is SDLC? Describe stages of SDLC.
Ans: SDLC: The systems development life cycle (SDLC), also referred to as the
application development life-cycle, is a term used in systems engineering,
information systems and software engineering to describe a process for planning,
creating, testing, and deploying an information system.[1] The systems development
lifecycle concept applies to a range of hardware and software configurations, as a
system can be composed of hardware only, software only, or a combination of
both.[2] There are usually six stages in this cycle: analysis, design, development and
testing, implementation, documentation, and evaluation.
The SDLC is composed of four fundamental phases:
• Planning: This phase is the fundamental process of understanding
why an information system should be built, and determining how the
project team will go about building it.
• Analysis: The analysis phase answers the questions of who will use
the system, what the system will do, and where and when it will be
used. During this phase the project team investigates any current
system(s), identifies improvement opportunities, and develops a
concept for the new system.
• Design: The design phase decides how the system will operate, in
terms of the hardware, software, and network infrastructure; the user
interface, forms, and reports that will be used; and the specific
programs, databases, and files that will be needed.
• Implementation: During the implementation phase, the system is
either developed or purchased (in the case of packaged software) and
installed. This phase is usually the longest and most expensive part of
the process.
Ans: Custom development – When we build a new system from scratch then it’s
called custom development.
-It allows developers to be flexible and creative in the way they solve business
problems.
- It requires a dedicated effort that include long hours and hard work.
- It requires a variety of skills, but high skilled IS professionals are difficult to hire
and retain.
- The risks associated with building a system from the ground up can be quite high.
Risks of outsourcing:
So,you should never outsource what you do not understand and carefully choose an
outsourcing firm with a proven track record.
4. The cloud computing model enables customers to be billed for resources as they
are used.
23. Describe virtualization concept?
In hardware virtualization, the host machine is the machine which is used by the
virtualization and the guest machine is the virtual machine. The words host and
guest are used to distinguish the software that runs on the physical machine from
the software that runs on the virtual machine. The software or firmware that creates
a virtual machine on the host hardware is called a hypervisor or virtual machine
monitor.
24. You will be given some system requirements. You have to find appropriate
requirement type?
Requirements describe: what the business needs (business requirements), what the
users need to do (user requirements), what the software should do (functional
requirements), characteristics the system should have (non-functional
requirements).
25. Why do we need testing? Describe Unit/integration/system/acceptance
testing?
Ans: SOFTWARE TESTING LEVELS are the different stages of the software
development lifecycle where testing is conducted.
#There are four levels of software testing: Unit >> Integration >> System >>
Acceptance.
Unit Testing Unit tests focus on one unit – a program or a program module
that performs a specific function that can be tested.
There are two approaches to unit testing:
- Black-box testing: The test plan is developed directly from the program
specification.
- White-box testing: The tester reviews the actual program code.
System Testing System tests are usually conducted by the systems analysts to
ensure that all modules and programs work together without error.
System tests examine:
- How well the system meets business requirements,
- Usability,
- Security,
- Performance under heavy load, and
- System’s documentation.