. Net (ANSWERS) 1. Does C # support multiple inheritance? No, use interfaces instead 2. 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 3. What's the top. Net class that everything is derived from? System. object. 4. 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. 5. 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 varous 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. 6. 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. 7. 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 already ented In The ECMA proposed standard document, "partition I architecture", http://msdn.microsoft.com/net/ecma 8. 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. 9. 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 valid, 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. 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 internal SS application domain boundaries, or by using a proxy to exchange messages. 10. 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 processing ss the web. soap is an open standard, which makes it an attractive choice. there are two separate mechanisms provided by. 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. 11. What are satellite assemblies? Satellite assemblies are often used to deploy language-specific resources for an application. these language-specific assemblies work in side-by-side execution because the application has a separate product ID for each language and installsatellite assemblies in a language-specific subdirectory for each language. when uninstalling, the application removes only the satellite assemblies associated with a given language and.. NET Framework version. no core. net Framework files are removed unless the last language for that. net Framework version is being removed. 12. What is Global Assembly Cache (GAC) and what is the purpose of it? Each computer where the Common Language Runtime is installed has a machine-wide code cache called the Global Assembly Cache. the Global Assembly cache stores assemblies specifically designated to be shared by several applications on the computer. you shoshould share assemblies by installing them into the Global Assembly Cache only when you need. 13. What is reflection in. Net? 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 mechanic called reflection. the system. reflection namespace contains classes that can be used to interrogate the types for a module/assembly. 14. What is the managed and unmanaged code in. Net? The. net Framework provides a run-time environment called the common language runtime, which manages the execution of code and provides services that make the development process easier. compilers and tools expose the runtime's functionality and enable you to write code that benefits from this Managed execution environment. code that you develop with a language compiler that targets the runtime is called managed code; it benefits from features such as cross-language integration, cross-language Exception Handling, enhanced security, versioning and deployment support, a simplified model for component interaction, and debugging and profiling services 15. What are namespaces? The namespace keyword is used to declare a scope. this namespace scope lets you organize code and gives you a way to create globally-unique types. even if you do not explicitly declare one, a default namespace is created. this unnamed namespace, sometimes called the global namespace, is present in every file. any identifier in the global namespace is available for use in a named namespace. namespaces implicitly have public access and this is not modifiable. 16. What are the access-specifiers available in C #? Private, protected, public, internal, protected internal. 17. Advantage of ADO. Net? 'More. net source code and tutorials, from [Lebo network www.lob.cn] * ADO. Net does not depend on continuously live connections * Database interactions are saved med using data commands * Data can be cached in Datasets * Datasets are independent of data sources * Data is persisted as XML * Schemas define data structures 18. Difference Between oledb provider and sqlclient? Sqlclient. net classes are highly optimized for. net/sqlserver combination and achieve optimal results. the sqlclient data provider is fast. it's faster than the Oracle provider, and faster than accessing database via the oledb layer. it's faster because it accesses the native Library (which automatically gives you better performance), and it was written with lots of help from the SQL Server team. 19. Differences between dataset. Clone and Dataset. Copy? Clone-copies the structure of the dataset, including all datatable schemas, relations, and constraints. Does not copy any data Copy-copies both the structure and data for this dataset. 20. In a WebService, need to display 10 rows from a table. So datareader or dataset is best choice? WebService will support only dataset. 21. What is remoting? The process of communication between different operating system processes, regardless of whether they are on the same computer. the. net remoting system is an architecture designed to simplify communication between objects living in different application domains, whether on the same computer or not, and between different contexts, whether in the same application domain or not. 22. What's 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 med. 23. What's a delegate? A delegate object encapsulates a reference to a method. In C ++ they were referred to as function pointers. 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 25. What is the transport protocol you use to call a Web Service |