Sunday, January 20, 2008

Question for Dot Net Interview (Part 1):

--* What is the .NET Framework? x
- it is a platform- and device-independent system that is designed to work over the Internet.
- .NET is a platform that can be used for building and running the next generation of Microsoft and Web applications. The goal of the Microsoft .NET platform is to Windows

--* ASP --> Active Server Pages

--* The .NET Framework relies heavily on the core premise of the Common Language Runtime (CLR), which .NET uses to translate various programming languages into Intermediate Language (IL)where any operating system can understand it. IL is the syntax used to send, receive, and manage .NET signals

--* Visual Studio .NET, as a development tool, provides the following: x
1) Support for various development languages
2) Tools for building Web applications, Windows applications, and XML Web services.
3) Data access tools
4) Complete error handing, including local debugging, remote debugging, and tracing.

--* The Microsoft .NET Framework includes the following components:
1) Common Language Runtime (CLR)
2) Base class library
3) Data
4) Web forms and Web services
5) Windows Forms

--* The parts of an ASP.NET Web application include:
1) Web Forms, or .aspx pages
Web Forms and .aspx pages provide the UI for the Web application.
2) Code-behind pages
Code-behind pages are associated with Web Forms and contain the server-side code for the Web Form.
3) Configuration files
Configuration files are XML files that define the default settings for the Web application and the Web server. Every Web application has one Web.config configuration file. In addition, each Web server has one machine.config file.
4) Global.asax file
Global.asax files contain the needed code for responding to application-level events that are raised by ASP.NET.
5) XML Web service links
XML Web service links allow the Web application to send and receive data from an XML Web service.
6) Database connectivity
Database connectivity allows the Web application to transfer data to and from database sources.
7) Caching
Caching allows the Web application to return Web Forms and data more quickly after the first request.


--* IDE --> Integrated Development Environment
--* URL --> Uniform Resource Locator
--* API --> Application Programming Interface
--* ADO --> ActiveX Data Object
--* SOAP --> Simple Object Access Protocol
--* Web services are based on the Simple Object Access Protocol (SOAP) specification.
--* SQL --> Structured Query Language

--* To deploy a Web site, all you need to do is copy the site’s root folder by using file copy commands, the Microsoft FrontPage server extensions, or File Transfer Protocol (FTP).

--* DLL --> Dynamic-Link Library

--// What is the difference between classes and components:
--* Classes :
- They are groups of code with no user interface
- can be shared amongst different parts of an application
- Classes are used to organize functions and give them a single name by which they are referenced
- When you want to use a class and its members, you actually use an object of that class. An object is an instantiation of the class.
--* Components :
- Components are classes that are compiled into a DLL file
- Components are used for sharing code between applications
- When we want to use components in the application by using the component’s namespaces and class names

--* Types of Member: (Property,Method,Event,Constructor,Field)
1) A property is an attribute of a class
2) A method is an action that the class knows how to perform
3) An event represents something you can react to
4) A constructor is a special type of method that is called when you create a new object.
5) A field is similar to a property and for all practical purposes can be treated as a property

--* Static members: (also known as shared members) are shared across all instances of a class and do not require you to work with a specific instance of the class.

--* IIS --> Internet Information Services

--* What is the difference between an object and a class?
1) Object is an instance of a classm while a class can have many related objects.
2) Class is a static entity, while object is a dynamic entity.
3) Every object belongs to a class and every class contains one or more related objects
4) An object is an instantiation of the class.

Example:
class MyClass { public int x; };
Then an object would be: int main() { MyClass my_object; }

--* What is the different between Overloading and Overriding:
-** Overloading
- means "add" more behavior to method
- in the same class
- methods with different signature but same name.
- Example for Overloading
Class A
{
void a()
{
}
int a(int a) { }
}
-** Overriding
- means "change" exisiting behavior
- in the drived class
- methods with same name and signature but different functionality
- Example for overriding
Class A
{
Virtual void hi(int a) { }
}
Class B:A
{
public overrid void hi(int a) { }
}
----------------------------------------------------------------------------------------

No comments: