Tech 'n' Tech Books


C# - ADO.Net - ASP.Net Interview Questions

Top C# interview questios

  1. What is the difference between shadow and override
  2. You have an event handler called MyEvent and you want to link the click event of control, MyButton, to use MyEvent, what is the code that will like them together?
  3. Which debugging window allows you to see the methods called in the order they were called?
  4. Which debugging window allows you to see all the name and values of all the variables in scope?
  5. What is wrapper class?is it available in c#?
  6. What is protected internal class in C#
  7. Which keyword is used of specify a class that cannot inherit by other class
  8. Can you create the instance for abstract classes
  9. Can we use Friend Classes or functions in Cthe way we use it in C++
  10. How we can use inheritance and polymorphisms in cprogramming?
  11. How to find exceptions in database
  12. How can objects be late bound in .NET?
  13. Where we can use DLL made in C#.Net
  14. What Datatypes does the RangeValidator Control support?
  15. Constructor is the method which is implicitly created when ever a class is instantiated. Why?
  16. Why multiple Inheritance is not possible in C#?
  17. Why strings are immutable?
  18. This is a Regular expression built for parsing string in vb.net and passed to Regex class. Dim are As Regex = New Regex(”,(?=([^”"]*”"[^”"]*”")*(?![^”"]*”"))”) What is Cequivalent for this regular expression.
  19. How to convert ocx into DLL
  20. What is the main difference between pointer and delegate with examples?
  21. What is object pooling
  22. How do I read the information from web.config file?
  23. What is the default Function arguments?
  24. What is XML Schema?
  25. How can I check whether a dataset is empty or not in C#.net
  26. Is it possible to inherit a class that has only private constructor?
  27. How do you choose 1 entry point when Cproject has more Main( ) method?
  28. The compiler throws an error if XML comments is not well formed
  29. Which of the following is not a Creserved keyword
  30. By declaring a base class function as virtual we allow the function to be overridden in subclasses
  31. Which of the following can not be declared as virtual
  32. Sealed class can be inherited
  33. Which of the following statements is not true for interfaces
  34. It is not permitted to declare modifier on the members in an interface definition
  35. Interface members can not be declared as
  36. Which method is implicitly called when an object is created
  37. Which of the following statement is invalid with regards to constructor
  38. Constructors can not be static
  39. It is perfectly legitimate to throw exceptions from catch and finally blocks
  40. It is not possible for a delegate to wrap more than 1 methos
  41. In Cevents are actually a special form of delegates
  42. Which preprocessor directive are used to mark that contain block of code is to be treated as a single block
  43. How are the attributes specified in C#
  44. For performing repeated modification on string which class is preferred
  45. In order to use stringbuilder in our class we need to refer
  46. Which of the following is not a member of stringbuilder
  47. Which method is actually called ultimately when Console.WriteLine( ) is invoked
  48. What happens when you create an arraylist as ArrayList Arr=new ArrayList()
  49. What is the output of Vectors.RemoveAt(1)
  50. GetEnumerator( ) of Ienumerable interface returns
  51. How do you add objects to hashtable
  52. If A.equals(B) is true then A.getHashcode & B.getHashCode must always return same hash code
  53. The assembly class is defined in
  54. What is the first step to do anything with assembly
  55. How do you load assembly to running process
  56. Assemblies cannot be loaded side by side
  57. Application Isolation is assured using
  58. Where does the version dependencies recorded
  59. How do you refer parent classes in C#
  60. Which attribute you generally find on top of main method
  61. How do you make a class not instantiable
  62. In a multilevel hierarchy how are the constructors are called
  63. Which utility is used to create resource file
  64. What is the extension of a resource file
  65. A shared assembly must have a strong name to uniquely identify the assembly
  66. Public policy applies to
  67. Stream object can not be initialized
  68. Which of the following has stream as the base class
  69. Which class use to Read/Write data to memory
  70. To Configure .Net for JIT activation what do you do
  71. Which method is used by COM+ to ascertain whether class can be pooled
  72. How do you import Activex component in to .NET
  73. Net Remoting doesn’t allow creating stateless & stateful Remote objects
  74. Windows services created by Capp run only
  75. The Ckeyword int maps to which .NET type
  76. What is an indexer in C#
  77. In the following cases which is not function overloading
  78. How to implement multiple inheritence in C#
  79. In Ca technique used to stream the data is known as
  80. Can static methods be overridable?
  81. What is the use of fixed statement
  82. What is the order of destructors called in a polymorphism hierarchy
  83. How can you sort the elements of the array in descending order
  84. Is it possible to Override Private Virtual methods
  85. What does the volatile modifier do
  86. What is the Cequivalent of System.Single
  87. A single line comments are implemented by
  88. Code running under the control of CLR is often referred as
  89. Platform specific code is obtained when
  90. Intermediate Language also facilitates language interoperability
  91. Which are the important features of IL
  92. NET interfaces are not derived from IUnknown & they do not have associated GUID’s
  93. Code written in C cannot used in which of the languages
  94. It is not possible to debug the classes written in other .Net languages in a Cproject.
  95. Which of the following is not a subclass of Value Type class
  96. Which of the following is not a subclass of reference type
  97. Which is .NET s answer to Memory Management
  98. .NET run time relies on the object reference counts to manage memory
  99. What are Namespaces
  100. Which of the following keyword is used along with Main function in C#

Top ADO.NET interview questions

  1. Does SQLClient and OLEdb class share the same functionality
  2. How can we load multiple tables in to Dataset?
  3. What is the difference between data reader & data set
  4. Why edit is not possible in repeater?
  5. Difference between SqlCommand and SqlCommandBuilder?
  6. How many records can take clustured index in SQL Server?
  7. Why can’t we use Multiple inheritance and garbage collector in parallel in .NET?
  8. What is ADO .NET?
  9. Can we connect two datareader to same data source using single connection at same time?
  10. What is the execution procedure in oracle ?
  11. How to find the given query is optimised one or not?
  12. How to copy the contents from one table to another table and how to delete the source table in Ado NET?
  13. What is the difference between data reader and data adapter.
  14. How to copy the contents from one table to another table and how to delete the source table in Ado .NET?

Top ASP.NET interview questions

  1. What types of data validation events are commonly seen in the client-side form validation?
  2. In A Page I have gridview with Options of select and delete using hyperlink when i am selecting any one of then it has to open another page how can it
  3. Web service support a) Data set b) dataReader c) both of above d) none of above
  4. How to create dynamic Gridview?
  5. What is PreProcessor in .NET and type , where it use
  6. Please brief not about XSD,XSLT & XML.
  7. List of Words of PreProcessor in .NET?
  8. If we remove web.config or machine.config from the application then, will the application still work?
  9. How to reduce the width of textbox in EditCommandColumn of DataGrid?
  10. Which dll handles the request of .aspx page?
  11. What is event bubbling?
  12. What is server infrastructure & Server components?
  13. What is IPostBack? How to use it?
  14. How to create a DB connection at one place/page so that we can use that connection for all pages/forms/windows.whatarethe steps ned to be performed. if question not clear,let me know.
  15. What is diff. between abstract class and an interface? * What is shadowing? * Diff between Overriding and overloading
  16. What is DLL hell?
  17. Can you explain the difference between an ADO.NET Dataset and an ADO Recordset?
  18. What is CLR? 2.1. Diff between CLR & CTS
  19. Explain the differences between Server-side and Client-side code?
  20. Which namespace is used to get assembly details?
  21. What is the difference between Server.Transfer and Response.Redirect? Why would I choose one over the other?
  22. What type of code (server or client) is found in a Code-Behind class?
  23. ColumnMapping belongs to which namespaces?
  24. Can you give an example of when it would be appropriate to use a web service as opposed to a non-serviced .NET component
  25. Should validation (did the user enter a real date) occur server-side or client-side? Why?
  26. What is an abstract class?
  27. What tags do you need to add within the asp:datagrid tags to bind columns manually?
  28. What method do you use to explicitly kill a user s session?
  29. What base class do all Web Forms inherit from?
  30. How can you provide an alternating color scheme in a Repeater control?
  31. Which template must you provide, in order to display data in a Repeater control?
  32. Can you edit data in the Repeater control?
  33. Which method do you invoke on the DataAdapter control to load your generated dataset with data?
  34. In order to get assembly info whcih namespace we should import?
  35. What is the root namespace for all types?
  36. Diff. betn Dataset and Recordset.
  37. Diff between Dataset and Datareader?
  38. Trace and Debug belongs to which namespaces?
  39. What does the “EnableViewState” property do? Why would I want it on or off?
  40. Let’s say I have an existing application written using Visual Studio 6 (VB 6, InterDev 6) and this application utilizes Windows 2000 COM+ transaction services. How would you approach migrating this application to .NET
  41. DIff. between Friend and Protected Friend.
  42. How doyoudeclare static variable and how it is declared and what is its lifetime?
  43. How doesyouget record no from 5 to 15 from a dataset of 100 records?
  44. Why Datareader is useful?
  45. How doesyoucall and execute a SP in .NET?
  46. What is versioning in .NET?
  47. Whatarethe ASP.NET list controls and diff. between them?
  48. What is diff. between ASP State Management and ASP.NET State Management?(Imp) 19. How can we pass info between 2 asp.net pages?
  49. Diff between Web User Control and Web Custom Control.
  50. How do we Sort the data from a Dataset?
  51. How do we get only edited/deleted/inserted records from a Dataset?
  52. How Dataadapter.fill works?
  53. How can we implement a Identity (SQL Server) call in an asp.net page?
  54. What is Viewstate?
  55. What is the life cycle of an asp.net page?
  56. Can you give an example of what might be best suited to place in the Application_Start and Session_Start subroutines?
  57. If I’m developing an application that must accomodate multiple security levels though secure login and my ASP.NET web appplication is spanned across three web-servers (using round-robbin load balancing) what would be the best approach to maintain login-in state for the users?
  58. What are ASP.NET Web Forms? How is this technology different than what is available though ASP (1.0-3.0)?
  59. How does VB.NET/Cachieve polymorphism?
  60. Can you explain what inheritance is and an example of when you might use it?
  61. How would you implement inheritance using VB.NET/C#?
  62. What is an assembly
  63. What is .NET remoting?
  64. What are webservices?
  65. What is CLR?
  66. What is delay signing?
  67. Which namespace is used by ADO.NET?
  68. What are client activated objects and server activated objects?
  69. What is difference between singleton and single call?
  70. What is difference between OR and ORElse?
  71. What are delegates?
  72. Describe the difference between inline and code behind - which is best in a
  73. Explain what a diffgram is, and a good use for one
  74. Where would you use an iHTTPModule, and what are the limitations of any
  75. What are the disadvantages of viewstate/what are the benefits
  76. Describe session handling in a webfarm, how does it work and what are the > limits
  77. How would you get ASP.NET running in Apache web servers - why would you even do this?
  78. Whats MSIL, and why should my developers need an appreciation of it if at all?
  79. In what order do the events of an ASPX page execute. As a developer is it important to undertsand these events?
  80. What property must you set, and what method must you call in your code, in order to bind the data from some data source to the Repeater control?
  81. How do you turn off cookies for one page in your site?
  82. Which two properties are on every validation control?
  83. How do you create a permanent cookie?
  84. What tag do you use to add a hyperlink column to the DataGrid?
  85. What is the standard you use to wrap up a call to a Web service
  86. Which method do you use to redirect the user to another page without performing a round trip to the client?
  87. What is the transport protocol you use to call a Web service SOAP
  88. What does WSDL stand for?
  89. What property do you have to set to tell the grid which page to go to when using the Pager object?
  90. What tags do you need to add within the asp:datagrid tags to bind columns manually.
  91. Which property on a Combo Box do you set with a column name, prior to setting the DataSource, to display data in the combo box?
  92. How is a property designated as read-only?
  93. Which control would you use if you needed to make sure the values in two different controls matched?
  94. How many classes can a single .NET DLL contain?
  95. Name some of the Microsoft Application Blocks. Have you used any? Which ones?
  96. Can a .NET web application consume Java web service ?
  97. How to rename a table using sql queries?
  98. Distinguish the differences between client-side and server-side data validations in web pages.
  99. What is smoke testing?
  100. What is the difference between a defect and an enhancement?