free classified ads and leads
domain website price


ASP.NET Interview Questions Part-3

Languages and Programming

ASP.NET

Qus: Which control would you use if you needed to make sure the values in two different controls matched?
Ans: Compare Validator control.

Qus: How many classes can a single .NET DLL contain?
Ans: It can contain many classes.

Qus:What is the transport protocol you use to call a Web service?
Ans: SOAP (Simple Object Access Protocol) is the preferred protocol.

Qus: A Web service can only be written in .NET?
Ans:False

Qus:What does WSDL stand for?
Ans: Web Services Description Language.

Qus: Where on the Internet would you look for Web services?
Ans: http://www.uddi.org

Qus: To test a Web service you must create a Windows application or Web application to consume this service?
Ans: False, the web service comes with a test page and it provides HTTP-GET method to test.

Qus: What is ViewState?
Ans: ViewState allows the state of objects (serializable) to be stored in a hidden field on the page. ViewState is transported to the client and back to the server, and is not stored on the server or any other external source. ViewState is used the retain the state of server-side objects between post backs.

Qus: What is the lifespan for items stored in ViewState?
Ans: Item stored in ViewState exist for the life of the current page. This includes postbacks (to the same page).

Qus: What does the "Enable ViewState" property do? Why would I want it on or off?
Ans: It allows the page to save the users input on a form across post backs. It saves the server-side values for a given control into ViewState, which is stored as a hidden value on the page before sending the page to the clients browser. When the page is posted back to the server the server control is recreated with the state stored in viewstate.

Qus: What are the different types of Session state management options available with ASP.NET?
Ans: ASP.NET provides In-Process and Out-of-Process state management. In-Process stores the session in memory on the web server. This requires the a "sticky-server" (or no load-balancing) so that the user is always reconnected to the same web server. Out-of-Process Session state management stores data in an external data source. The external data source may be either a SQL Server or a State Server service. Out-of-Process state management requires that all objects stored in session are serializable.

Qus: What is CLS (Common Language Specification)?
Ans: It provides the set of specification which has to be adhered by any new language writer / Compiler writer for .NET Framework. This ensures Interoperability. For example: Within a ASP.NET application written in C#.NET language, we can refer to any DLL written in any other language supported by .NET Framework. As of now .NET Supports around 32 languages.

Qus: What is CTS (Common Type System)?
Ans: It defines about how Objects should be declared, defined and used within .NET. CLS is the subset of CTS.

 Qus: What is Boxing and UnBoxing?
Ans:
Boxing is implicit conversion of Value Types to Reference Types (Object) .UnBoxing is explicit conversion of Reference Types (Object) to its equivalent Value Types. It requires type-casting.

Qus:
What is the difference between Value Types and Reference Types?
Ans: Value Types uses Stack to store the data where as the later uses the Heap to store the data.

Qus: What are the different types of assemblies available and their purpose?
Ans: Private, Public/shared and Satellite Assemblies.

Private Assemblies :
Assembly used within an application is known as private assemblies.

Public/shared Assemblies :
Assembly which can be shared across application is known as shared assemblies. Strong Name has to be created to create a shared assembly. This can be done using SN.EXE. The same has to be registered using GACUtil.exe (Global Assembly Cache).

Satellite Assemblies : These assemblies contain resource files pertaining to a locale (Culture+Language). These assemblies are used in deploying an Global application for different languages.

Bookmark and Share




Gallery

Related Topics

Comments



Submit Reviews:


(Enter the characters seen on the image below.)



Promotional Ads

Advertisement

Packers and movers in Mohali
Plot No 636, Near HP Gas Agency, Dariya, Chandigarh - 160101
Mohali

Submersible Sludge Pumps
18, shreenath Estate, cross road, nr. Nikol, nr. Sardar Patel Ring Road, Kathwada, Gujarat 382415
Ahmedabad

Bhakti Bird Proofing
House no.9479 durgamata tekdi vibhag, mahalaxmi nagar, City ambernath, Near durgamata temple. Pin Code-421501
Motilal Nagar Mumbai

Livonta Global Pvt.Ltd
1110, Colonnade, B/H Iscon Temple, Opp. Iscon BRTS Bus Stand
Iscon - Ambali Rd,
Ahmedabad

Brij Agnihotri & associates company secretaries
3454, 40D, Sector 40D, Chandigarh, 160036, India

JB Rock Bolts & SN BOLTS
10 A & B Industrial Area (at Vill. Nangal Jarialan)
Distt. Una Himachal Pradesh
Una

Govinda resorts Lonavala
Old Mumbai - Pune Hwy, Maval, Lonavala, Maharashtra 410405
Lonavla

Steelco Metal & Alloys
192 – Minara Mansion, Shop No.6, Sant Sena Maharaj Marg, 2nd Kumbharwada Lane, Mumbai, Maharashtra 400004
Mumbra Mumbai

Best Resorts in Dharamshala Amid the Misty Hills.
SATOBARI HILLS ROAD,MCLEODGANJ,
Dharamshala

Genius Global School
194 Anand Vihar Saproon, Solan, Himachal Pradesh
Ambala Cantt