Tuesday, 15 September 2015

Most Recently Asked VB.Net Interview Questions and Answers

61. What is the difference between compiler and interpreter?
Compiler :
a compiler is a program that translates program (called source code) written in some high level language into object code.
an interpreter translates high-level instructions into an intermediate form, which it then executes. interpreter analyzes and executes each line of source code in succession, without looking at the entire program; the advantage of interpreters is that they can execute a program immediately. .

62. What is a class?
Class is concrete representation of an entity. it represents a group of objects, which hold similar attributes and behavior. it provides abstraction and encapsulations.

63. What is an object?
Object represents/resembles a physical/real entity. an object is simply something you can give a name.

64. What is abstraction?
Hiding the complexity. it is a process of defining communication interface for the functionality and hiding rest of the things.

65. How do you convert a string into an integer in .net?

66. Describe the compilation process for .net code?
Source code is compiled and run in the .net framework using a two-stage process. first, source code is compiled to microsoft intermediate language (msil) code using a .net framework-compatible compiler, such as that for visual basic .net or visual c#. second, msil code is compiled to native code.

67. What is boxing and unboxing?
Boxing :
boxing is an implicit conversion of a value type to the reference type.
examples : stuct type, enumeration type
Unboxing :
unboxing is an explicit conversion from the reference to a value type.
examples : class , interface.

68. How do you create threading in .net? what is the namespace for that?

69. What is method overloading?
Method overloading occurs when a class contains two methods with the same name, but different signatures.

70. What is method overriding?
An override method provides a new implementation of a member inherited from a base class. the method overridden by an override declaration is known as the overridden base method.

More Questions & Answers:-

No comments:

Post a Comment