Wednesday, December 17, 2008

Interview Qusetions - Part 1

Interview Questions
---------------------------

1. What is a private assembly?
a. An assembly which is used by only one application and which is placed in the installation directory of an application.

2. what is MSIL?
a. When we compile a c# program or any other program written in .net complaint languages, the source code is compiled in to MSIL. It is an instruction set in to which all .net prgrams are compiled and which is used by the CLR. It contains instruction for loading, storing, initializing, and calling methods.

3. What is CTS?
a. CTS means common type system. It defines how types are declared, used and managed in the runtime. This supports a variety of types and operations found in most of the programming languages and therefore calling one language from another does not require type convertions.

4. What is CLS?
a. CLS means common language specification. This enables interoperability in the .net platform.

5. What is JIT?
A. It is a compiler that converts MSIL to native code.

6. why do we use namespaces?
a. Namespaces are used to organise the code and to create globally unique types to avoid name collisions.

7. What is web farm?
a. Asp.net runs with in a process known as asp.net worker process. All asp.net functionality runs with in the scope of this process. A regular web server contains only a single asp.net worker process. A web farm contains multiple asp.net worker processes. Generally normal(small) web sites uses a single web server to satisfy the user requests. but a web farm(larger web sites) uses one or more seb servers to satisfy the user requests.

8. What is Globalization?
a. It is the process of design and development of applications that serve multiple cultures.

9. What is Localization?
a. It is a process of customizing an application for a given culture and locale.

10. What is a Thread?
a. A thread is a basic unit to which operating system allocates processor time. One process can have more than one thread. Each thread maintains exception handlers, scheduling priorities, and a set of structures the system uses to save the thread context until it is scheduled.

11. Differences between managed code and unmanged code?
Managed code:
1.It is executed under CLR.
2.It compiles to intermediate language
3. it provides services like security, exception handling, garbage collection etc
4. It can access both managed and unmanaged data
unmanaged code :
1. It is not executed under CLR.
2. It compiles directly to machine code.
3. It doen not provide security, exception handling, garbage collection etc
4. It can access only unmanaged data.

12. What is a bin directory?
a. It contains precompiled assemblies. this is useful when you need to use code that is possibly written by someone else where you don't have access to the source code but you have a compiled dll instead.

13. What is the use of enableviewstatemac property?
a. This is the attribute of a @page directive. This is used to check whether the view state has been tampered or not.

14. How to change a master page during rntime?
a. This is possible in the PreInit() event by setting MasterPageFile property to .master page.

15. What is serialization?
a. It is a process of saving the state of an object by converting it to a stream of bytes. the object can then be persisted to a file, database, or even memory.

1 comment:

Kadmiel said...

11. Differences between managed code and unmanged code?
Managed code:
1.It is executed under CLR.
2.It compiles to intermediate language

question about this though doesn;t the unmanaged code submitted under CLR correspond to language markup>?