• +91 9971497814
  • info@interviewmaterial.com

Computer Interview Questions Answers

DotNet Interview Questions Answers

Question - 151 : - How do you validate the controls in an ASP .NET page?

Answer - 151 : - Using special validation controls that are meant for this. We have Range Validator, Email Validator

Question - 152 : - How ASP .NET different from ASP?

Answer - 152 : - Scripting is separated from the HTML, Code is compiled as a DLL, these DLLs can be executed on the server.

Question - 153 : - What actually happes when you add a something to arraylistcollection ?

Answer - 153 : -   Following things will happen : Arraylist is a dynamic array class in c# in System.Collections namespace derived from interfaces – ICollection , IList , ICloneable , IConvertible  . It terms of in memory structure following is the implementation . a. Check up the total space if there’s any free space on the declared list . b. If yes add the new item and increase count by 1 . c. If No Copy the whole thing to a temporary Array of Last Max. Size . d. Create new Array with size ( Last Array Size + Increase Value ) e. Copy back values from temp and reference this new array as original array . f. Must doing Method updates too , need to check it up .

Question - 154 : - What’s typical about a Windows process in regards to memory allocation?

Answer - 154 : - Each process is allocated its own block of available RAM space, no process can access another process’ code or data. If the process crashes, it dies alone without taking the entire OS or a bunch of other applications down.

Question - 155 : - What doesu mean by .NET framework?

Answer - 155 : - The .NET Framework is an environment for building, deploying, and running Web Services and other applications. It consists of three main parts: the Common Language Runtime, the Framework classes, and ASP.NET

Question - 156 : - What is an Intermediate language?

Answer - 156 : - Assemblies are made up of IL code modules and the metadata that describes them. Although programs may be compiled via an IDE or the command line, in fact, they are simply translated into IL, not machine code. The actual machine code is not generated until the function that requires it is called. This is the just-in-time, or JIT, compilation feature of .NET. JIT compilation happens at runtime for a variety of reasons, one of the most ambitious being Microsoft's desire for cross-platform .NET adoption. If a CLR is built for another operating system (UNIX or Mac), the same assemblies will run in addition to the Microsoft platforms. The hope is that .NET assemblies are write-once-run-anywhere applications. This is a .NET feature that works behind-the-scenes, ensuring that developers are not limited to writing applications for one single line of products. No one has demonstrated whether or not this promise will ever truly materialize. CTS/CLS The MSIL Instruction Set Specification is included with the .NET SDK, along with the IL Assembly Language Programmers Reference. If a developer wants to write custom .NET programming languages, these are the necessary specifications and syntax. The CTS and CLS define the types and syntaxes that every .NET language needs to embrace. An application may not expose these features, but it must consider them when communicating through IL.

Question - 157 : - How to achieve Polymorphism in VB.Net?

Answer - 157 : - We can achieve polymarphism in .Net i.e Compile time polymarphism and Runtime polymarphism. Compiletime Polymarphism achieved by method overloading. Runtime polymarphism achieved by Early Binding or Late Binding. Provide the function pointer to the object at compile time called as Early Binding. provide the function pointer to the object at runtime called as Late Binding class emp having the method display() class dept having the method display() create objects as in the main function // Early binding dim obj as new emp dim ob as new dept obj.display()-to call the display method of emp class ob.display-to call the display method of the dept class // Late binding create object in the main class as object obj obj=new emp obj.display()-to call the display of emp class obj=new dept obj.display()-to call the display of dept class

Question - 158 : - What is assembly?

Answer - 158 : - It is a single deployable unit that contains all the information abt the implimentation of classes , stuctures and interfaces

Question - 159 : - What’s a proxy of the server object in .NET Remoting?

Answer - 159 : - It’s a fake copy of the server object that resides on the client side and behaves as if it was the server. It handles the communication between real server object and the client object. This process is also known as marshaling.

Question - 160 : - Describe what an Interface is and how it’s different from a Class.

Answer - 160 : -   An interface is a structure of code which is similar to a class. An interface is a prototype for a class and is useful from a logical design perspective. Interfaces provide a means to define the protocols for a class without worrying about the implementation details. The syntax for creating interfaces follows: interface Identifier {   InterfaceBody } Identifier is the name of the interface and InterfaceBody refers to the abstract methods and static final variables that make up the interface. Because it is assumed that all the methods in an interface are abstract, it isn't necessary to use the abstract keyword An interface is a description of some of the members available from a class. In practice, the syntax typically looks similar to a class definition, except that there's no code defined for the methods — just their name, the arguments passed and the type of the value returned. So what good is it? None by itself. But you create an interface so that classes will implement it. But what does it mean to implement an interface. The interface acts as a contract or promise. If a class implements an interface,

Computer Contributors

krishan
Rajeev Katiyar
Yes Baroda

Share your email for latest updates

Name:
Email:

Our partners