Professional Documents
Culture Documents
NET basics
IL code
JIT(just in time)
CLR
CTS
CLS
CAS
What has happed for CAS .NET 4.0 ?
Manifest
Delay signgin
sn.exe
Stack , heap
boxing , unboxing
Does unboxing and boxing bring down performance ?
How can we avoid Boxing and unboxing ?
Garbage collector
How does the GC run
Does garbage collector clean unmanaged code ?
OOP
Important principles
Abstraction
Polymprphism
Method overloading
What are the different ways of overloading
Dynamic polymorphism
Static Ploymorphism
What is a interface
operator overloading
Delegates
create and invoke a delegate
Use of delegate
Events
Asynchronous delegates
covariance and contravariance(.net 4.0)
Shadowing
Hashtable
Stacks and Queues
Are there any performance problems with normal .NET
collection ?
GAC
satellite assembly
Delay signing
Generics
What is reflection ?
What is Serialization ?
ASP.NET and Webservices
Objects in ASP.NET
Autoeventwireup
Autoeventwireup
IIS , PORTS and Website
Application pool concept
.ASHX
HttpModule
Create a HttpModule
Create a HttpHandler
What is a viewstate ?
What is difference between viewstate and session
variables ?
What are the problems with viewstate
What is web farm ?
What is a loadbalancer?
Autopostback
Ispostback
Configuration setting in web.config
Authentication
Authorization
How do you know the user logged in to ASP.NET
system ?
What are different ways of authentication and
authorization
Single sign on
How can we implement Single sign on ?
Ajax
What is updatpanel
What is Jquery ?
Normalization
Normalization
Denormalization
Indexes
Balance tree
Clustered indexes
Non-Clustered indexes
Stored procedures
Functions
profiler
optimzation
sql plan
sql server locking
SQl injection
How can you avoid SQL injection
SSIS
SSRS
SSAS
Difference between delete and truncate ?
ADO.NET
Problems of Locking
Pessimistic locking
Scnearios of pessimistic and optimistic
What is a transaction ?
Connection pooling
Reporting
Where do you get Crystal reports ?
What is Appdomain ?
what is a webservice ?
How can we do webservice security
What is WSDL ?
What is SOAP ?
Why WCF ?
What is WCF ?
WCF Transport
WCF REST
WCF integration
LINQ and EF 4.0
What is LINQ
What is a Entity class
What is silverlight ?
Architecture of Silverlight
Animation fundamentals in Silverlight
WWF
WWF architecture
Composite and leaf activities
Sequential and State machine work flow
Simple example of WWF
State machine work flow
Design patterns
Design patterns
What are the categories of Design patterns
Factory pattern©
Abstract Factory Pattern
Builder Pattern
Prototype Pattern
Where is prototype used ?
Singleton Pattern
DIIOCConcept Pattern
How is MVP
Class Digrams
Conditcion
Message branching
Collaboration Diagrams
Activity Diagram
Functionpoints
Introduction
EI Fundamentals
EO Fundamentals
EQ Fundamentals
EIF Fundamentals
ILF Fundamentals
GSC Fundamentals
Productivity Factor
How did you reconcile
How did you accommodate SDLC
RUP
What is Agile
How did you do Agile
Values types int , double , bool etc , Reference types objects and
strings. Value types are allocated on stack and reference types are
allocated on heap. Value types are stored on different memory
locations while reference types point to the same memory location
They are memry types .Stack has value types , heap has reference
types
Box - Convert from value to reference , unboxing - reference type to
value
yes they do bring down performance because data has to jump
between heap and stack memory types.
You can not avoid it just minimize it
Age of the objects.Gen 0 has newly created objects , gen 1 has objects
which are bit older , while gen 2 has objects which is more older
than gen 1.This is for GC optimization , garbage collector checks Gen 0
frequently rather than Gen 1 and Gen 2.
Class -> Blue print , template , Objects -> Bring life in Class , they make
them live
Hide the complexity and make your object simple for external world.
Encapsulation is implemented by using access modifiers
yes , namespace are logical grouping of classes they can span
Show only what is necessary and its more a thought process and
abstraction is implemented by encapsulation
Abstraction is OOPs concept and Abstract classes is half defined
classes
Abtsraction complement Encapsulation , Encapsulation implements
abstraction
You can have same method name with different number / types of
parameters and depending on different parameters and types the
appropriate functions will be invoked.
types , order , ref m out … do it
Method overriding and Virtual. You point your parent class object to
child class objects to fire the necessary implementation on runtime.
Even interfaces can be used to implement dynamic polymorphism
Method Overloading , we call same method with different input
parameters
Its looks like a class but has no implementation. It has only empty
definition of methods , functions, events , indexer.
Yes
No
Abstract no implementation and virtual has implementation
Half defined parent class / base class and child classes provide
concrete implementation, like a generalization and specialization
Regex is nothing pattern matching and then validating the data using
the pattern
To share the assembly across multiple application in the same
computer (C:\WINDOWS\assembly)
Give strong name to DLL by click on the signing tab -- second you use
thr GACUTIL -I to register the assembly in GAC
Use Bindingredirect , Oldversion and newversion
It’s a compiled DLL which has images , text files any resource files. In
other words no can tamper with your images , text files , icons etc.
Its to increase reusability by seperating logic and data type and its
strong typed.
You would like your IIS processes to run on different processors of the
machine rather than loading only one processor.
Substituion control.
location = server , downstream , client
They help to create global objects in Asp.Net application.
In cache we can define dependency while application objects we can
not define depedency.
you can define 3 kins of dependency file , time and key. If these
dependencies change then the cache object becomes null.
No Cachdepedency does not have automation , we need to write t he
code of refresh and reload.
When your user control sends data to the server postback event
happens
When you want to send data to server as soon as the value changes in
the control. It’s a simple property which we need set on the control.
It’s a page property tpo check if the postback has happened or not
in the appsettings
Ticket is a identification saying that you are a valid user. By using ticket
you do not need to send userid and password again and again. Userid
and password are sent first time , ticket is generated and later this
ticket identifies your security role and rights.
In this the users are validated from windows local users and groups.
In this the users are validated from microsoft sites like hotmail ,
devhood , MSN etc , ticket is generated and that ticket can be used to
do authentication . Autho in your web application.
Trace=true
our debugging is shown to the end users , so we need to use
tracelisteners
In Ajax we can have only one scropt manager. But there are condition
like master pages where we would need two script manager
This enables asynchrounous processing
In Script manager proxy give asp:servicereference and give ASMX
path and use javascript to call the objects
Jquery is javascript library to make your javascript development
simpler.
3 normal form , 1st normal form Break is Smallest unit , 2nd normal
form any repetitive data should be moved to a separate table and
forigen key , 3rd normal form Any non key field should not depend on
other non key fields of the table
Its combining multiple table data in one table thus avoiding joins for
performance imporvement ex - reporting applications
Normalization ( integrity , avoide redudant) and denorm ( faster
treival , reporting etc)
Indexes helps to make your search faster by using balance tree( B
tree) concept
It’s a tree structure with leaf nodes having actual data , non leaf node
and root node. So rather than browsing through records sequentially
it zeroe's on range of records , this making your search faster
The leaf node points to actual data
Leaf node points to a pointer and that pointer points to actual data
You will choose fields with unique values as clustered indexes while
fileds which participate in search criterias you will select them as non-
clustered indexes.
SELECT *
FROM Customer INNER JOIN
CustomerPaid ON Customer.Id = CustomerPaid.Id
union
SELECT *
FROM Customer left JOIN
CustomerPaid ON Customer.Id = CustomerPaid.Id
union
SELECT *
FROM Customer right JOIN
CustomerPaid ON Customer.Id = CustomerPaid.Id
Stored procedures are SQL Server objects which have one or many
SQL statements
They are precompiled and thus increases perforance ( parsing , plan
and then execution)
Trigers are logic which you want to execute insert , delete and update
operation on a table
After trigger ( fires after the operation )and instead of trigger ( before
the operation). Operation means insert , update delete
It’s a simple listerner tool which tracks what kind of SQL statements
are fired on your SQL server and using it you can do debugging and
improve performance depending on the trace file
Create indexes ( balance tree), SQL Plan ( Table scan or Index scan) ,
SQL profiler and Data tuning advisor for getting suggestion of indexes
Describes how your SQL statements will execute.
set isolation level read committed etc etc in stored procedure
It is a Form of attack on a database-driven Web site in which the
attacker executes unauthorized SQL commands by taking advantage
of insecure code on a system.
use stored procedures and avoid on the fly SQL concatenation.
Pessimistic means locks are acquired when the record is fetched until
the updation and optimisitic means locking is acquired when the data
is updated
dataset and dataadapter by default supports optimistic locking ,
timestamp,checking old values and new values
When you have group of statements . Process doing insert update and
delete , you would want either all of them pass or either all of them
fail.
call begintransaction in connection object , committransaction or
rollback, in stored procedure begin tran tr1 and commit tr1
Reuse the connection object rather than reusing from scratch.In
connection string specify pooling=true
dataset is collection of tables with relationship and recordset has only
tables
Paramater collection of command object
Command builder.
[ServiceContract]
interface ICalculator
{
[OperationContract(Name="AddIntegers")]
int Add(int a,int b)
[OperationContract(Name="AddDouble")]
double Add(double a,double b)
}
Helps to expose your WCF service via simple HTTP get and post
It’s the data connection layer to load the entity object with data
Entity set for 1 to many and entity ref for 1 to 1
It’s a plugin which runs inside the browser. It can run on cross
platform and cross browser.
Stack panel ( one above another ),Canvas ( we specify left and top),
Grid ( If you want layouting using table structure , rows and columns)
One way ( UI to BO), two way( UI <-> BO) and one time( BO to UI).
One time binding - reports , Transaction screens two way , Pure input
screen one way.
You can not call System.data directly from silverlight , so you need to
call the WCF service and WCF service will do the necessary data
operations
So pick your best pattern corelate it with your project and speak
about it. Share global fdata
Design patterns are tried and tested solutions for design problems in
our project.
Creational , Structural and Bheviorial
Hit come to UI first , from there he calls presenter clas , presenter call
the model and present then send updates via a interface to the UI. UI
--> I --> P - M
First hit to the UI , First hit to the controller/MVP presenter takes care
of logic , controller takes care of logic as well as statmanagement
Step 1 :- We identified the task which where nothing but our use
cases , Step 2 :- For every use case we wrote down main scenario /
alternate scenario and actors responsible
Primary actors are the users who are the active participants and they
initiate the use case, while secondary actors are those who only
passively participate in the use case.
Company Template in word document
By Extend and include
We has already gathered the requirement using use cases and also
relationships where between them using the include and extend, we
use these use cases and identified nouns ( classes) and verbs ( they
became our methods and functions) , relation ship between classes
where identified by extend and include of use cases. Later for
complex scenario we use Sequence diagram / Collobaration. We also
had a over all architecture diagram which depicted hardware ,
components and logical grouping by using Component , Deployment
and package.
Class diagrams shows the static structure of project. They help us
visualize the classes and relationships between them
Its denoted with square divided in to 3 section , top section has class
name , middle section has properties and last section has operation /
function / methods
LLD
Overall detail architecture diagram
Class diagrams ,
Object diagrams ,
Sequence / Collaboration ,
DB design
In depth test stratergy
Psedu-code
Practice for students
Create a simple windows screen , which has
supplier name , supplier code , supplier date ,
button calculate payment date , supplier date + 1
month
Create a simple project with page1.aspx and
page2.aspx , create a simple buttong and in the
button click redirect from page1.aspx to
page2.aspx in the button click event
dev
dev
dev
dev
declare @count1 int
set @count1= dbo.getfunctioncount()
print(@count1)
It’s a internal ATM management system in
ASP.NET which has various functionalities
creating Contracts , Customer report , hand bills ,
Scheduling etc.
JSP and servlets
Struts 1.x/2 (MVC)
Spring (MVC)
Java Server Faces (rich faces)
Hibernate (ORM)
JPA (ORM)
EJB (persistance)
JAXB ( parsing XML)
JDOM (parsing xml)
Java Fx
SCM tools
Apache ant
Maven
Svn repository
CVS repository
Database
Oracle
Sybase
PostgreSQL
MySQL
Ms sql
Application servers:
IBM Web sphere
Jboss
Web logic
Unit testing:
JUNIT
test ng
Sproing unit
Cache solutions:
JBoss cache
EHCache
OS cache
PDF library:
itext
Reporting:
Jasper
BIRT
Actuate
Profilers:
JMeter
Infra red
// Step 4 :- Create dataset object and load it from Dataadapter
DataSet objdataset = new DataSet();
objDataadapter.Fill(objdataset);
// Step5 : use it
foreach (DataRow objrow in objdataset.Tables[0].Rows)
{
}
// step 6 Close it
obj.Close();
}