Dotnet interview questions

  1. Explain the life cycle of an ASP .NET page.
  2. Explain the .NET architecture.
  3. What are object-oriented concepts?
  4. How do you create multiple inheritance in c# and .NET?
  5. When is web.config called?
  6. How many weg.configs can an application have?
  7. How do you set language in weg.config?
  8. What does connection string consist of?
  9. Where do you store connection string?
  10. What is abstract class?
  11. What is difference between interface inhertance and class inheritance?
  12. What are the collection classes?
  13. What are the types of threading models?
  14. What inheritance does VB.NET support?
  15. What is a runtime host?
  16. Describe the techniques for optimizing your application?
  17. Differences between application and session
  18. What is web application virtual directory?
  19. Differences between Active.exe and Dll
  20. Connection pooling in MTS?
  21. If cookies is disabled in client browser, will session tracking work?
  22. How do you make your site SSL-enabled?
  23. Will the following code execute successfully: response.write(’value of i=’+i);
  24. What are the provides available with VB.NET?
  25. What is a Process, Sesion and Cookie?
  26. What are Abstract base classes?
  27. What are the Difference between bstract base classes and Abstrat classes
  28. What are interface in .NET?
  29. How is Polymorphism supports in .NET?
  30. What are the 2 types of polymorphism supports in .NET?
  31. Types of compatibilities and explain them.
  32. What is aggregative? How can it be implements in .NET?
  33. Difference between COM components and .NET components?how to register it
  34. Difference between early binding and late binding?
  35. ASP.NET OBJECTS?
  36. Asp.NET life cycle? When request mode
  37. Explain ADO and its objects.
  38. What is side by side execution?
  39. Explain serialization?
  40. Explain a class access specifiers and method acess specifiers.
  41. What is the difference between overloading and overriding ? how can this be .NET
  42. Explain virtual function and its usage.
  43. How do you implement inhetance in .NET?
  44. If I want to override a method 1 of class A and this class B then how do you declared
  45. Explain friend and protected friend.
  46. Explain multiple and multi_level inheritance in .NET?
  47. Name all kind of access specifiers for a class and for methods?
  48. On ODP.NET
  49. What is non-derterministic finalization?
  50. What is isPostback property?
  51. What is dictionary base class?
  52. How can a class be extended and how is this mechanism difff from that of implementation an interface?
  53. What are indexes .NET?
  54. How can indexes be implemented in .NET?
  55. Differences between DLL and EXE?
  56. Can an assembly have EXE?
  57. Can a DLL be changed to an EXE?
  58. Compare & contrast rich client (smart clients or Windows-based) & browser-based Web application
  59. Compare Client server application with n-Tier application
  60. Can a try block have more than one catch block?
  61. Can a try block have nested try blocks?
  62. How do you load an assembly at runtime?
  63. If I am writing in a language like VB or C++, what are the procedures to be followed to support .NET?
  64. How do you view the methods and members of a DLL?
  65. What is shadowing?
  66. What are the collections you’ve used?
  67. How do you create a recordset object in VBScript?
  68. What is Querystring collection? - It allows you to extract data sent to the server using a GET request.
  69. Explain the difference between POST and GET Method. - GET requests are string data that is visible to the end user via the URL and a limit of 2kb, POST requests have no limit on total data and the user can’t see the data in a query string.
  70. Why do we use Option Explicit? - To avoid multiple variables of the same name.
  71. How do you write an SQL insert statement? - insert into tablename (fieldA, fieldB, fieldC)Values(’dataA’, ‘dataB’, ‘dataC’);
  72. How can you have different number of cells for each row of a table in HTML? - using colspan and rowspan
  73. What is wrong with the following code: <%afname="header.asp"%><%=afname%>"–>
  74. What variable can you use to share info across the whole application for one user? - Use the sessions object
  75. What is string concatenation function in VBScript? - the ampersand symbol and ampersand space underscore across multiple lines
  76. How do you get the value of a combo box in Javascript? - document.forms['formName'].elements['comboName'].options[i].value
  77. What is a class in CSS? - A class allows you to define different style characteristics to the same HTML element.
  78. When inserting strings into a SQL table in ASP what is the risk and how can you prevent it?
  79. Which is the default Data types in VBScript? - Variant.
  80. State True or False: If you set AutoGenerateColumns=True and still provide custom column definitions, the DataGrid will render both
    • True
    • False
  81. The data from an XSL Transform with XmlReader can be returned in one of the following ways
    • objReader = objXslT.Transform(objNav, nothing)
    • objXslT.Transform(objNav, nothing)
    • objReader = objXslT.Transform(objNav, nothing, objWriter)
    • objXslT.Transform(objNav, nothing, objWriter)
  82. Pick the command line that would result in the C# compiler generating an XML documentation file
    • csc /doc:NewHome.xml NewHome.cs
    • c /doc /docfile: NewHome.xml NewHome.cs
    • csc /doc /out: NewHome.xml NewHome.cs
    • csc /xml NewHome.cs
  83. What is the comment syntax for C#’s XML-based documentation?
    • /** and **/
    • //#
    • ///
    • //*
  84. When creating a C# Class Library project, what is the name of the supplementary file that Visual Studio.NET creates that contains General Information about the assembly?
    • AssemblyInfo.xml
    • AssemblyInfo.cs
    • AssemblyInformation.cs
    • AssemblyAttributes.cs
  85. Which of the following is the C# escape character for Null?
    • \n
    • \0
    • \f
    • \v
  86. What is the exception that is thrown when there is an attempt to dynamically access a method that does not exist?
    • MissingMethodException
    • TypeLoadException
    • MethodLoadException
    • MethodAccessException
  87. What method(s) must be used with the Application object to ensure that only one process accesses a variable at a time?
    • Synchronize()
    • Lock() and UnLock()
    • Lock()
    • Asynchroize()
  88. After capturing the SelectedIndexChanged event for a ListBox control, you find that the event handler doesn’t execute. What could the problem be?
    • The AutoEventWireup attribute is set to False
    • The AutomaticPostBack attribute is set to False
    • The codebehind module is not properly compiled
    • The ListBox must be defined WithEvents
  89. What method must be overridden in a custom control?
    • The Paint() method
    • The Control_Build() method
    • The Render() method
    • The default constructor
  90. What is used to validate complex string patterns like an e-mail address?
    • Extended expressions
    • Regular expressions
    • Irregular expressions
    • Basic expressions
  91. The following is a valid statement in ASP.NET<%@ Page Language="C" %>
    • True
    • False
  92. A valid comment block in ASP.NET is


    • <% - - Comment - - %>
    • <% ! - - Comment - - >
  93. The event handlers that can be included in the Global.asax file are
    • Application Start and
      Session Start event handlers only
    • Application End and
      Session End event handlers only
    • Per-request and Non-deterministic event handlers only
    • Application Start and End ,
      Session Start and End, Per-request and Non-deterministic event handlers
  94. A Few of the Namespaces that get imported by default in an ASPX file are
  95. The Assemblies that can be referenced in an ASPX file without using @Assembly Directive is
  96. An .ASHX file contains the following
    • Code-behind that are used in the code
    • Server Controls that can be called from a code-behind file
    • HTTP handlers-software modules that handle raw HTTP requests received by ASP.NET
    • Contains normal ASP.NET code and can be used as an include file
  97. What is the output for the following code snippet:

    public class testClass
    {
    public static void Main(string[] args)
    {
    System.Console.WriteLine(args[1]);
    }//end Main
    }//end class testClass
    • Compiler Error
    • Runtime Error
    • Hello C# world
    • None of the above
  98. One of the possible way of writing an ASP.NET handler that works like an ISAPI filter- that is, that sees requests and responses and modifies them also, is by,
    • writing a module that extends FormsAuthenticatonModule and using it
    • writing a component class that extends HttpModuleCollection and using it
    • writing an HTTP module-a Class that implements IhttpModule and registering it in Web.Config
    • All of the above
  99. The ASP.NET directive that lets you cache different versions of a page based on varying input parameters, HTTP headers and browser type is
    • @OutputCache
    • @CacheOutput
    • @PageCache
    • @CacheAll
  100. If we develop an application that must accommodate multiple security levels through secure login and ASP.NET web application is spanned across three web-servers (using round-robin load balancing) what would be the best approach to maintain login-in state for the users?
    • SessionState mode="InProc"stateConnectionString=" tcpip=127.0.0.1:42424" sqlConnectionString=" data source=127.0.0.1;user id=sa;password="cookieless="false" timeout="30" />
    • SessionState mode="OutProc" stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data source=127.0.0.1;user id=sa;password=" cookieless="false" timeout="30" />
    • SessionState mode="stateserver" stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data source=127.0.0.1;user id=sa;password=" cookieless="false" timeout="30" />
  101. What is the output for the below mentioned compilation command>csc /addmodule:A.Exe B.Cs
    • A.exe
    • B.exe
    • A.dll
    • B.dll
  102. How can be the web application get configured with the following authorization rules
    • Anonymous users must not be allowed to access the application.
    • All persons except David and John must be allowed to access the application.
      • authorization>authorization>
      • authorization>authorization>
      • authorization>authorization>
      • authorization>authorization>
  103. What will be the output of the following code snippet?

    using System;
    class MainClass
    {
    static void Main( )
    {
    new MainClass().Display( 3.56 );
    }
    
    private void Display( float anArg )
    {
    Console.Write( "{0} {1}", anArg.GetType(), anArg );
    }
    
    double Display( double anArg )
    {
    Console.Write( "{0} {1}", anArg.GetType(), anArg );
    return anArg;
    }
    
    public decimal Display( decimal anArg )
    {
    Console.Write( "{0} {1}", anArg.GetType(), anArg ); return anArg;
    }
    }
    
  104. What will be output for the given code?

    Dim I as integer = 5
    Do
    I = I + 2
    Response.Write (I & " ")
    Loop Until I > 10
    
    • 5 8
    • 5 7 9
    • 7 9 11
    Errors out
  105. A structure in C# can be derived from one or more
    • class
    • interface
    • both
    • none
  106. State True or False: Static method cannot be overridden
    • True
    • False
  107. The Equivalent HTML Control for the tag is
    • HtmlInput
    • HtmlButton
    • HtmlPushButton
    • HtmlInputButton
  108. The Equivalent Html Control for the tag is
    • HtmlCheckBox
    • HtmlInputChkBox
    • HtmlInputCheckBox
    • HtmlInputTypeChkBox
  109. Which operator is used for connecting a event with a procedure in C#?
    • +=
    • =
    • both
    • none
  110. The Equivalent Html Control for the tag is




  111. State True or False: Events in Web forms are processed before the “Page Load” event
    • True
    • False
  112. What namespaces are necessary to create a localized application?
    • System.Globalization
    • System.Globalization and System.Resources.
    • System.Resources.
    • System.Array
  113. A new server-side control can be created by implementing the class ___________
    • System.Web.WebControl
    • System.Web.UI.WebControl
    • System.Web.UI.WebControls.WebControl
    • Any one of the above
  114. The parameter “clienttarget = downlevel” does one of the following
    • Adds aliases for specific user agents to an internal collection of user agent aliases
    • Indicates the useragents level of validating the controls
    • Disables all DHTML events(including Validation controls)
    • None of the above
  115. The methods in C# can be overloaded in which of the following ways
    • By having the same method name and specifying different number of parameters
    • By giving different method names and same number of parameters
    • By having the same method name and specifying different types of parameters
    • By giving different method names and same types of parameters
  116. The RangeValidator control supports the following datatype
    • Integer and String
    • Integer, Float, String, XMLDatatypes
    • Integer, String and Date
    • Integer, Boolean, Short, String and Date
  117. What is the difference between Convert.ToInt32 and int.Parse?
    • Both are same and both can handle null value.
    • Convert.ToInt32 can handle null value but int.Parse throws ArgumentNullException error.
    • int.Parse can handle null value but Convert.ToInt32 throws ArgumentNullException error.
    • Both Convert.ToInt32 and int.Parse cannot handle null value.
  118. State True or False: Any ODBC-compliant database can be accessed through ASP.NET
    • True
    • False
  119. You need to select a .NET language that has auto-documenting features built into the source code and compiler. Given the scenario above what language compiler should be selected?
    • vbc.exe
    • cl.exe
    • ilasm.exe
    • cs.exe
  120. A set of tables are maintained in a Dataset as
    • TablesCollection object
    • DataTableCollection object
    • DataRowsCollection object
    • TableRowCollection object
  121. The namespaces needed to use data mechanisms in ASP.NET pages are
    • System.Data, System.Data.OleDb or System.Data.SQL
    • System.Data, System.Data.ODBC
    • System.Data, System.Data.DataRow
    • System.Data.DataRowCollection, System.Data.DbType
  122. What are the different methods to access Database in .NET ?
    • OleDB,ODBC,SQLClient
    • OleDB, JDBC, SQLServer
    • ODBC-JDBC, DataSet, SQLClient
    • Datasource, DataSet, DSN
  123. The two properties of a DataGrid that has to be specified to turn on sorting and paging respectively are
    • EnableSorting = “true” and EnablePaging = “true”
    • DisableSorting = “false” and DisablePaging = “false”
    • AllowSorting = “true” and AllowPaging = “true”
    • Sorting = “true” and Paging = “true”
  124. Which one of the following objects is used to create a foreign key between two DataTables?
    • DataRelation
    • DataRelationship
    • DataConstraint
    • DataKey
  125. The Syntax for data-binding expressions is
    • <%# property or collection %>
    • <%# property or collection #%>
    • <%$ property or collection %>
    • <%@ property or collection %>
  126. The method that need to be invoked on the DataAdapter control to load the generated dataset with data is
    • Bind()
    • Fill()
    • FillData()
    • SetData()
  127. Which of the following operations can you NOT perform on an ADO.NET DataSet?
    • A DataSet can be synchronised with the database.
    • A DataSet can be synchronised with a RecordSet.
    • A DataSet can be converted to XML.
    • You can infer the schema from a DataSet
  128. Which is the correct statement to set the alias name for namespace in C#?
    • using System Data.OracleClient = aliasName;
    • using aliasName = System.Data.OracleClient;
    • string aliasName = using.System.Data.OracleClient;
    • Both a & b
  129. The property that indicates whether existing database constraints should be observed when performing updates
    • EnforceConstraints
    • Constraints
    • GetConstraints
    ConstraintsEnforce
  130. Which of the following languages is NOT included in the default .NET Framework installation?
  131. What are the different types of serialization supported in .NET Framework
    • XmlSerializer
    • SoapFormatter
    • XPathNavigator
    • HttpFormatter
  132. The CLR uses which format for assembly version numbers
    • Major:Minor:Revision:Build
    • Major:Build:Minor:Revision
    • Major:Revision:Minor:Build
    • Major:Minor:Build:Revision
  133. What tool is used to manage the GAC?
    • GacMgr.exe
    • GacSvr32.exe
    • GacUtil.exe
    • RegSvr.exe
  134. State True or False: A single .NET dll can contain unlimited classes
    • True
    • False
  135. State True or False: ASP.NET can currently run only on Windows Platform
    • True
    • False
  136. Which one of the following best describes “Type-Safe”
    • It ensures that the data type are safely handled
    • It ensures that types are not mismatched when they are called so uses a typecasting before referencing any data object
    • It ensures that an object only references memory locations that it’s allowed to, preventing data corruption and the accidental misuse of object types
    • All of the above
  137. The number of objects in ASP.NET is
    • 6
    • 7
    • 9
    • 10
  138. The code used to turn off buffering is
    • Buffering = false
    • OutputBuffer = false
    • BufferOutput = false
    • Buffer = Off
  139. Can you have two applications on the same machine one which is using .NET Framework 1.1 and the other using 2.0 ?
    • Yes
    • No
    • Depends on System configuration
  140. Which of the following DOT.NET tools manages certificates, certificate trust lists (CTLs), and certificate revocation lists (CRLs)?
    • sn.exe
    • certnet.exe
    • certmgr.exe
    • gacutil.exe
  141. You need to generate a public/private key pair for using in creating a shared assembly. Given the above scenario, which .NET SDK utility should be used?
    • certmgr.exe
    • gacutil.exe
    • sn.exe
    • resgen.exe
  142. The object that contains all the properties and methods for every ASP.NET page, that is built is
    • Page Object
    • HTTPPage Object
    • WebPage Object
    • System.Web.UI.Page
  143. In C#, which character is used to indicate a verbatim string literal?
    • @
    • !
    • "
    • #
  144. Which of the following operators has the highest precedence?
    • Pre Increment (++x)

    • Bitwise Or: |
    • Post Increment (x++)
  145. The uniqueId that gets generated at the start of the Session is stored in
    • Client computer as a cookie
    • Server machine
    • Passed to and fro on each and every request and response
    • Both a and b are correct
  146. State True or False: C# supports multiple-inheritance
    • True
    • False
  147. Bitwise AND operator in C# is
    • &
    • &&
    • AND
    • XAND
  148. Bitwise OR operator in C# is
    • OR
    • ||
    • |
    • XOR
  149. What’s the .NET datatype that allows the retrieval of data by a unique key?
    • Primary
    • Integer
    • Unique Identifier
    • HashTable
  150. The keyword ‘int’ maps to one of the following .NET types
    • System.Int16
    • System.Int32
    • System.Int64
    • System.Int128
  151. What can be achieved in IL which is not possible in C# ?
    Creation of an ArrayList
    • Creation of a Dictionary
    • Creation of a two dimensional array
    • Creation of a non-zero based array
  152. Which of the following is the correct code for setting a Session timeout of 30 minutes
    • Session.Timeout = 108000
    • Session.Timeout = 1800
    • Session.Timeout = 300
    • Session.Timeout = 30
  153. The process that ASP.NET uses to keep track of Sessions without cookies is
    • Cookie Munging
    • Cookie Monking
    • Cookie Mocking
    • Cookie Munching
  154. The method that transfers ASP.NET execution to another page, but returns to the original page when it is done is
    • Server.Transfer()
    • Server.Redirect()
    • Server.Execute()
    Server.Return()
  155. To test a Web Service you must create a windows application or web application to consume this service? It is True/False?
  156. How many classes can a single.NET DLL contain?
  157. What are good ADO.NET object(s) to replace the ADO Recordset object?
  158. On order to get assembly info which namespace we should import?
  159. How do you declare a static variable and what is its lifetime? Give an example.
  160. How do you get records number from 5 to 15 in a dataset of 100 records? Write code.
  161. How do you call and execute a Stored Procedure in.NET? Give an example.
  162. What is the maximum length of a varchar in SQL Server?
  163. How do you define an integer in SQL Server?
  164. How do you separate business logic while creating an ASP.NET application?
  165. If there is a calendar control to be included in each page of your application, and and we do not intend to use the Microsoft-provided calendar control, how do you develop it? Do you copy and paste the code into each and every page of your application?
  166. How do you debug an ASP.NET application?
  167. How do you deploy an ASP.NET application?
  168. Explain similarities and differences between Java and.NET?
  169. Specify the best ways to store variables so that we can access them in various pages of ASP.NET application?
  170. What are theXML files that are important in developing an ASP.NET application?
  171. What are theXML files that are important in developing an ASP.NET application?
  172. What is XSLT and what is its use?
  173. How many objects are there in ASP?
  174. Which DLL file is needed to be registered for ASP?
  175. Is there any inbuilt paging (for example shoping cart, which will show next 10 records without refreshing) in ASP? How will you do pating?
  176. What does Server.MapPath do?
  177. Name atleast three methods of response object other than Redirect.
  178. Name atleast two methods of response object other than Transfer.
  179. What is State?
  180. Explain differences between ADO and DAO.
  181. How many types of cookies are there?
  182. Tell few steps for optimizing (for speed and resource) ASP page/application.
  183. Which command using Query Analyzer will give you the version of SQL Server and Operating System?
  184. Using query analyzer, name 3 ways you can get an accurate count of the number of records in a table.
  185. What is the purpose of using COLLATE in a query?
  186. What is one of the first things you would do to increase performance of a query? For example, a boss tells you that “a query that ran yesterday took 30 seconds, but today it takes 6 minutes”?
  187. What is an execution plan? When would you use it? How would you view the execution plan?
  188. What is the STUFF function and how does it differ from the REPLACE function?
  189. What does it mean to have quoted_identifier on? What are the implications of having it off?
  190. What are the different type of replication? How are they used?
  191. What is the difference between a Local temporary table and a Global temporary table? How is each one used?
  192. What are cursors? Name four type of cursors and when each one would be applied?
  193. What is the purpose of UPDATE STATISTICS?
  194. How do you use DBCC statements to monitor various ASPects of a SQL Server installation?
  195. How do SQL Server 2000 andXML linked? What is SQL Server agent?
  196. What is referential integrity and how can we achieve it?
  197. What is indexing?
  198. Explain differences between server.transfer and server.execute method?
  199. What is de-normalization? When do you do it and how?
  200. Explain features of SQL Server like Scalibility, Availability, Integration with Internet.
  201. What is DataWarehousing?
  202. What is OLAP?
  203. How do we upgrade SQL Server 7.0 to 2000?
  204. What is job?
  205. What is Task?
  206. How would you update the rows which are divisible by 10, given a set of numbers in column?
  207. How do you find the error, how can you know the number of rows affected by last SQL Statement?
  208. What are the advantages/disadvantages of viewstate?
  209. Describe session handling in webform. How does it work and what are the limits?
  210. Explain differences between framework 1.0 and framework 1.1
  211. If we write any code for dataGrid methods, what is the access specifier used for that methods in the code behind file and why and how? Give an example.
  212. What is the use of trace utility?
  213. What are the differences between User control and Web control and Custom control?
  214. If I have more than one version of one assemblies, then how will I use old version in my application? Give an example.
  215. How do you create threadinf in.NET?
  216. Describe the Managed Execution Process.
  217. What is Active Directory? What is the namespace used to access the Microsoft Active Directories?
  218. What are Interop Services?
  219. How does you handle this COM components developed in other programming languages in.NET?
  220. How will you register COM+ services?
  221. What is a static class?
  222. What is static member?
  223. What is static function?
  224. What is static constructor?
  225. How can we inherit a static variable?
  226. How can we inherit a static member?
  227. Can we use a static function with a non-static variable?
  228. How can we access static variable?
  229. Why main function is static?
  230. How will you load dynamic assembly? How will create assesblies at run time?
  231. What is Reflection?
  232. If I have more than one version of one assemblies, then how will I use old version (how/where to specify version number?) in my application?
  233. How do you create threading in.NET? What is the namespace for that?
  234. What do you mean by Serialize and MarshalByRef?
  235. What is the difference between Array and LinkedList?
  236. What is Asynchronous call and how it can be implemented using delegates?
  237. How to create events for a control? What is custom events? How to create it?
  238. If you want to write your own dot net language, what steps you will you take care?
  239. Describe the diffeerence between inline and code behind - which is best in a loosely coupled solution?
  240. How dot net compiled code will become platform independent?
  241. Without modifying source code if we compile again, will it be generated MSIL again?
  242. How does you handle this COM components developed in other programming languages in.NET?
  243. How CCW (Com Callable Wrapper) and RCW (Runtime Callable Wrappers) works?
  244. What are the new thee features of COM+ services, which are not there in COM (MTS)?
  245. What are the differences between COM architecture and.NET architecture?
  246. Can we copy a COM dll to GAC folder?
  247. What is Shared and Repeatable Inheritance?
  248. Can you explain what inheritance is and an example of when you might use it?
  249. How can you write a class to restrict that only one object of this class can be created (Singleton class)?
  250. What are virtual destructures?
  251. What is close method? How its different from Finalize and Dispose?
  252. What is Boxing and UnBoxing?
  253. What is check/uncheck?
  254. What is the use of base keyword? Tell me a practical example for base keyword’s usage?
  255. What are the different.NET tools which you used in projects?
  256. What will do to avoid prior case?
  257. What happens when you try to update data in a dataset in.NET while the record is already deleted in SQL Server as backend?
  258. What is concurrency? How will you avoid concurrency when dealing with dataset?
  259. One user deleted one row after that another user through his dataset was trying to update same row. What will happen? How will you avoid this problem?
  260. How do you merge two datasets into the third dataset in a simple manner?
  261. If you are executing these statements in commandObject. “Select * from Table1; Select * from Table2″ How you will deal result set?
  262. How do you sort a dataset.
  263. If a dataset contains 100 rows, how to fetch rows between 5 and 15 only?
  264. What is the use of Parameter object?
  265. How to generateXML from a dataset and vice versa?
  266. How do you implement locking concept for dataset?
  267. How will you do Redo and Undo in TextBox control?
  268. How to implement DataGrid in.NET? How would you make a combo-box appear in one column of a DataGrid? What are the ways to show data grid inside a data grid for a master details type of tables? If we write any code for DataGrid methods. what is the access specifier used for that methods in the code behind file and why?
  269. How can we create Tree control in asp.NET?
  270. Write a program in C# to find the angle between the hours and minutes in a clock?
  271. Write a program to create a user control with name and surname as data members and login as method and also the code to call it.
  272. How can you read 3rd line from a text file?
  273. Explain the code behind wors and contrast that using the inline style.
  274. Explain different types of HTML, Web and server controls.
  275. What are the differences between user control and server control?
  276. How server form post-back works?
  277. Can the action attribute of a server-side

    tag be set to a value and if not how can you possibly pass data from a form page to a subsequent page?
  278. How would ASP and ASP.NET apps run at the same time on the same server?
  279. What are good ADO.NET object to replace to ADO Recordset object.
  280. Explain the differences between Server-side code and Client-side code.
  281. What type of code(server or client) is found in a Code-Behind class?
  282. Should validation (did the user enter a real date) occur server-side or client-side? Why?
  283. What does the “EnableViewState” property do? Why would I want it on or off?
  284. What is the difference between Server.Transfer and response.Redirect? Why?
  285. Can you give an example of when it would be appropriate to use a web service as opposed to a non-serviced.NET component?
  286. Let’s say I have an existing application written using VB6 and this application utilizes Windows 2000 COM+ transaction services. How would you approach migrating this application to.NET?
  287. If I am developing an application that must accomodate multiple security levels though secure login and my ASP.NET web application is spanned across three web-servers (using round-robin load balancing). What would be the best approach to maintain login-in state for the users?
  288. What are ASP.NET web forms? How is this technology different than what is available though ASP(1.0-3.0)?
  289. How does VB.NET achieve polymorphism?
  290. How does C# achieve polymorphism?
  291. Can you explain what is Inheritance and an example in VB.NET and C# of when you might use it?
  292. Describe difference between inline and code-behind?
  293. What is loosely coupled solution in.NET?
  294. What is diffgram?
  295. Where would you use an iHTTPModule and what are the limitations of any approach you might take in implementing one?
  296. What are the Advantages and DisAdvantages of viewstate?
  297. Describe session handling in a webform, how does it work and what are the limitations?
  298. How would you get ASP.NET running in Apache web servers? Explain it’s limitations.
  299. What is MSIL and why should my developers need an appreciation of it if at all?
  300. Which methos do you invoke on the DataAdapter control to load your generated dataset with data?
  301. Can you edit data in Repeater control? How?
  302. Which template must you provide, in order to display data in a Repeater control?
  303. How can you provide an alternating color scheme in a Repeater control?
  304. 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?
  305. What base class do all web forms inherit from?
  306. What method do you use to explicitly kill a user’s session? How?
  307. How do you turn off cookies for one page in your site? Give an example.
  308. Which two properties are on every validation control?
  309. What tags do you need to add within the asp:datagrid tags to bind columns manually? Give an example.
  310. How do you create a permanent cookie?
  311. What tag do you use to add a hyperlink column to the dataGrid?
  312. What is the standard you use to wrap up a call to a Web Service?
  313. Which method do you use to redirect the user to another page without performing a round trip to the client? How?
  314. What is the transport protocol you use to call a Seb Service SOAP?
  315. What does WSDL stand for?
  316. What property do you have to set to tell the grid which page to go to when using the Pager object?
  317. Where on the Internet would you look for Web Services?
  318. What tags do you need to add within the asp:datagrid tags to bind columns manually? How?
  319. 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?
  320. How is a property designated as read-only?
  321. Which control would you use if you needed to make sure the values in two different controls matched?
  322. How does ASP page work?
  323. How ASP.NET page works?
  324. What are the contents of cookie?
  325. How do you create a permanent cookie?
  326. What is ViewState? What does the “EnableViewState” property do? Whay would I want it on or off?
  327. Give an example of what might be best suited to place in the Application_Start and Session_Start subroutines?
  328. Describe the role of global.asax?
  329. How can you debug your.NET application?
  330. How do you deploy your ASP.NET application?
  331. Where do we store our connection string in ASP.NET application?
  332. Explain security types in ASP.NET?
  333. Where do we store our connection string in ASP.NET application?
  334. Explain different Authentication modes in ASP.NET?
  335. How.NET has implemented security for web applications?
  336. How to do forms authentication in ASP.NET?
  337. Explain authentication levels in.NET?
  338. Explain authorization levels in.NET?
  339. How can you debug an ASP page, without touching the code?
  340. How can you handle Exceptions in ASP.NET?
  341. How can you handle UnManaged Code Exceptions in ASP.NET?
  342. Which is the namespace used to write error message in event Lof File?
  343. What are the Page level transaction and class level transaction?
  344. What are different transaction options?
  345. What is the namespace for encryption?
  346. What is the difference between application and cache variables?
  347. What is the difference between control and component?
  348. You have defined one page_load event in ASPx page and same page_load event in code behind, how will program run?
  349. Where would you use an IHttpModule, and what are the limitations of any approach you might take in implementing one?
  350. Can you edit data in the Repeater control? Which template must you provide, in order to display data in Repeater control? How can you provide an alternating color scheme in a repeater control? What property must you set, and what method must you call in your code, in order to bind the data from some source to the repeater?
  351. In what order do the events of an ASPX page executes. As a developer is it important to understand these events?
  352. How would you get ASP.NET running in Apache web servers? Why would you even do this?
  353. What tags do you need to add within the ASP:datagrid tags to bind columns manualy?
  354. How can we create pie chart in ASP.NET?
  355. How do you understand asynchronous web services?
  356. What are the events fired when web service called?
  357. How do you perform a transaction in web services?
  358. How does SOAP transport happen and what is the role of HTTP in it? How you can access a webservice using soap?
  359. What are the different formatters can be used in both Binary and SOAP?
  360. How will you expose/publish a webservice?
  361. What is disco file?
  362. What’s the attribute for webservice method? What is the namespace for creating webservice?
  363. Can you pass SOAP messages through remoting?
  364. Explain web client class and its methods?
  365. What is flow of remoting?
  366. Explain the concept of data island?
  367. How to useXML DOM model on client using JavaScript?
  368. What are the ways to create a tree view control usingXML, XSL and JavaScript?
  369. What is XPathNavigator?
  370. What is the use of Template in XSL?
  371. What is “Well FormedXML” and “ValidXML“?
  372. How will you do SubString in XSL?
  373. How do you deal sorting columns dynamically inXML?
  374. What is “Async” property ofXML?
  375. What is XPath query?
  376. Explain differences between Element and Node.
  377. What is CDATA section?
  378. Explain definition and differences between DOM and SAX?
  379. What is GetElementbyname method will do?
  380. What will selectnode method will do?
  381. What is validXML document?
  382. What is well formedXML document?
  383. What is the difference betweenXMLDocument andXMLDataDocument?
  384. Can I replace my Sqlserver withXML files and how about handling the same?
  385. Write syntax to serialize class usingXML Serializer?
  386. How can we configure the sites in web server(IIS)?
  387. Explain advantages of IIS 6.0?
  388. What is an interface and what is an abstract class? Please, expand by examples of using both. Explain why.
  389. What is serialization, how it works in .NET?
  390. What should one do to make class serializable?
  391. What exactly is being serialized when you perform serialization?
  392. Tell me about 6h4 methods you have used to perform serialization.
  393. Did you work with XML and XSL Transformations?
  394. What methods and what for did you use to work with XML?
  395. What is the purpose of reserved word “using” in C#?
  396. How does output caching work in ASP.NET?
  397. What is connection pooling and how do you make your application use it?
  398. What are different methods of session maintenance in ASP.NET?
  399. What is Viewstate?
  400. Can any object be stored in a Viewstate?
  401. What should you do to store an object in a Viewstate?
  402. Explain how Viewstate is being formed and how it’s stored on client.
  403. Explain control life cycle, mind event order.
  404. What do you know about ADO.NET’s objects and methods?
  405. Explain DataSet.AcceptChanges and DataAdapter.Update methods.
  406. Assume you want to update a record in the database using ADO.NET. What necessary steps you should perform to accomplish this?
  407. How to retreive the value of last identity has been updated in a database (SQL Server)?
  408. What is the base class of .NET?
  409. Explain assemblies.
  410. Name some of the languages .NET support?
  411. ADO.NET features? Benefits? Drawbacks?
  412. How many types of exception handlers are there in .NET?
  413. Difference between Panel and GroupBox classes?
  414. What is the base class of Button control?
  415. What is Response object? How is it related to ASP’s Response object?
  416. What is IIS? Have you used it?
  417. Main differences between ASP and ASP.NET.
  418. Describe the difference between a Thread and a Process?
  419. What is a Windows Service and how does its lifecycle differ from a “standard� EXE?
  420. What is the maximum amount of memory any single process on Windows can address? Is this different than the maximum virtual memory for the system? How would this affect a system design?
  421. What is the difference between an EXE and a DLL?
  422. What is strong-typing versus weak-typing? Which is preferred? Why?
  423. What’s wrong with a line like this? DateTime.Parse(myString
  424. What are PDBs? Where must they be located for debugging to work?
  425. What is cyclomatic complexity and why is it important?
  426. Write a standard lock() plus double check to create a critical section around a variable access.
  427. What is FullTrust? Do GAC’ed assemblies have FullTrust?
  428. What benefit does your code receive if you decorate it with attributes demanding specific Security permissions?
  429. What does this do? gacutil /l | find /i “about”
  430. What does this do? sn -t foo.dll
  431. What ports must be open for DCOM over a firewall? What is the purpose of Port 135?
  432. Contrast OOP and SOA. What are tenets of each
  433. How does the XmlSerializer work? What ACL permissions does a process using it require?
  434. Why is catch(Exception) almost always a bad idea?
  435. What is the difference between Debug.Write and Trace.Write? When should each be used?
  436. What is the difference between a Debug and Release build? Is there a significant speed difference? Why or why not?
  437. Does JITting occur per-assembly or per-method? How does this affect the working set?
  438. Contrast the use of an abstract base class against an interface?
  439. What is the difference between a.Equals(b) and a == b?
  440. In the context of a comparison, what is object identity versus object equivalence?
  441. How would one do a deep copy in .NET?
  442. Explain current thinking around IClonable.
  443. What is boxing?
  444. Is string a value type or a reference type?
loading...

No comments:

Powered by Blogger.