Breaking News
Loading...
Tuesday 7 August 2012

VB.Net Interview Question and Answers 3

05:04
31. What is difference between MetaData and Manifest?
Metadata and Manifest forms an integral part of an assembly( dll / exe ) in .net framework . Out of which Metadata is a mandatory component , which as the name suggests gives the details about various components of IL code viz : Methods , properties , fields , class etc.

32. What is the top .NET class that everything is derived from?
System.Object

33. How is method overriding different from method overloading?
When overriding a method, you change the behavior of the method for the derived class. Overloading a method simply involves having another method with the same name within the class.

34. What is a formatter?
A formatter is an object that is responsible for encoding and serializing data into messages on one end, and deserializing and decoding messages into data on the other end.

35. What is an ArrayList?
The ArrayList object is a collection of items containing a single data type values.

36. What is static member?
The member defined as static which can be invoked directly from the class level, rather than from its instance.

37. What is Overloading?
A process of creating different implementation of a method having a same name as base class, in a derived class. It implements Inheritance.

38. When do you use virutal keyword?
When we need to override a method of the base class in the sub class, then we give the virtual keyword in the base class method. This makes the method in the base class to be overridable. Methods, properties, and indexers can be virtual, which means that their implementation can be overridden in derived classes.

39. What is the purpose of XML Namespaces?

An XML Namespace is a collection of element types and attribute names. It consists of 2 parts
The first part is the URI used to identify the namespace
The second part is the element type or attribute name itself.

40. What is a constructor?
A constructor is invoked when you use the new operator, or use the various methods of reflection to create an instance of a class.

41. What is the difference between System.String and System.StringBuilder classes?
System.String is immutable, System.StringBuilder was designed with the purpose of having a mutable string where a variety of operations can be performed.

42. What is the use of JIT ?
JIT (Just - In - Time) is a compiler which converts MSIL code to Native Code (ie. CPU-specific code that runs on the same computer architecture).

43. What is the difference between early binding and late binding?
Calling a non-virtual method, decided at a compile time is known as early binding. Calling a virtual method (Pure Polymorphism), decided at a runtime is known as late binding.

44. Which method do you invoke on the DataAdapter control to load your generated dataset with data?
DataAdapter’s fill () method is used to fill load the data in dataset.

45. What is the purpose of an Assembly?
An assembly controls many aspects of an application. The assembly handles versioning, type and class scope, security permissions, as well as other metadata including references to other assemblies and resources. The rules described in an assembly are enforced at runtime.

<< 1 2 3 4 5 6 7 8 >>

Share This :
Tags:

0 comments:

Post a Comment

 
Toggle Footer