Pages

Tuesday, 15 September 2015

Tricky VB.Net Interview Questions and Answers

51. What are the different types of caching?
There are three types of caching :
output caching
fragment caching
data caching.

52. What is reference type and value type?
Reference type : reference types are allocated on the managed clr heap, just like object types. a data type that is stored as a reference to the value’s location. reference types can be self-describing types, pointer types, or interface types.
Value type : value types are allocated on the stack just like primitive types in vbscript, vb6 and c/c++. value types are not instantiated using new go out of scope when the function they are defined within returns.

53. What is delegates?
Delegates are a type-safe, object-oriented implementation of function pointers and are used in many situations where a component needs to call back to the component that is using it.

54. What is authentication and authorization?
Authentication is the process of identifying users. authentication is identifying/validating the user against the credentials (username and password).
authorization performs after authentication. authorization is the process of granting access to those users based on identity. authorization allowing access of specific resource to user.

55. What is a static class?
Static class is a class which can be used or accessed without creating an instance of the class.

56. What is sealed class?
Sealed classes are those classes which can not be inherited and thus any sealed class member can not be derived in any other class. a sealed class cannot also be an abstract class.

57. What are the two main parts of the .net framework?
There are the two main parts of the .net framework are :
the common language runtime (clr).
the .net framework class library.

58. What is the advantage of using system.text.stringbuilder over system.string?
Stringbuilder is more efficient in cases where there is a large amount of string manipulation. strings are immutable, so each time it's being operated on, a new instance is created.

59. What is reflection?
All .net compilers produce metadata about the types defined in the modules they produce. this metadata is packaged along with the module (modules in turn are packaged together in assemblies), and can be accessed by a mechanism called reflection.

60. What is an application domain? how they get created?
An application domain can be thought of as a lightweight processes controlled by the .net runtime. application domains are usually created by hosts like windows shell, asp.net and ie. when you run a .net application from the command-line, the host is the shell. the shell creates a new application domain for every application.

More Questions & Answers:-

No comments:

Post a Comment