Professional Documents
Culture Documents
www.questpond.com
Visit www.questpond.com for more downloads
Books written by Shivprasad Koirala
-- .NET Interview questions
-- SQL Server Interview questions
-- Java Interview questions
-- How to prepare software quotation?.( This book is on estimationyou
can get it from www.questpond.com as free download)
-- C# Projects
-- Software testing Interview questions
-- Understanding Hackers Mind
You can order any of my books from bpb@bol.net.in
www.questpond.com
Contents
Introduction.................................................................................85
Software Company hierarchy.............................................................................................................89
Salary Negotiation..............................................................................................................................93
Points to remember.............................................................................................................................95
What is a CLR?..................................................................................................................................98
What is a CTS?...................................................................................................................................98
What is a Assembly?..........................................................................................................................99
What is NameSpace?.......................................................................................................................100
What is Manifest?............................................................................................................................102
Twist :- What are situations when you register .NET assembly in GAC ?.......................................103
Twist :- How do we generate strong names or what is the process of generating strong names, Whatis use the
of SN.EXE , How do we apply strong names to assembly, How do you sign an assem-
bly?.............................................................................................................................................103
What is reflection?............................................................................................................................109
We have two version of the same assembly in GAC? I want my client to make choice of whichassembly to
choose?...................................................................................................................116
What is CodeDom?...........................................................................................................................124
2..NET Interoperability............................................................128
How can we use COM Components in .NET?..............................................................................128
Once I have developed the COM wrapper do I have to still register the COM in registry?...........129
Twist :- What is CCW (COM callable wrapper) ?, What caution needs to be taken in order that
.NETcomponents is compatible with COM ?......................................................................................129
3. Threading..............................................................................142
What is Multi-tasking ?....................................................................................................................142
How can we change priority and what the levels of priority are provided by .NET ?.....................143
What are Daemon threads and how can a thread be created as Daemon?.......................................146
When working with shared data in threading how do you implement synchronization ?..............146
What are two different types of remote object creation mode in .NET ?........................................151
What are the situations you will use singleton architecture in remoting ?.....................................156
What are the ways in which client can create object on server in CAO model ?............................156
In CAO model when we want client objects to be created by “NEW” keyword is there any precau-tions to be
taken ?.......................................................................................................................157
How can you specify remoting parameters using Config files ?.....................................................160
Twist :- What are the limitation of constructors for Single call SAO ?...........................................162
What is WSDL?...............................................................................................................................165
Following are the different steps needed to get a proxy object of a webservice at the client side :-165
Which attribute is used in order that the method can be used as WebService ?...............................167
What are the steps to create a webservice and consume it ?...........................................................167
5. Caching Concepts.................................................................178
What is an application object ?.......................................................................................................178
What’s the difference between Cache object and application object ?............................................178
Can you show a simple code showing file dependency in cache ?..................................................179
How can you cache different version of same page using ASP.NET cache object ?......................180
What are ASP.NET session and compare ASP.NET session with classic ASP session variables?181
What are the precautions you will take in order that StateServer Mode work properly ?..............182
What are the precautions you will take in order that SQLSERVER Mode work properly ?..........182
What are the other ways you can maintain state ?...........................................................................183
Does the performance for viewstate vary according to User controls ?.........................................184
What are benefits and Limitation of using Viewstate for state management?................................184
How can you use Hidden frames to cache client data ?..................................................................185
6. OOPS.....................................................................................200
What is Object Oriented Programming ?........................................................................................200
Note:- Difference between abstraction and encapsulation is one of the favorite interview questionand quiet
confusing as both the terminology look alike. Best is if you can brainstorm with yourfriends or do a little
reading.......................................................................................................200
In below sample code if we create a object of class2 which constructor will fire first ?................217
How do I force the Dispose method to be called automatically, as clients can forget to call
Disposemethod?......................................................................................................................................220
If we write a goto or a return statement in try and catch block will the finally block execute ?....221
In a program there are multiple catch blocks so can it happen that two catch blocks are executed ?221
What is the difference between System.String and System.StringBuilder classes?........................221
7. ASP.NET................................................................................222
What’ is the sequence in which ASP.NET events are processed ?..................................................222
Administrator wants to make a security check that no one has tampered with ViewState, how can heensure
this ?................................................................................................................................223
Can you explain in brief how the ASP.NET authentication process works?...................................227
How to decide on the design consideration to take a Datagrid, datalist or repeater ?....................232
How can we check if all the validation control are valid and proper ?............................................236
If client side validation is enabled in your Web page, does that mean server side code is not run?236
Which JavaScript file is referenced for validating the validators at the client side ?.......................236
How can I show the entire validation error message in a message box on the client side?.............237
You find that one of your validation is very complicated and does not fit in any of the validators,what will you
do ?......................................................................................................................237
ASP used STA threading model, what is the threading model used for ASP.NET ?........................245
If cookies are not enabled at browser end does form Authentication work?...................................248
8..NET Architecture..................................................................257
What are design patterns ?...............................................................................................................257
Twist: - How to implement cloning in .NET ? What is shallow copy and deep copy ?....................264
What are the situations you will use a Web Service and Remoting in projects?..............................264
Have you ever worked with Microsoft Application Blocks, if yes then which?..............................267
What are different ways you can pass data between tiers?..............................................................270
9. ADO.NET..............................................................................281
What is the namespace in which .NET has the data functionality classes ?...................................281
Can you give a overview of ADO.NET architecture ?....................................................................281
What are major difference between classic ADO and ADO.NET ?.................................................283
What is the use of command objects and what are the methods provided by the command object ?284
How do we use stored procedure in ADO.NET and how do we provide parameters to the
storedprocedures?.................................................................................................................................291
How can we force the connection object to close after my datareader is closed ?.........................292
I want to force the datareader to return only schema of the datastore rather than data ?................292
How can we fine tune the command object when we are expecting a single row or a single value ?292
What are the various methods provided by the dataset object to generate XML?...........................294
How can we check that some changes have been made to dataset since it was loaded ?...............295
Twist :- How can we cancel all changes done in dataset ? How do we get values which are changedin a
dataset ?..............................................................................................................................295
Can you explain the difference between an ADO.NET Dataset and an ADO Recordset?...............300
..........................................................................................................................................................300
What are the different types of joins? What is the difference between them ?...............................306
What are indexes? What is the difference between clustered and nonclustered indexes?...............307
Twist :- Can you explain the star schema for OLAP ?.....................................................................309
What is DTS?....................................................................................................................................309
What is the difference between DELETE TABLE and TRUNCATE TABLE commands?.............311
What are the problems that can occur if you do not implement locking properly in SQL SERVER ?311
What are the different ways of moving data/databases between servers and databases in SQL Server?315
What is the difference between UNION and UNION ALL SQL syntax ?......................................317
How can you raise custom errors from stored procedure ?..............................................................317
What is DBCC?...............................................................................................................................320
What are the different types of replication supported by SQL SERVER ?.....................................323
What are the different types of triggers in SQl SERVER 2000 ?.....................................................325
If we have multiple AFTER Triggers on table how can we define the sequence of the triggers ?..326
What is the difference between Stored Procedure (SP) and User Defined Function (UDF)?..........327
11. UML.....................................................................................342
What is UML?.................................................................................................................................342
Twist: - What is the difference between Activity and sequence diagrams?(I leave this to the readers)364
Spiral Model.....................................................................................................................................371
Twist: - What metrics will you look at in order to see the project is moving successfully?.............377
You have people in your team who do not meet there deadlines or do not perform what are theactions you will
take ?................................................................................................................380
Twist :- Two of your resources have conflicts between them how would you sort it out ?...............380
What’s the difference between Unit testing, Assembly testing and Regression testing?................381
What is CMMI?................................................................................................................................386
13. XML.....................................................................................426
What is XML?..................................................................................................................................426
What is XSL?....................................................................................................................................428
In What scenarios will you use a DOM parser and SAX parser?....................................................433
What is the main difference between MSML and .NET Framework XML classes?.......................433
What are the core functionalities in XML .NET framework? Can you explain in detail
thosefunctionalities?...........................................................................................................................433
What is XSLT?.................................................................................................................................434
Define XPATH?................................................................................................................................435
What is XMLTextReader?................................................................................................................436
14. Localization/Globalization.................................................441
What is Unicode and why was it introduced?..................................................................................441
What architecture decisions you should consider while planning for international software’s?.....443
How do we get the current culture of the environment in windows and ASP.NET?......................445
Can resource file be in any other format other than resx extensions?.............................................450
How is resource files actually used in project?................................................................................450
Can we get a strongly typed resource class rather than using resource manager?...........................456
Can we change the order in a select query with a specified collation sequence?............................461
What are the best practices to be followed while implementing globalization and localization?....461
Address book....................................................................................................................................466
Mini-job site.....................................................................................................................................467
Chat application................................................................................................................................473
Reminder Application.......................................................................................................................474
Estimation.........................................................................................................................................478
Assumption Sections........................................................................................................................481
Architecture approach......................................................................................................................481
ER Diagram......................................................................................................................................482
Database Layer.................................................................................................................................482
Business Layer..................................................................................................................................490
Presentation Layer............................................................................................................................494
Test plans..........................................................................................................................................499
Source code......................................................................................................................................501
ffd8ffe000104a4649460001020100c800c80000ffe20c584943435f50524f46494c4500010100000c484c696e6
f021000006d6e74725247422058595a2007ce00020009000600310000616373704d5346540000000049454320
735247420000000000000000000000000000f6d6000100000000d32d485020200000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000001163707274000001500
000003364657363000001840000006c77747074000001f000000014626b707400000204000000147258595a00
000218000000146758595a0000022c000000146258595a0000024000000014646d6e640000025400000070646
d6464000002c400000088767565640000034c0000008676696577000003d4000000246c756d69000003f80000
00146d6561730000040c0000002474656368000004300000000c725452430000043c0000080c6754524300000
43c0000080c625452430000043c0000080c7465787400000000436f7079726967687420286329203139393820
4865776c6574742d5061636b61726420436f6d70616e790000646573630000000000000012735247422049454
336313936362d322e31000000000000000000000012735247422049454336313936362d322e31000000000000
000000000000000000000000000000000000000000