Tamil cinema News,Videos,Songs,Photos and Tailers :: Tamil Cinema Bazaar

Pages

Infolinks In Text Ads

Saturday 17 September 2011

DotNet Framework Interview Questions and Answers - 1


1. What is CLR? 

The .NET Framework provides a runtime environment called the Common Language Runtime or CLR (similar to the Java Virtual Machine or JVM in Java), which handles the execution of code and provides useful services for the implementation of the program. CLR takes care of code management at program execution and provides various beneficial services such as memory management, thread management, security management, code verification, compilation, and other system services. The managed code that targets CLR benefits from useful features such as cross-language integration, cross-language exception handling, versioning, enhanced security, deployment support, and debugging. 

 DotNet Framework Interview Questions and Answers

2. What is CTS? 

Common Type System (CTS) describes how types are declared, used and managed in the runtime and facilitates cross-language integration, type safety, and high performance code execution.

3. What is CLS? 

The CLS is simply a specification that defines the rules to support language integration in such a way that programs written in any language, yet can interoperate with one another, taking full advantage of inheritance, polymorphism, exceptions, and other features. These rules and the specification are documented in the ECMA proposed standard document, "Partition I Architecture"


 DotNet Framework Interview Questions and Answers

4. What is CLI? 

The CLI is a set of specifications for a runtime environment, including a common type system, base class library, and a machine-independent intermediate code known as the Common Intermediate Language (CIL). (Source: Wikipedia.)

5. Explain Namespace
 
Namespaces are logical groupings of names used within a program. There may be multiple namespaces in a single application code, grouped based on the identifiers? use. The name of any given identifier must appear only once in its namespace.


 DotNet Framework Interview Questions and Answers

6. Explain Assembly and Manifest 

An assembly is a collection of one or more files and one of them (DLL or EXE) contains a special metadata called Assembly Manifest. The manifest is stored as binary data and contains details like versioning requirements for the assembly, the author, security permissions, and list of files forming the assembly. An assembly is created whenever a DLL is built. The manifest can be viewed programmatically by making use of classes from the System.Reflection namespace. The tool Intermediate Language Disassembler (ILDASM) can be used for this purpose. It can be launched from the command prompt or via Start> Run.


 DotNet Framework Interview Questions and Answers

7. What is Shadow Copy? 

In order to replace a COM component on a live web server, it was necessary to stop the entire website, copy the new files and then restart the website. This is not feasible for the web servers that need to be always running. .NET components are different. They can be overwritten at any time using a mechanism called Shadow Copy. It prevents the Portable Executable (PE) files like DLLs and EXEs from being locked. Whenever new versions of the PEs are released, they are automatically detected by the CLR and the changed components will be automatically loaded. They will be used to process all new requests not currently executing, while the older version still runs the currently executing requests. By bleeding out the older version, the update is completed.


 DotNet Framework Interview Questions and Answers

8. What is DLL Hell?
 
DLL hell is the problem that occurs when an installation of a newer application might break or hinder other applications as newer DLLs are copied into the system and the older applications do not support or are not compatible with them. .NET overcomes this problem by supporting multiple versions of an assembly at any given time. This is also called side-by-side component versioning.


 DotNet Framework Interview Questions and Answers

9. Explain Web Services
 
Web services are programmable business logic components that provide access to functionality through the Internet. Standard protocols like HTTP can be used to access them. Web services are based on the Simple Object Access Protocol (SOAP), which is an application of XML. Web services are given the .asmx extension.


 DotNet Framework Interview Questions and Answers

10. Explain Windows Forms

Windows Forms is employed for developing Windows GUI applications. It is a class library that gives developers access to Windows Common Controls with rich functionality. It is a common GUI library for all the languages supported by the .NET Framework.


 DotNet Framework Interview Questions and Answers

11. Define Boxing and UnBoxing
 
C# provides us with Value types and Reference Types. Value Types are stored on the stack and Reference types are stored on the heap. The conversion of value type to reference type is known as boxing and converting reference type back to the value type is known as unboxing.


 DotNet Framework Interview Questions and Answers

12. Define Value Types and Reference Types 

Value Types Value types are primitive types that are mapped directly to the FCL. Like Int32 maps to System.Int32, double maps to System.double. All value types are stored on stack and all the value types are derived from System.ValueType. All structures and enumerated types that are derived from System.ValueType are created on stack, hence known as ValueType. Reference TypesReference Types are different from value types in such a way that memory is allocated to them from the heap. All the classes are of reference type. C# new operator returns the memory address of the object.


 DotNet Framework Interview Questions and Answers

13. What are Service Oriented Architectures (SOA)? 

SOA describes an information technology architecture that enables distributed computing environments with many different types of computing platforms and applications. Web services are one of the technologies that help make SOAs possible. As a concept, SOA has been around since the 1980s, but many early IT technologies failed to achieve the goal of linking different types of applications and systems. By making early investments with .NET, Microsoft has helped provide the building blocks that today are putting many enterprise customers on the path to successfully implementing SOAs. With SOAs, companies can benefit from the unimpeded flow of information that is the hallmark of connected systems.


 DotNet Framework Interview Questions and Answers

14. What are Web Services Enhancements for Microsoft .NET (WSE)? 

WSE is an add-on to Microsoft Visual Studio .NET and the Microsoft .NET Framework that helps developers build greater security features into Web services using the latest Web services protocol specifications and standards. With WSE 2.0 developers can create security-enhanced connected systems that help improve business processes within?and beyond?corporate trust boundaries and create new revenue-generating opportunities.


 DotNet Framework Interview Questions and Answers

15. What is a Smart Client? 

Smart clients are client applications that consume Web services and reside on user hardware such as desktop PCs, laptops, Pocket PCs, and Smartphones. They are easily deployed and managed and provide an adaptive, responsive, and rich interactive experience by taking advantage of the computing resources on the device and intelligently connecting to distributed data sources.


 DotNet Framework Interview Questions and Answers

16. What is .NET Passport? 

.NET Passport is a Web-based service that is designed to make signing in to Web sites fast and easy. Passport enables participating sites to authenticate a user with a single set of sign-in credentials, alleviating the need for users to remember numerous passwords and user names.


 DotNet Framework Interview Questions and Answers

17. Does C# support multiple inheritance? 

No, use interfaces instead


 DotNet Framework Interview Questions and Answers

18. What?s the implicit name of the parameter that gets passed into the class? set method? 

Value, and its datatype depends on whatever variable we?re changing


 DotNet Framework Interview Questions and Answers

19. What?s the top .NET class that everything is derived from? 

System.Object.


 DotNet Framework Interview Questions and Answers

20. How?s method overriding different from overloading? 

When overriding, you change the method behavior for a derived class. Overloading simply involves having a method with the same name within the class.


 DotNet Framework Interview Questions and Answers

21. What is strong name? 

A name that consists of an assembly's identity?its simple text name, version number, and culture information (if provided)?strengthened by a public key and a digital signature generated over the assembly.


 DotNet Framework Interview Questions and Answers

22. What is Application Domain? 

The primary purpose of the AppDomain is to isolate an application from other applications. Win32 processes provide isolation by having distinct memory address spaces. This is effective, but it is expensive and doesn't scale well. The .NET runtime enforces AppDomain isolation by keeping control over the use of memory - all memory in the AppDomain is managed by the .NET runtime, so the runtime can ensure that AppDomains do not access each other's memory. Objects in different application domains communicate either by transporting copies of objects across application domain boundaries, or by using a proxy to exchange messages.


 DotNet Framework Interview Questions and Answers

23. What is serialization in .NET? What are the ways to control serialization? 

Serialization is the process of converting an object into a stream of bytes. Deserialization is the opposite process of creating an object from a stream of bytes. Serialization/Deserialization is mostly used to transport objects (e.g. during remoting), or to persist objects (e.g. to a file or database).Serialization can be defined as the process of storing the state of an object to a storage medium. During this process, the public and private fields of the object and the name of the class, including the assembly containing the class, are converted to a stream of bytes, which is then written to a data stream. When the object is subsequently deserialized, an exact clone of the original object is created. Binary serialization preserves type fidelity, which is useful for preserving the state of an object between different invocations of an application. For example, you can share an object between different applications by serializing it to the clipboard. You can serialize an object to a stream, disk, memory, over the network, and so forth. Remoting uses serialization to pass objects "by value" from one computer or application domain to another. XML serialization serializes only public properties and fields and does not preserve type fidelity. This is useful when you want to provide or consume data without restricting the application that uses the data. Because XML is an open standard, it is an attractive choice for sharing data across the Web. SOAP is an open standard, which makes it an attractive choice. There are two separate mechanisms provided by the .NET class library - XmlSerializer and SoapFormatter/BinaryFormatter. Microsoft uses XmlSerializer for Web Services, and uses SoapFormatter/BinaryFormatter for remoting. Both are available for use in your own code.


 DotNet Framework Interview Questions and Answers

24. What's an interface class? 

It's an abstract class with public abstract methods all of which must be implemented in the inherited classes


 DotNet Framework Interview Questions and Answers

25. What is the transport protocol?

you use to call a Web service SOAP is the preferred protocol

 DotNet Framework Interview Questions and Answers


No comments:

Post a Comment

Note: only a member of this blog may post a comment.

Blog Archive