Frequently Asked Questions-Dotnet Questions
Here,we are providing a list of frequently asked questions and various programming interviews to developers. I have also shared my answers for these questions for quick revision and easy to understand.
Q) What is Dotnet?
A)Dotnet is interduced by Microsoft in 2002 with version of 1.0v .It is a Framework Tool ,not a language any other Operating System.It supports different types of Languages because it is the platform.Dot net is partially platform dependent by using mono framework tool it is platform independent.
Q) What is the CLR?
A)Common Laguage Runtime [CLR] is Heart of the Dotnet . it provides runtime environment to execute the code from binary to native code by using different types of components like CLS , CTS , JIT , and GC..
Q) What is the CTS?
A) The Main role of Common Type System [CTS] is to check the datatypes.Actually we are using different types of languages.in VB you have “Integer” and in C++ you have “long” these datatypes are not compatible so the interfacing between them is very complicated. In order that two different languages can communicate.Microsoft introduced Common Type System. So “Integer” datatype in VB6 and “int” datatype in C++ will convert it to System.int32 which is datatype of CTS.CLS which is covered in the coming question is subset of CTS.
Q) What is ASP.NET?
A). It is a server side-script Designing Technology that enables scripts (embedded in web pages) to be executed by an Internet server.
A). It is a server side-script Designing Technology that enables scripts (embedded in web pages) to be executed by an Internet server.
Q) Execution Process in DotNet.
A)Every source code has one language compiler.The language compiler compile the source code and generate one intermediate language this is called as binary code,this binary code is converted into native code through CLR.
This Execution process is 2 types
1. Managed code: in this execution process through CLR
2. Un-Managed Code : Execution process through OS
Q) What is NameSpace?
A) It is the collection of Different types of Classes , Members and Veriables.
Example:
Using System.Data.SqlClient
Q. What are possible implementations of distributed applications in .NET? ?
A).NET Remoting and ASP.NET Web Services. If we talk about the Framework Class Library, noteworthy classes are in System.Runtime.Remoting and System.Web.Services.
Q. What is Difference between NameSpace and Assembly?
A) Assembly is physical grouping of logical units. Namespace logically groups classes.
Namespace can span multiple assembly.
Q. What is an application server?
A) Application Server is uesd for to execute the code and sends the information to client device.In this dotnet we are using IIS [ Internet Information service ] server as Application server.ASP.NET code executes in Server side.
Q : What are the advantages of Object Oriented Programming Languages (OOPL)?
A)The Object Oriented Programming Languages directly represent the real life objects like Car, Jeep, Account,
Customer etc. The features of the OO programming languages like polymorphism, inheritance and encapsulation
make it powerful.
Customer etc. The features of the OO programming languages like polymorphism, inheritance and encapsulation
make it powerful.
Q) What is difference in final, finalize and finally keyword?
A) final and finally are keyword, while finalize is method. final keyword is very useful for creating immutable class in Java by making a class final, we prevent it from being extended, similarly by making a method final, we prevent it from being overridden,. finalize() method is called by garbage collector, before that object is collected, but this is not guaranteed by Java specification. finally keyword is the only one which is related to error and exception handling and you should always have finally block in production code for closing connection and resources.
Q) What is “AutoPostBack”?
A) If we want the control to automatically post back in case of any event, we will need to check this attribute as true.
A) If we want the control to automatically post back in case of any event, we will need to check this attribute as true.
Defaultly it sets as False.
Example : Dropdown list change we need to send the event immediately to the server side then set the “AutoPostBack” attribute to true.
Q) What is difference betwwen object oriented programming and object based programming?
A) Object-oriented programming language supports all the features of OOPs and Object-based programming language doesn't support all the features of OOPs like Polymorphism and Inheritance.
- example: javascript as object based and java as object oriented
Q) Why JavaScript isn't an object-oriented programming (scripting) language?
A)Because it has no feature that fits the requirements of the definition of object-oriented programming:
var constructor = function() { };
constructor.prototype.text = "hello world";
alert(new constructor().text); // This alerts hello world
Q) Can you use multiple inheritance in .NET?
A).NET supports only single inheritance. However the purpose is accomplished using multiple interfaces.
Q) What is Boxing/Unboxing?
A)Boxing is used to convert value types to object.
int i = 1;
object obj = i ;
int i = 1;
object obj = i ;
Unboxing is used to convert the object back to the value type.
int j= (int)obj;
Q) What is difference between ADO and ADO.NET?
A) ADO [ Active Data Objects ] used connected data usage and it access OLE DB data Connection. In this we are using Record set as like a single table or query result.
ADO.net used disconnected data environment and uses XML as the format for transmitting data to and from your database and web application.It contains multiple tables from any data source
Q) Is null a keyword?
A)No, null is not a keyword, it is a value.
Q) Is sizeof a keyword?
A) sizeof is an operator, it is not a keyword.
Q) what are the main features of Dotnet?
A) The main features of dotnet are
Supports Multi Languages
Supports Object oriented
Robust and secure
In-Built of Code
High Performance.
Compiled and Interpreted
Supports Object oriented
Robust and secure
In-Built of Code
High Performance.
Compiled and Interpreted
Displays Compile time Errors
Q) What is state management??
A)StateManagement Techniques means to maintaining the status eigther client-side or Server-side.Which maintain state and page information over multiple requests for the same or different pages.
No comments:
Post a Comment