Thursday, January 22, 2009

Website Free templates

1.where Can i Find best Website Free templates?
www.freewebsitetemplates.com

PHP-EXT :
2.http://php-ext.quimera-solutions.com/

Wednesday, January 14, 2009

UML Design Question

1.Define subsystem?

Classes that collaborate among themselves to accomplish a set of cohesive (consistent) responsibilities are referred to as subsystem or packages.

2.What are the two types of dependency that can be used from a subsystem?
3.which task is performed during use-case realization refinement?
4.Define design subsystems?
5.Which process document describes design mechanisms, any mappings between design
mechanisms, and the details regarding their use?
6.Which process document describes design mechanisms, any mappings between design
mechanisms, and the details regarding their use?
7.In the state of a state machine, a behavior can be defined
A. before reaching a state
B. upon reaching a state
C. upon leaving a state
D. inside a state
Answer: B, C, D
8.What is a gate?
9.When identifying design elements, a simple analysis class will map to a(n)______
10.In which OOAD activity is the distribution mechanism identified?
14.What is the relationship between operation and method?
15.Why would you use subsystem interfaces rather than subsystem instances on sequence diagrams?
16.Which is an input artifact to the Identify Design Elements activity?
17.What is an important consideration when allocating processes to nodes?
18.Which type of mechanism is a connector on a deployment diagram?
19.Define Desing mechanism
20.How to identify Design Elements ?
21.Additional subsystems can be discovered during Use Case Design by noting- Define
22.Which activities are performed during Use Case Design?
23.On a sequence diagram, what is used to represent a specific subsystem?
24.Which UML elements are used to describe the physical architecture of a system?
25.Which artifact is used to describe use-case realizations?
26.What defines a subsystems responsibilities?
27.Which is a design mechanism?
28.To begin identifying design mechanisms, you start by categorizing analysis mechanisms.

What are three steps in the process of Categorizing Analysis Mechanisms?
29.In Subsystem Design, what happens in the step, Distribute Subsystem Responsibilities?
30.Which entity has a well-defined boundary and identity that encapsulates state and

behavior?
31.What is the purpose of the Identify Design Mechanisms activity?
32.In a dependency, through what reference does the client class gain visibility to the

supplier?
33.In which Analysis and Design activity are subsystems mapped to analysis classes?
34.Which design element is used to represent a concurrent object?
35.The Describe Distribution activity is where the processes defined in the Describe the Run-

time
Architecture activity are allocated to ______
36.During Subsystem Design, how many interaction diagrams (sequence or communication)

should be created?
37.A directed graph of nodes connected by transitions is a _____ diagram.
39.Use Case Design is part of which workflow detail?
40.When does an analysis class map directly to a design class?
41.What is a design subsystems primary purpose?
42.What is the purpose of subsystem design?
44.Defining the network configuration is the ______ step of the Describe the Distribution

activity.
46.Which statement is true about packages and subsystems?
47.How many physical nodes should be identified in order to perform the Describe Distribution

activity?
48.Supplemental sequence diagram documentation, in the form of notes and scripts, is

commonly
used for ______. (Choose three.)
49 What is used to describe the process of applying a distribution mechanism during
implementation?
What does an underlined attribute indicate?
51.What does an underlined attribute indicate?

UML ANALYSIS - Question

1.What is UML and What is current Version?

UML is language and notation system used to specify, construct, visualise and document models of a software system.

2.What is the difference 1.0 and 2.0?

2a.what is association?
An association is a structural relationship that describes a set of links; a link is a connection among objects.


3.What are the types of Structural classes?

Boundary class,Control class and Entity Class

Boundary class:

This is the first type of an analysis class. In a system consisting of a boundary class, the users interact with the system through the boundary classes.

Control class:

This is the second type of an analysis class. A control class typically does not perform any business functions, but only redirects to the appropriate business function class depending on the function requested by the boundary class or the user.

Entity class:

This is the third type of an analysis class. An entity class consists of all the business logic and interactions with databases.

4.What is the difference between Traditional Class & Structural class?

Traditional Class plays multiple roles that vary on the objects that interact with it.

5.Why iterative development process is important?

5.Define Interface.
An interface is a group of related methods with empty bodies.

Interface used to interact with object and This can be achived by Implementing in interface in java.

6.What is the focus of analysis?
7.Why is encapsulation important?
10.Which is most important in Analysis Model for a system?.
12.In a sequence diagram, each interaction on the diagram maps to the transition on a state diagram
13.Explain Mutiplicity
14.What are two important considerations when diagramming state?
15.wht is Circular depnedency
16.What is the purpose of Architectural Analysis?
17.How Ports are defined?
18.Define Attribute : They change value from object to object of the same class.
19.What are the purposes of Analysis and Design
20.Objects that are polymorphic may have the same operation names but the operations
perform differently
21. Waht is nesting structured classes?
22 .During Architectural Analysis, a Software Architect wants to reduce the complexity of the

system at work and improve its consistency. What should the Software Architect define to

accomplish this?
A. coding rules
B. use-case realizations
C. analysis mechanisms
D. design mechanisms
Answer: C
23.
24.Analysis classes evolve into ______?
25.What happens when a superclass is changed?
26.waht is use Case realization?
27.Which state does NOT contain another state?
28.How we need to group element into packages
29.What are three architectural mechanism categories?
30.In a sequence diagram, what can be defined by the interactions between participants in

the interactions?
31.Which view focuses on the physical realization of the system?
32.Define an active object?
33.During Use Case Analysis, what is generally allocated to control classes?
QUESTION 34
What are three sources for Key Abstractions identification? (Choose three.)
A. domain knowledge
B. requirements
C. design classes
D. glossary
Answer: A, B, D
35.What is object in UML and how it is defined
36.During Use Case Analysis, an attribute should be used instead of a class when the

information
37.Which view is NOT part of the RUP 4+1 View Model?
38.What are two functions of visual modeling? (Choose two.)
39.During Use Case Analysis, why are analysis mechanisms used?
40.Define Pattern
41.During Use Case Analysis, why is it sometimes necessary to supplement the use-case

description?
42.In Use Case Analysis, what is the purpose of the Unify Analysis Classes step?
43 . Which three processes are best suited for UML? (Choose three.)
A. use-case driven
B. waterfall development-based
C. iterative and incremental
D. architecture-centric
E. requirements-centric
Answer: A, C, D

QUESTION 44
Architectural layers are commonly modeled in UML using a _____
A. package stereotyped <>
B. subsystem stereotyped <>
C. composite class stereotyped <>
D. class diagram entitled Layer
Answer: A
QUESTION 45
In a state diagram, a state has two transitions. One of the transitions is an internal transition

and the other is an external transition. Which state(s) can perform an exit action?
46.Define Use case Driven Process
47.Which is the primary function of entity classes?
48.Which is a UML general-purpose mechanism for organizing elements into groups?
49.During Use Case Analysis, how many interaction diagrams (sequence or communication)

should be drawn for each use-case?
50.In Use Case Analysis, what is the flinction of boundary classes?

Tuesday, January 13, 2009

To do

Find the string position wihihc needs to be extracted

இங்கிலீஷ் தமிழ்

Grammer
அவன் இருந்தால் அவனிடம் கொடுப்பேன்

Monday, January 12, 2009

Code Gen from DDL

Convert the below DDL to Java/PHP Code
/**
** atm.sql
** $Revision: 1.1 $
** $Log: atm.sql,v $
** Revision 1.1 2004/08/23 20:22:55 vz86k2
** check in
**
**/


/**
** ATM_VENDOR Table
**/

DROP TABLE ATM_VENDOR CASCADE CONSTRAINTS;

CREATE TABLE ATM_VENDOR (
VENDOR_ID NUMBER(10) NOT NULL,
NAME VARCHAR2(50) NOT NULL
);
ALTER TABLE ATM_VENDOR
ADD ( PRIMARY KEY (VENDOR_ID) );

DROP SEQUENCE ATM_VENDOR_SEQUENCE;
CREATE SEQUENCE ATM_VENDOR_SEQUENCE START WITH 100;

/**
** ATM_USER Table
**/

DROP TABLE ATM_USER CASCADE CONSTRAINTS;

CREATE TABLE ATM_USER (
USER_ID NUMBER(10) NOT NULL,
NETID VARCHAR2(8) NOT NULL
);

ALTER TABLE ATM_USER
ADD ( PRIMARY KEY (USER_ID) );

DROP SEQUENCE ATM_USER_SEQUENCE;
CREATE SEQUENCE ATM_USER_SEQUENCE START WITH 100;

/**
** ATM_USER_ROLE Table
**/

DROP TABLE ATM_USER_ROLE CASCADE CONSTRAINTS;

CREATE TABLE ATM_USER_ROLE (
ROLE_ID NUMBER(10) NOT NULL,
ROLE VARCHAR2(30) NOT NULL
);

ALTER TABLE ATM_USER_ROLE
ADD ( PRIMARY KEY (ROLE_ID) );

DROP SEQUENCE ATM_USER_ROLE_SEQUENCE;
CREATE SEQUENCE ATM_USER_ROLE_SEQUENCE START WITH 100;

/**
** ATM_USER_ROLE_TO_USER Table
**/

DROP TABLE ATM_USER_ROLE_TO_USER CASCADE CONSTRAINTS;

CREATE TABLE ATM_USER_ROLE_TO_USER (
ROLE_ID NUMBER(10) NOT NULL,
USER_ID NUMBER(10) NOT NULL
);

ALTER TABLE ATM_USER_ROLE_TO_USER
ADD ( PRIMARY KEY (ROLE_ID, USER_ID) );

CREATE INDEX ATM_USER_ROLE_TO_USER_INDEX ON ATM_USER_ROLE_TO_USER
(
USER_ID ASC
);

ALTER TABLE ATM_USER_ROLE_TO_USER
ADD ( FOREIGN KEY (USER_ID)
REFERENCES ATM_USER );


ALTER TABLE ATM_USER_ROLE_TO_USER
ADD ( FOREIGN KEY (ROLE_ID)
REFERENCES ATM_USER_ROLE );

/**
** ATM_CODE Table
**/

DROP TABLE ATM_CODE CASCADE CONSTRAINTS;

CREATE TABLE ATM_CODE (
CODE_ID NUMBER(10) NOT NULL,
CODE_GROUP VARCHAR2(50) NOT NULL,
VALUE VARCHAR2(100) NOT NULL
);

ALTER TABLE ATM_CODE
ADD ( PRIMARY KEY (CODE_ID) );

DROP SEQUENCE ATM_CODE_SEQUENCE;
CREATE SEQUENCE ATM_CODE_SEQUENCE START WITH 100;

CREATE INDEX ATM_CODE_INDEX_2 ON ATM_CODE
(
CODE_GROUP ASC
);

/**
** ATM_PRODUCT Table
**/

DROP TABLE ATM_PRODUCT CASCADE CONSTRAINTS;

CREATE TABLE ATM_PRODUCT (
PRODUCT_ID NUMBER(10) NOT NULL,
VENDOR_ID NUMBER(10) NOT NULL,
NAME VARCHAR2(100) NOT NULL,
DESCRIPTION VARCHAR2(255) NOT NULL,
CATEGORY_CD_ID NUMBER(10) NOT NULL,
ACQUISITION_METHOD VARCHAR2(255) NOT NULL,
LICENSE_PRICE DECIMAL(12,2) NOT NULL,
MAINTENANCE_COST DECIMAL(12,2) NOT NULL,
EXT_MAINTENANCE_COST DECIMAL(12,2) NOT NULL,
LICENSE_TYPE_CD_ID NUMBER(10) NOT NULL,
LICENSE_QUANTITY NUMBER(10) NOT NULL,
TOTAL_COST DECIMAL(10,2) NOT NULL,
LICENSE_OWNER_CD_ID NUMBER(10) NOT NULL,
LICENSE_RENEWED_CD_ID NUMBER(10) NOT NULL,
LICENSE_RENEWED_BY_DT DATE NOT NULL,
TOOL_STATUS_CD_ID NUMBER(10) NOT NULL,
PRODUCT_COMMENT VARCHAR(512) NOT NULL
);

ALTER TABLE ATM_PRODUCT
ADD ( PRIMARY KEY (PRODUCT_ID) );

DROP SEQUENCE ATM_PRODUCT_SEQUENCE;
CREATE SEQUENCE ATM_PRODUCT_SEQUENCE START WITH 100;

ALTER TABLE ATM_PRODUCT
ADD ( FOREIGN KEY (VENDOR_ID)
REFERENCES ATM_VENDOR );

ALTER TABLE ATM_PRODUCT
ADD ( FOREIGN KEY (CATEGORY_CD_ID)
REFERENCES ATM_CODE );

ALTER TABLE ATM_PRODUCT
ADD ( FOREIGN KEY (LICENSE_TYPE_CD_ID)
REFERENCES ATM_CODE );

ALTER TABLE ATM_PRODUCT
ADD ( FOREIGN KEY (LICENSE_OWNER_CD_ID)
REFERENCES ATM_CODE );

ALTER TABLE ATM_PRODUCT
ADD ( FOREIGN KEY (LICENSE_RENEWED_CD_ID)
REFERENCES ATM_CODE );

ALTER TABLE ATM_PRODUCT
ADD ( FOREIGN KEY (TOOL_STATUS_CD_ID)
REFERENCES ATM_CODE );

/**
** ATM_PROJECT Table
**/

DROP TABLE ATM_PROJECT CASCADE CONSTRAINTS;

CREATE TABLE ATM_PROJECT (
PROJECT_ID NUMBER(10) NOT NULL,
NAME VARCHAR2(50) NOT NULL
);

ALTER TABLE ATM_PROJECT
ADD ( PRIMARY KEY (PROJECT_ID) );

DROP SEQUENCE ATM_PROJECT_SEQUENCE;
CREATE SEQUENCE ATM_PROJECT_SEQUENCE START WITH 100;

/**
** ATM_PRODUCT_TO_PROJECT Table
**/

DROP TABLE ATM_PRODUCT_TO_PROJECT CASCADE CONSTRAINTS;

CREATE TABLE ATM_PRODUCT_TO_PROJECT (
PRODUCT_ID NUMBER(10) NOT NULL,
PROJECT_ID NUMBER(10) NOT NULL
);

ALTER TABLE ATM_PRODUCT_TO_PROJECT
ADD ( PRIMARY KEY (PRODUCT_ID, PROJECT_ID) );

ALTER TABLE ATM_PRODUCT_TO_PROJECT
ADD ( FOREIGN KEY (PRODUCT_ID)
REFERENCES ATM_PRODUCT );


ALTER TABLE ATM_PRODUCT_TO_PROJECT
ADD ( FOREIGN KEY (PROJECT_ID)
REFERENCES ATM_PROJECT );

English Learn a new Word

1)Indulge - Spoil (21/12/2009)

2)Pledge - Promise (21/12/2009)
I Pledge to live by company values

3)relentless - persistent (21/12/2009)
Example : Behind the contract there is and relentless team.

4.)Snap - Break (21/12/2009)
Example : Vaiko dont want to Snap AIADMK relation

29/12/2009
===========
5) Vain : Unproductive of success.
Jeyasurya's 100 in first Test went vain.

6) Speculation - Guess

7) Conviction - strong beleive
(An unshakable belief in something without need for proof or evidence)

Sentense : no Speculation pure Conviction (a stement by CIBIL)

8)Refrain - avoid doing (30/12/2009)
Example : I am going to refrain from falling into that trap.

9)Scary- frightening- fearsome
Example - It was a scary thought to go and work somewhere else.

10)depicts - show , describe (04/02/2009)
"This scene depicts country life"

11)enmity - un friendly
“Ramadoss trying to create enmity between me and Centre”

12)India clinches series with a thumping win

Friday, January 9, 2009

Un completed task

Extract Multiple line Using regular expresion by PHP

Monday, January 5, 2009

On Line Test Creator

How to covenvert the below questions into SQL Insert Statement using regular expression

QUESTION 31

What is the purpose of the Identify Design Mechanisms activity?
A. to refine the analysis mechanisms and specify the exact implementation of the mechanism
B. to provide a conceptual set of services that is used by analysis objects
C. to refine analysis mechanisms into design mechanisms, based on the constraints imposed by the implementation environment
D. to define design placeholders in the architecture so the architecting effort remains focused and is less likely to become sidetracked
Answer: C

Tech detail required in regular expression :

1.Create a class
2.Find match for required string
3.Read line and store in class



Logic :

Read Line till the EOF
Find Question :
Check for the word “Question “ and a “Numeric Value”.
If true then split question and Question Number by using “Question Symbol” or “A.”.


Find Answer description :
Continue reading lines and splits answers by using “A.”. “B.”. “C.”. “D.”. until it finds a word with “Answer:”

Find Answer :

Split the line which contains Answer: into the words Answer: and Answers Symbols.

Note : Multiple answers considered as same word.
Assumption In multiple choice questions answer notation are stored in Sorted order.



Class Question
{
int question_topic;
int question_number;
String question;
}
Class Answers
{
int question_topic;
int question_number;
String answer;
String correct_answer;
}


Tech Detail :
Parse Question :
Set int question_topic; int question_number; String question; into Question Object

Answer : Looping till find “Answer:” and Parse Answers :
set int question_topic; int question_number; String answer; String correct_answer; into Answers object.

Notes :
1 to many
Has a
Composite

Approach 1 :
read line by line.

Issue :
If question contains more than one line It won't handled

Approach 2 :
Read Question by question

Analyse :
How to read question by question

Issue :
If question contains more than one line It won't handled


Approach 3 :

read line by until it a question completes. Use String tokeniser, string existence and manipulate