26. What are Satellite Assemblies?
DotNet Framework Interview Questions and Answers
27. What is Global Assembly Cache (GAC) and what is the purpose of it?
DotNet Framework Interview Questions and Answers
28. What is Reflection in .NET?
DotNet Framework Interview Questions and Answers
29. What is the managed and unmanaged code in .net?
DotNet Framework Interview Questions and Answers
30. What are the access-specifiers available in c#?
Private, Protected, Public, Internal, Protected Internal.
DotNet Framework Interview Questions and Answers
31. Difference between OLEDB Provider and SqlClient ?
DotNet Framework Interview Questions and Answers
32. Differences between dataset.clone and dataset.copy?
DotNet Framework Interview Questions and Answers
33. In a Webservice, need to display 10 rows from a table. So DataReader or DataSet is best choice?
WebService will support only DataSet.
DotNet Framework Interview Questions and Answers
34. What is Remoting?
DotNet Framework Interview Questions and Answers
35. What?s the difference between System.String and System.StringBuilder classes?
DotNet Framework Interview Questions and Answers
36. What?s a delegate?
DotNet Framework Interview Questions and Answers
37. 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
38. How do you inherit from a class in C#?
Place a colon and then the name of the base class. Notice that it?s double colon in C++.
DotNet Framework Interview Questions and Answers
39. Does C# support multiple inheritance?
No, use interfaces instead.
DotNet Framework Interview Questions and Answers
40. When you inherit a protected class-level variable, who is it available to?
Classes in the same namespace.
DotNet Framework Interview Questions and Answers
41. Are private class-level variables inherited?
Yes, but they are not accessible, so looking at it you can honestly say that they are not inherited. But they are.
DotNet Framework Interview Questions and Answers
42. Describe the accessibility modifier protected internal.
DotNet Framework Interview Questions and Answers
43. C# provides a default constructor for me. I write a constructor that takes a string as a parameter, but want to keep the no parameter one. How many constructors should I write?
DotNet Framework Interview Questions and Answers
44. How?s method overriding different from overloading?
DotNet Framework Interview Questions and Answers
45. What does the keyword virtual mean in the method definition?
The method can be over-ridden.
DotNet Framework Interview Questions and Answers
46. Can you declare the override method static while the original method is non-static?
DotNet Framework Interview Questions and Answers
47. Can you override private virtual methods?
DotNet Framework Interview Questions and Answers
48. Can you prevent your class from being inherited and becoming a base class for some other classes?
DotNet Framework Interview Questions and Answers
49. Can you allow class to be inherited, but prevent the method from being over-ridden?
Yes, just leave the class public and make the method sealed.
DotNet Framework Interview Questions and Answers
50. What?s an abstract class?
DotNet Framework Interview Questions and Answers
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 installs satellite 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.
DotNet Framework Interview Questions and Answers
27. 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 should share assemblies by installing them into the global assembly cache only when you need to.
DotNet Framework Interview Questions and Answers
28. 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 mechanism called reflection. The System.Reflection namespace contains classes that can be used to interrogate the types for a module/assembly.
DotNet Framework Interview Questions and Answers
29. 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
DotNet Framework Interview Questions and Answers
30. What are the access-specifiers available in c#?
Private, Protected, Public, Internal, Protected Internal.
DotNet Framework Interview Questions and Answers
31. Difference between OLEDB Provider and SqlClient ?
SQLClient .NET classes are highly optimized for the .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.
DotNet Framework Interview Questions and Answers
32. 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.
DotNet Framework Interview Questions and Answers
33. In a Webservice, need to display 10 rows from a table. So DataReader or DataSet is best choice?
WebService will support only DataSet.
DotNet Framework Interview Questions and Answers
34. 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.
DotNet Framework Interview Questions and Answers
35. 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.
DotNet Framework Interview Questions and Answers
36. What?s a delegate?
A delegate object encapsulates a reference to a method. In C++ they were referred to as function pointers.
DotNet Framework Interview Questions and Answers
37. 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
38. How do you inherit from a class in C#?
Place a colon and then the name of the base class. Notice that it?s double colon in C++.
DotNet Framework Interview Questions and Answers
39. Does C# support multiple inheritance?
No, use interfaces instead.
DotNet Framework Interview Questions and Answers
40. When you inherit a protected class-level variable, who is it available to?
Classes in the same namespace.
DotNet Framework Interview Questions and Answers
41. Are private class-level variables inherited?
Yes, but they are not accessible, so looking at it you can honestly say that they are not inherited. But they are.
DotNet Framework Interview Questions and Answers
42. Describe the accessibility modifier protected internal.
It's available to derived classes and classes within the same Assembly (and naturally from the base class it?s declared in).
DotNet Framework Interview Questions and Answers
43. C# provides a default constructor for me. I write a constructor that takes a string as a parameter, but want to keep the no parameter one. How many constructors should I write?
Two. Once you write at least one constructor, C# cancels the freebie constructor, and now you have to write one yourself, even if there?s no implementation in it.
DotNet Framework Interview Questions and Answers
44. 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
45. What does the keyword virtual mean in the method definition?
The method can be over-ridden.
DotNet Framework Interview Questions and Answers
46. Can you declare the override method static while the original method is non-static?
No, you can?t, the signature of the virtual method must remain the same, only the keyword virtual is changed to keyword override.
DotNet Framework Interview Questions and Answers
47. Can you override private virtual methods?
No, moreover, you cannot access private methods in inherited classes, have to be protected in the base class to allow any sort of access.
DotNet Framework Interview Questions and Answers
48. Can you prevent your class from being inherited and becoming a base class for some other classes?
Yes, that?s what keyword sealed in the class definition is for. The developer trying to derive from your class will get a message: cannot inherit from Sealed class WhateverBaseClassName. It?s the same concept as final class in Java.
DotNet Framework Interview Questions and Answers
49. Can you allow class to be inherited, but prevent the method from being over-ridden?
Yes, just leave the class public and make the method sealed.
DotNet Framework Interview Questions and Answers
50. What?s an abstract class?
A class that cannot be instantiated. A concept in C++ known as pure virtual method. A class that must be inherited and have the methods over-ridden. Essentially, it?s a blueprint for a class without any implementation.
DotNet Framework Interview Questions and Answers
No comments:
Post a Comment
Note: only a member of this blog may post a comment.