Monday, May 08, 2006

ASP.NET: Interview Questions

Hi, These are the typical questions that i usually asks while taking an ASP.NET specific interview. Hope these might help someone :)

*What is View State?
*Can you read the View State?
*What is the difference between encoding and encryption? Which is easy to break?
*Can we disable the view state application wide?
*can we disable it on page wide?
*can we disable it for a control?
*What is provider Model?
*Any idea of Data Access Component provided by Microsoft?
*Any idea of Enterprise library?
*What is web service?
*What is WSDL?
*Can a web service be only developed in asp.ent?
*can we use multiple web services from a single application?
*can we call a web service asynchronously?
*Can a web service be used from a windows application?
*What do we need to deploy a web service?
*What is the significance of web.config?
*Can we have multiple web.config files in a sigle web project?
*Can we have more then one configuration file?
*Type of Authentications?
*Can we have multiple assemblies in a single web project?
*What is GAC?
*What is machine.config?
*What different types of session state Management we have in asp.net?
*What are cookies?
*What is Cache?
*What is AJAX?
*Is AJAX a language?
*What is the difference between syncronus and asyncronus?
*What is an Assembly?
*Can an assembly contains more then one classes?
*What is strong name?
*What is the difference b/w client and server side?
*What we need for the deployment of a asp.net we application?
*what is the purpose of IIS?
*Difference between http and https?
*what is purpose of aspnet_wp.exe ?
*what is an ISAPI filter?
*what do you mean by HTTP Handler?
*What is the purpose of Global.asax?
*What is the significance of Application_Start/Session_Start/Application_Error?
*What is the difference between the inline and code behind?
*what is side by side execution?
*can we have two different versions of dot net frameworks running on the same machine?
*What is CLR? Difference b/w CLR and JVM?
*What is CLI?
*What is CTS?
*What is .resx file meant for?
*Any idea of aspnet_regiis?
*Any idea of ASP NET State Service?
*Crystal report is only used for read only data and reporting purposes?
*We can add a crystal report in aspx page using two techniques, what are these?
*What is the difference between stroed procedure and stored function in SQL?
*Can we have an updateable view in SQL?
*What is connection pooling? how can we acheive that in asp.net?
*What is DataSet?
*What is the difference between typed and untyped dataset?
*What is the difference bewteen accessing the data throgh the dataset and datareader?

Thanks,
Happy Interviewing.


49 comments:

Anonymous said...

hiiii.i am sravanthi.how can know answersfor these questions.will u please help me in this regard.

Basit Tanveer said...

Yea sure, you first give it a try, if you were unable to answer any then do let me know.

Anonymous said...

hi .. i was able to answer most of the questions but have not worked with web services b4

can u publish or give refrences to answers of theese questions ?

Anonymous said...

hi.. i m vinoth, can u plz send me the answers for those ques.. actually i m beginner for .Net Tech.. plz send me C#.Net ques too.. plz yaar i m expecting ur reply.. my id: vinomca@gmail.com

Anonymous said...

Please provide me with some c# and any .net related interview questions .Thanks in Advance


email:shashankbn@gmail.com

Basit Tanveer said...

I received an email from a person and he stats that:

"I saw your interview questions in http://basittanveer.blogspot.com/2006/05/aspnet-interview-questions.html

and was quite impresed by the same as i have appeared in I FLEX and all the uquestion in both the rounds were contained in this. Will you provide me an answer for these questions. I know tha answer for most of these but there are few for which I need an answer... as i could not nswer them during the interview."

"if you can help me get a job, plz.... I desperately need one."
______________________________________

And i replied to him along with the following answers, which i am also sharing with you.
______________________________________
1. What is the difference between encoding and encryption? Which is easy to break? Can we disable the view state application wide? can we disable it on page wide? can we disable it for a control?


Ans: encoding is easy to break, we can disable it page wide and control level.

2. Can you read the View State? Disadvantage of a view state. ( asked to me in IFLEX Solutions)

Ans: Yes we can read the view state since it is encoded using base64 string, so it is easy to break it, we also have view state decoders ( http://www.pluralsight.com/toolcontent/ViewStateDecoder21.zip)

3. What is provider Model? (asked to me in mindlogicx , salsoft)

Ans: Provider model means that microsoft has provided a set of interfaces, a new vendor just needs to implement them and write the functionality for their software to work with MS. example SQL provider model, ODBC provider model, MySQL proviuder model.

4. Any idea of Enterprise library?



http://www.dotnetjunkies.com/Article/29EF3A4F-A0C2-4BB2-A215-8F87F100A9F9.dcik



5. Can we have multiple web.config files in a sigle web project? ( asked to me in IFLEX Solutions, salsoft)



Ans: Yes we can have them for each sub folders in the web project main folder.



6. Can we have more then one configuration file?



Ans: yes



7. What is the difference between syncronus and asyncronus?



Ans: syncronus means you are waiting for the responce to come back, while in the asyncronus you start with the next staement and whenever the results come back a call back function is called.



8. Difference between http and https? what is purpose of aspnet_wp.exe ? what is an ISAPI filter? what do you mean by HTTP Handler?



Ans: https means it is using SSL, aspnet_wp is the worker process that handles all the asp net requests, ISAPI filter helps the iis in identifying the request type and forwarding it to the appropriate handler.



9. what is side by side execution?



Ans: It means that we can have two dot net version running on the same server machine, and the application build in asp.net 1.1 will be server by dot net framework 1.1 and the applications build in asp.net 2.0 will be server by dot net framework 2.0.



10. can we have two different versions of dot net frameworks running on the same machine?

Ans: yes



11. Can we have an updateable view in SQL?

Ans: Yes

12. What is the difference between typed and untyped dataset?

Ans: typed data set contains the inforation of the db/table structure

13. We can add a crystal report in aspx page using two techniques, what are these?

Ans:
1> embaeded in assembly
2> outside the assembly

Anonymous said...

sir,

i have interview this week-end, if u give me the answers it will be very useful.some of them are known to me.. but some i cant,please mail me if possible at umakarthikeyani@gmail.com else post so that it will be useful for everyone

Anonymous said...

sir , can i get the answer of the question as i am facing difficulty to answer them in correct & proper way

Anonymous said...

sir can i get the answer of these question as imam facing much problem whilwe answring these my email is swati_111000@yahoo.co.in

Anonymous said...

I have interview this week-end, if u give me the answers it will be very useful.I find difficult with many questions, so kindly mail me if possible at mail2elan@gmail.com or else post so that it will be useful sir

Anonymous said...

hi guys.
well any body wants to know the answers ..can ask me seperatly at er_ni_itn@hotmail.com
enjoy!!

Anonymous said...

hi,i am new to .net, can you help me in posting the answers to these questions and other .net (c# or VB) interview questions.

Anonymous said...

Sir,

Ur interview questions are quite useful,But I could not answer many. Iam likely to have an technical interview by this week end so can u please publish the answer in the page or mail me at kuppsc@yahoo.com.

Anonymous said...

I have interview this week. COuld you send me the answer to xg_huang@yahoo.com? Thanks,

Anonymous said...

Can u please please send the answers to this id:
cvsreekar@gmail.com

Anonymous said...

Hi Basit,
your questions are really good.. Can u help me in answering these questions.
Can a web service be only developed in asp.ent?
*can we use multiple web services from a single application?
*can we call a web service asynchronously?
*Can a web service be used from a windows application?
*What do we need to deploy a web service?

Also, I will appreciate if u can give me more interview stuff in Web services.

My mail id is nigam_deepika@hotmail.com

Thanks

Anonymous said...

Can u please any one send me the answers to this id:
ravi.mkumar@gmail.com

Thanks..Good job Basit..

Anonymous said...

hi i am Anitha. I am DotNet beginner. I found these questions very useful for me to prepare for interviews. Thank you for your wonderful job.

anithaj.mca@gmail.com

saivp said...

hi....I am sai, can u plz send me the answers for ASP.Net Interview Questions.. actually i m beginner for .Net Tech.. please send me C#.Net ques too.. expecting ur reply.. my id: manvp19@gmail.com

Anonymous said...

hi.. i'm Raju, can u plz send me the answers for those questions. bcz i'll go to interview next week. so pls send me ASP.Net answer for those questions my email id rajuvaiko@gmail.com

Anonymous said...

hi i'm gajanan i saw ur interview question and really impressed can u provide the answers of these questions to the guys please it really helps them to face an interview

Anonymous said...

Hi, Im theja,
i felt that the questions are very useful for facing the interviews.
but if u provide with answers it is very useful for me. so pls send me the answers for those questions.
my mail id is theja27@gmail.com

SwordFish said...

What is View State?
view state is used to store the data in the controls on the page during postback
Can you read the View State?
yes we can read the view sate,
What is the difference between encoding and encryption? Which is easy to break?
encoding is form of transfering data over the network , encrytion is one form of encoding..

encoding is easy to break
Can we disable the view state application wide?
yes we can as follows
pages enableViewState="false"
can we disable it on page wide?
page enableviewstate="false"
can we disable it for a control?
TextBox id="txtCode" runat="server” EnableViewState="false"
What is provider Model?
provider Model is a interface designed by microsoft for different providers such as oracle,

access etc.. which need to be implemented in thier products for .net applciations to access

thier products..
Any idea of Data Access Component provided by Microsoft?
Data Access component is a datalayer designed by microsoft which is based on design pattersn

and an effective way of extracting data from the database, it a genric way of accessing any

database.
Any idea of Enterprise library?
Enterprise library is a collection of components designed by microsoft for the devolopers,

its code in dotnet languages for effective use in applications, it consists of effective way

of writing different layers of the application.
What is web service?
A web service is a collection of protocols and standards used for exchanging data between

applications or systems. Software applications written in various programming languages and

running on various platforms can use web services to exchange data over computer networks

like the Internet in a manner similar to inter-process communication on a single computer

What is WSDL?
WSDL (Web Services Description Language) is an XML-based language for describing Web

services and how to access them
WSDL or Web Services Description Language is an XML format for describing network services

as a set of endpoints operating on messages containing either document-oriented or

procedure-oriented information

Can a web service be only developed in asp.ent?
no
can we use multiple web services from a single application?
yes
can we call a web service asynchronously?
yes
Can a web service be used from a windows application?
yes
What do we need to deploy a web service?
we need to create a virtual directory in the iis, copy the asmx page, .disco file, config

file, and in hte bin directory place the dll.
What is the significance of web.config?
it contains the application specific configuration settings.
Can we have multiple web.config files in a sigle web project?
yes we can have , each in each directory of the application
Can we have more then one configuration file?
yes
Type of Authentications?
Forms Authentication
Windows Authentication
passport authentication
Can we have multiple assemblies in a single web project?
yes we can
What is GAC?
Gloabal Assembly cahce which contain assemblies shared by multiple applications
What is machine.config?
its configuration file which contain cofiguration settings common to all applications in a

system
What different types of session state Management we have in asp.net?
inproc and outproc, inproc is where the your webapplication itself takes care of storing the

state where this is useless in case of webfarm applications,

outproc is where u store the state in sql server external to your application, in the

web.config you have add the following tag to enable outproc

sessionState mode="SQLServer" stateConnectionString="tcpip=127.0.0.1:42424" _

sqlConnectionString="data source=127.0.0.1; integrated security=true" _ cookieless="false"

_ timeout="20"


What are cookies?
cookies are used one of the ways of storing the state of the user, the data of the user is

moved to and fro between the client and server, the cookies are generated by the server and

stored at the client end. and with each and every request the cookie is send to the server.
What is Cache?
cache is place of storage at the server end, wherein data can be stored at the server, cache

can be available at the page level or at the control level
diffrent cache mechanisam available are
Declarative Output caching - This is similar to declarative output caching in ASP.NET 1.x,

wherein you configure caching by specifying the OutputCache directive and their related

attributes.
Programmatic Output caching - In this method, you will use the SqlCacheDependency object

programmatically to specify the items to be cached and set their attributes.
Cache API - In this option, you will use the static methods of the Cache class such as

Insert, Remove, Add and so on to add or remove items from the ASP.NET cache, while still

using the SqlCacheDependency object to trigger the cache invalidation.

What is AJAX?
Ajax is asynchronus javascript and xml, its a way of making an asynchronus calls to the

server application.
Is AJAX a language?
ajax is a concept not a langauge.
What is the difference between syncronus and asyncronus?
syncronus, is where u make a request and wait for responce, whereas asynchronus is where u

make a request, and move ,, the response for the request may reach u later, where in u may

or may not handle the responce.
What is an Assembly?

The .NET assembly is the standard for components developed with the Microsoft.NET. Dot NET

assemblies may or may not be executable, i.e., they might exist as the executable (.exe)

file or dynamic link library (DLL) file. All the .NET assemblies contain the definition of

types, versioning information for the type, meta-data, and manifest. The designers of .NET

have worked a lot on the component (assembly) resolution.

There are two kind of assemblies in .NET; private and shared. Private assemblies are simple

and copied with each calling assemblies in the calling assemblies folder. Shared assemblies

(also called strong named assemblies) are copied to a single location (usually the Global

assembly cache). For all calling assemblies within the same application, the same copy of

the shared assembly is used from its original location. Hence, shared assemblies are not

copied in the private folders of each calling assembly. Each shared assembly has a four part

name including its face name, version, public key token and culture information. The public

key token and version information makes it almost impossible for two different assemblies

with the same name or for two similar assemblies with different version to mix with each

other.

An assembly can be a single file or it may consist of the multiple files. In case of

multi-file, there is one master module containing the manifest while other assemblies exist

as non-manifest modules. A module in .NET is a sub part of a multi-file .NET assembly.

Assembly is one of the most interesting and extremely useful areas of .NET architecture

along with reflections and attributes, but unfortunately very few people take interest in

learning such theoretical looking topics.

Anonymous said...

Hi am Immanuel,Can u please any one send me the answers to this id:
immanuel.cse@gmail.com

Thanks..Good job Basit..

Anonymous said...

cheif can any one send me answers to these questions at muzammil_m@yahoo.com, thanks in advance.

Anonymous said...

Please & please don't use such links as you are good professional.

prakashk said...

I have interview this week-end, if u give me the answers it will be very useful.So kindly mail me if possible at kanadeprakash@gmail.com or else post so that it will be useful sir

Unknown said...

it's really a good site.thanks basit for your great work.keep going buddy.

Anonymous said...

Hi Basit,

Fahim here can u pls provide me the answers for ASP.Net question.

PLease mail it on fahim_sk@hotmail.com

Thanks & Regards
Fahim

vijay said...

pls send me answer of these asp.net question in my mail singh_24bpl@yahoo.com, singh_24bpl@hotmail.com

i hope u reply as soon as possible

Unknown said...

i know some answers and some i don't know.where can i saw the answers.plz send the answers to
kiran.kik09@gmail.com

Unknown said...

i know some answers and some i don't know.where can i saw the answers.plz send the answers to
bhargavipulivarthi@gmail.com

Anonymous said...

hi .. i was able to answer most of the questions but have not worked with web services b4

can u publish or give refrences to answers of theese questions ?

shariff said...

nice.........

shariff said...

nice...

Anonymous said...

nice

Anonymous said...

Hi, sonal,
i felt that the questions are very useful for facing the interviews.
but if u provide with answers it is very useful for me. so pls send me the answers for those questions.
my mail id is sonalsoft05@gmail.com

i realy need all these questions with ans
thank you

Unknown said...

Hi, Im sonal,
i felt that the questions are very useful for facing the interviews.
but if u provide with answers it is very useful for me. so pls send me the answers for those questions.
my mail id is sonalsoft05@gmail.com

i realy need all these questions with answrs

Hemanth Morakonda said...

Hi,Iam krishna
i felt that the questions are very useful for facing the interviews.
but if u provide with answers it is very useful for me.can u pls send me the answers for those questions.
my mail id is krishnadhanekula@gmail.com

i realy need all these questions with answrs

Unknown said...

Hi sonal,
i felt that the questions are very useful for facing the interviews.
but if u provide with answers it is very useful for me. so pls send me the answers for those questions.
my mail id is kkveni3@hotmail.com
i realy need all these questions with answers
thank you
krish

krish said...

Hi sonal,
i felt that the questions are very useful for facing the interviews.
but if u provide with answers it is very useful for me. so pls send me the answers for those questions.
my mail id is kkveni3@hotmail.com

i realy need all these questions with ans
thank you
Krish

r4 firmware said...

We want more....we want more...........this isgonna help me a lot after 1yr when I will start facing interviews..........

Basit Tanveer said...

Krish and Sonal, i would suggest that you try to first get the answers yourself, then let me know the questions you are unable to answer i'll provide you with the solution.

Basit Tanveer said...

@Hemnath: I believe that you should try to attempt these question on your own as first attempt. Let me know the question you were unable to answer, i'll provide you with the answers.

Basit Tanveer said...

@r4 firmware: You want more question, i'll be posting few more questions so that this list keep on growing.

You can also look at these posts for others related questions.

http://basittanveer.blogspot.com/2006/09/c-interview-questions.html

Anonymous said...

Hi

Tks very much for post:

I like it and hope that you continue posting.

Let me show other source that may be good for community.

Source: Typical interview questions

Best rgs
David

Anonymous said...

Hi

Tks very much for post:

I like it and hope that you continue posting.

Let me show other source that may be good for community.

Source: It interview questions

Best rgs
David

Smiley said...

I have just come to UK(bolton, manchester). Its been two months and thought its time to be in job race again. I was working in India (bangalore) as a senior software engineer. My skill set is in microsoft technologies, and have around 6 years of experience. I am new to the UK market. I would be grateful if you would give me tips or ideas on process here. In the sense how the cvs are sorted out, what technologies are in demand, what is the interview procedure? In a nutshell, all the possible details of significance. thanks a lot in advance.

Anonymous said...

Hi

I read this post two times.

I like it so much, please try to keep posting.

Let me introduce other material that may be good for our community.

Source: Project management interview questions

Best regards
Henry