You are on page 1of 17


NET Questionnaire
1. What is .NET? 2. What are the Features of .NET? 3. What are the Components of .NET? 4. What is the role of CLR in .NET framework? 5. What is Managed Code? 6. What is Unmanaged Code? 7. What is a Pure Compiler? 8. What is an Assembly? 9. What are types of Assemblies? 10. What is the difference between Private and Shared Assemblies? 11. What is Satellite Assembly? 12. Difference between Static and Dynamic Assemblies? 13. What is GAC? 14. In How many ways we can copy the Assembly into GAC? What are they? 15. What is Strong Name? 16. Describe about the parts of Strong Name? 17. Which tool is used to create the strong name? 18. What are the contents of Assembly? 19. What is MSIL? 20. What are the contents of MSIL? 21. What is Manifest? 22. What are the contents of Manifest? 23. What is Meta Data? 24. What is PE file? 25. Which tool is used to create PE file? 26. What is the role of JIT Compiler? 27. What is Language Interoperability? What support Microsoft is providing for this? 28. What is a Namespace? 29. What is the Global Namespace in .NET? 30. What is Globalisation? What support Microsoft provides for Globalisation? 31. What are the Basic data types available in .NET? 32. What is Boxing? And what is Unboxing? 33. What are the differences between Value Types and Reference Types? 34. What is CCW? 35. What is RCW? 36. What is CAS? 37. What is CLS? 38. What is CTS? 39. What is the purpose of ILdasm. Exe tool? 40. What is COFF? 41. What is Automatic Memory Management? 42. What is the Role of Garbage Collector? 43. What is the role of Optimising Engine? 44. Explain about the Generations in Automatic Memory Management? 45. What is the Physical Location of the Assemblies? 46. What is GUID? 47. What is DLL Hell? How Microsoft solved this problem in .NET? 48. What is Versioning Problem? How Microsoft solved this problem in .NET? 49. What is Culture information? 50. What is the physical location of GAC?

. NET Questionnaire
1. 2. What are the different types of caching ? Output caching, Fragment Caching and Data caching. What do you mean by authentication and authorization ? Authentication is the process of validating a user on the credentials(username and password) and authorization performs after authentication. After Authentication a user will varified for performing the various tasks, It access is limited it is known as authorization. What is Satellite Assemblies? Satellite assemblies hold the cultural information. Cultural refers the cultural information about the region in the application is going to use. What are different types of directives in .NET? Page, Output cache, Register What is difference between server side and client side scripting? Difference between Server.Transfer and Response.redirect ? How to use Dataview property ? How to reflect updation of data in dataset to database ? What is is advantage of Dataset over Datareader ? What is advantage of Datareader over dataset ? What are the different types a command can be execute ? (execute reader, executenonquery.. ) What are different types of validations ? What is ViewState ? and how it is managed ? What is web.config file ? what is the difference between usercontrol and costem control ? How you will set the datarelation between two coloumns ? What are advantage of viewstate and what are benifits ? How doyou turn off cookies in one page of your application ? Dataset is always disconnected ? True What is a Dataset ?


5. 6. 7.

8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20.

Tough ASP.NET interview questions

1. 2. 3. Describe the difference between a Thread and a Process? What is a Windows Service and how does its lifecycle differ from a standard EXE? 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? What is the difference between an EXE and a DLL? What is strong-typing versus weak-typing? Which is preferred? Why? Whats wrong with a line like this? DateTime.Parse(myString What are PDBs? Where must they be located for debugging to work? What is cyclomatic complexity and why is it important? Write a standard lock() plus double check to create a critical section around a variable access. What is FullTrust? Do GACed assemblies have FullTrust? What benefit does your code receive if you decorate it with attributes demanding specific Security permissions? What does this do? gacutil /l | find /i about What does this do? sn -t foo.dll What ports must be open for DCOM over a firewall? What is the purpose of Port 135? Contrast OOP and SOA. What are tenets of each How does the XmlSerializer work? What ACL permissions does a process using it require? Why is catch(Exception) almost always a bad idea? What is the difference between Debug.Write and Trace.Write? When should each be used? What is the difference between a Debug and Release build? Is there a significant speed difference? Why or why not? Does JITting occur per-assembly or per-method? How does this affect the working set? Contrast the use of an abstract base class against an interface? What is the difference between a.Equals(b) and a == b? In the context of a comparison, what is object identity versus object equivalence? How would one do a deep copy in .NET? Explain current thinking around IClonable.

4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. 25.

. NET Questionnaire
26. What is boxing? 27. Is string a value type or a reference type?
1. Explain dotnet framework ? The dot net Framework has two main components CLR and .NET Libraries. CLR (common language runtimes), that actually runs the code manages so many things for example code execution, garbage collection, memory allocation, thread management etc. Apart from CLR, the .NET framework contains .NET libraries, which are collection of namespaces and classes. The classes and namespaces are kept in a systematic way and can be used in making any application, code reuability etc. The root namespace of .NET framework is System, with this namespace many namespaces like web (system.web), data (, windows ( are generated which can be further have their namespaces. What is the difference between Metadata and Menifest ? Menifest descriubes the assembely itself. Assembely name, version number, culture information. strong name, list of all files, type refernce and reference assembely. While the Metadata describes the contents within the assembely. like classes, interfaces, namespaces, base class, scope, properties and their parameters etc. What are public and private assemblies ? differences and scope ? Public assembly are the dll/exe file that can be used in different application. The main advantage of public assemblies is code reusability. These can be used in different machine on different computers. These are also called as shared assemblies. Private assembly is the assembelyinfo.cs or assembelyinfo.vb file within an application. An application must have one private assembely, outside this application there is no scope of privaet assembely. What is an Assembly ? Assemblies are the fundamental buildung block of .NET framework. They contains the type and resources that are useful to make an application. Assembly enables code reuse, version control, security and deployment. An assembely can have four parts : Menifest, Type metadata, MSIL and Resource file What is GAC ? GAC (global assembelu cache) Its an space (directory C:\winnt\assembely) on the server where all the shared assemblies are registrered and that can be used in the application for code reuse. What do you know about Machine.Config file ? Its a base configuration file for all .NET assemblies running on the server. It specifies a settings that are global to a perticular machine. Different types of authentication modes in .NET Framework ? Windows, Forms, Passport and None. What is Strong name ? Strong name ensures the uniqueness of assembely on the server. A strong name incudes information about Assembely version, Public/Private Key token, Culture information and ASsembely name. Where does the GAC exist? By default C:\\assembely e.g c:\winnt\assembely or c:\windows\assembely What are different types that a variable can be defined and their scopes? Public- Can be accessed anywhere Private- anywhere in the same class Protected with in the class and the class that inherits this class Friend- Members of the class within the assembly Protected friend- member of assembly or inheriting class. What is DLL HELL? Previously (when using VB) we can have a situation that we have to put same name dll file in a single directory , but the dlls are of different versions. This is known as dll hell. What is COM, COM+ and DCOM ? COM (Component Object Model) is a standard that is used to for communication between OS and the softwares. COM is used to create reusable software components COM+: COM+ is an extension of Component Object Model (COM). COM+ is both an OOP architecture and a set of operating system services. DCOM is an extension of the Component Object Model (COM) that allows COM components to communicate across network boundaries. Traditional COM components can only perform intercrosses communication across process boundaries on the same machine. DCOM uses the RPC mechanism to transparently send and receive information between COM components (i.e., clients and servers) on the same network. What is boxing and unboxing ? Implicit (manual) conversion of value type to reference type of a variable is known as BOXING, for example integer to object type conversion. Conversion of Boxed type variable back to value type is called as UnBoxing. What is connected and disconnected database?













. NET Questionnaire
Connected and Disconnected database basically the approach that how you handle the database connection, It may be connected that once the application starts you have to open the connection only for a single time and then performs many transactions and close the connection just before exit the application. This approach will be generally used in windows based application. On other hand disconnected architecture refers to open and close the connection for each time while performing a transaction. What is garbage collection and how it works ? Garbage Collection is Automatic Memory Manager for the dotnet framework. It manages the memory allocated to the .NET framework. CLR takes cares about .NET framework. When a variable is defined, Its gets a space in the memory and when the program control comes out of that function the scope of variable gets ended, so the garbage collection acts on and memory will releases. Describe the role of inetinfo.exe, aspnet_isapi.dll andaspnet_wp.exe in the page loading process. inetinfo.exe is the Microsoft IIS server running, handling ASP.NET requests among other things. When an ASP.NET request is received (usually a file with .aspx extension),the ISAPI filter aspnet_isapi.dll takes care of it by passing the request to the actual worker process aspnet_wp.exe. Whats the difference between Response.Write() andResponse.Output.Write()? The latter one allows you to write formatted output. What methods are fired during the page load? init() - when the page is instantiated, Load() - when the page is loaded into server memory, PreRender() - the brief moment before the page is displayed to the user as HTML, Unload() - when page finishes loading. Where does the Web page belong in the .NET Framework class hierarchy? System.Web.UI.Page Where do you store the information about the users locale? System.Web.UI.Page.Culture Whats the difference between Codebehind="MyCode.aspx.cs" and Src="MyCode.aspx.cs"? CodeBehind is relevant to Visual Studio.NET only. Explain the differences between Server-side and Client-side code? Server-side code runs on the server. Client-side code runs in the clients browser. What type of code (server or client) is found in a Code-Behind class? Servr-side code. Should validation (did the user enter a real date) occur server-side or client-side? Why? Client-side, this reduces an additional request to the server to validate the users input. What does the "EnableViewState" property do? Why would I want it on or off? It enables the view state on the page. It allows the page to save the users input on a form. What is the difference between Server.Transfer and Response.Redirect? Why would I choose one over the other? Server.Transfer is used to post a form to another page. Response.Redirect is used to redirect the user to another page or site. Can you explain the difference between an ADO.NET Dataset and an ADO Recordset? A DataSet can represent an entire relational database in memory, complete with tables, relations, and views. A DataSet is designed to work without any continuing connection to the original data source. Data in a DataSet is bulk-loaded, rather than being loaded on demand. There's no concept of cursor types in a DataSet. DataSets have no current record pointer You can use For Each loops to move through the data. You can store many edits in a DataSet, and write them to the original data source in a single operation. Though the DataSet is universal, other objects in ADO.NET come in different versions for different data sources. Can you give an example of what might be best suited to place in the Application_Start and Session_Start subroutines? This is where you can set the specific variables for the Application and Session objects. If Im developing an application that must accommodate 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? Maintain the login state security through a database. Can you explain what inheritance is and an example of when you might use it? When you want to inherit (use the functionality of) another class. Base Class Employee. A Manager class could be derived from the Employee base class. Whats an assembly? Assemblies are the building blocks of the .NET framework. Describe the difference between inline and code behind? Inline code written along side the html in a page. Code-behind is code written in a separate file and referenced by the .aspx page. Explain what a diffgram is and a good use for one? The DiffGram is one of the two XML formats that you can use to render DataSet object contents to XML. For reading database data to an XML file to be sent to a Web Service. What is MSIL, and why should my developers need an appreciation of it if at all?



17. 18.

19. 20. 21. 22. 23. 24. 25. 26.





31. 32.



. NET Questionnaire
35. 36. 37. 38. 39. MSIL is the Microsoft Intermediate Language. All .NET compatible languages will get converted to MSIL. Which method do you invoke on the DataAdapter control to load your generated dataset with data? .Fill() method isused. Can you edit data in the Repeater control? No, it just reads the information from its data source Which template must you provide, in order to display data in a Repeater control? Item Template How can you provide an alternating color scheme in a Repeater control? Use the Alternating Item Template 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? You must set the DataSource property and call the DataBind method. What base class do all Web Forms inherit from? The Page class. Name two properties common in every validation control? ControlToValidate property, ErrorMessage and Text property. What tags do you need to add within the asp:datagrid tags to bind columns manually? Set AutoGenerateColumns Property to false on the datagrid tag What tag do you use to add a hyperlink column to the DataGrid? What is the transport protocol you use to call a Web service? SOAP is the preferred protocol. True or False: A Web service can only be written in .NET? False What does WSDL stand for? Web Services Description Language Where on the Internet would you look for Web services? 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? DataTextField property Which control would you use if you needed to make sure the values in two different controls matched? CompareValidator Control True or False: To test a Web service you must create a windows application or Web application to consume this service? False, the webservice comes with a test page and it provides HTTP-GET method to test. How many classes can a single .NET DLL contain? It can contain many classes. What is the difference between user controls and custom controls? CUSTOM CONTROLS are DLL's. It can be placed in the toolbox. Drag and drop controls. USER CONTROLS: are pages (.ascx).It can not be placed in the tool box. What are the 3 types of session state modes? nproc-session kept as live object in the web server(aspnet_wp.exe) Stateserver-Session serialized and stored in memory in a seperate process(aspnet_state.exe),we can use for webform architecture. SQLServer-Session serialized and stored in sql server. What are the 6 types of validation controls in ASP.NET? 1. Required Field validator. 2. Range validator. 3. Regular Expression validator. 4. Compare validator. 5. custom validator. 6. Validation summary. What are the 3 types of caching in ASP.NET? Output Caching (Page Caching)- stores the responses from an page(aspx) or user control(.ascx). Fragment Caching (Partial Caching)- Only stores the portion of a page. Data Caching is the programmatic way to your objects to a managed cache. //Add item Cache["TopProducts"] = objTopProductsDataset; //Retrieve item objDataset = Cache["TopProducts"]; How to Manage state in ASP.NET? We can manage the state in two ways Client based techniques are View state, Query strings and Cookies. Server based techniques are Application and Session What is the difference between overloading and shadowing? Overloading ----------- A Member has the name, but something else in the signature is different. Shadowing --------- A member shadows another member if the derived member replaces the base member What is the difference between overloading and overriding? Overloading: Method name remains the same with different signatures. Overriding: Method name and Signatures must be the same. What is the difference between Manifest and Metadata?

40. 41. 42. 43. 44. 45. 46. 47. 48.

49. 50.

51. 52.








. NET Questionnaire
Manifest: Manifest describes assembly itself. Assembly Name, version number, culture, strong name, list of all files, Type references and referenced assemblies. Meta Data: Metadata describes contents in an assembly classes, interfaces, enums, structs, etc., and their containing namespaces, the name of each type, its visibility/scope, its base class, the interfaces it implemented, its methods and their scope, and each methods parameters, types properties, and so on. 60. What is Boxing and Unboxing? Boxing is an implicit conversion of a value type to the type object int i = 123; // A value type Object box = i // Boxing CASTING: casting is the process of converting a variable from one type to another (from a string to an integer) Unboxing is an explicit conversion from the type object to a value type int i = 123; // A value type object box = i; // Boxing int j = (int)box; // Unboxing What are the method parameters in c#? C# is having 4 parameter types which are 1.Value Parameter. Default parameter type. Only Input 2.Reference (ref) Parameter. Input\Output 3. Output (out) Parameter. 4. Parameter (params) Arrays What are value types and reference types? Value type bool, byte, char, decimal, double, enum, float, int, long, sbyte, short, strut, uint, ulong, ushort Value types are stored in the Stack Reference type class, delegate, interface, object, string Reference types are stored in the Heap What are the two activation modes for .NET Remoting? 1. Singleton 2. Singlecall What's single call Activation mode used for? The Server Object is instantiated for responding to just one single request What's the singleton Activation mode used for? The server object is instantiated for responding number of clients What are the channels and Formatters? Channels HTTP and TCP Binary Over TCP is most efficient SOAP over HTTP is most interoperable Formatters Binary and SOAP What are the two Authentication modes for SQL server connection? Trusted Connection - Windows Authentication Non trusted Connection - Sql Server Authentication (its preferable for web services) What is typed dataset? Data Access is normally done using indexes on collections in object model. In ADO.NET it is possible to create a variation on a Dataset that does support such syntax. Such Dataset is called "Typed Dataset". Errors in the syntax are detected during compile time rather than runtime. Advantages of Typed Dataset: The data designer tool generates typed Datasets. When we type the name of a dataset while writing a code, we get a list of all available tables in the dataset. No need to remember the table names. For (eg) instead of typing my Dataset. Tables ("products") we can type my dataset.products. What is DataReader? DataReader is a read only stream of data returned from the database as the query executes. It contains one row of data in memory at a time and is restricted to navigating forward only in the results one record at a time. Datareader supports access to multiple result sets but only one at a time and in the order retrieved. In ADO data is no longer available through the Datareader once the connection to the data source is closed which means a Datareader requires a connection to the Database throughout its usage. o/p parameters or return values are only available through the Datareader once the connection is closed. Difference between Dataset and Recordset? The Recordset was not XML-based and could not be serialized to XML easily or flexibly. Finally, a Recordset was not independent of a data store because it tracked a Connection object and through its methods could send queries to the data source to populate, update, and refresh its data. To that end, the Recordset contained functionality found in the ADO.NET Dataset, data reader, and data adapter objects. Similar to the Dataset, a Recordset could be disconnected from its data store and therefore act as an in-memory cache of data. Of course, it could also be used in a connected model depending on the cursor options that were set. Although the Recordset object stored multiple versions of each column for each of its rows, it was not by nature able to represent multiple tables without the use of the Data Shape Provider. What is an Assembly, Private Assembly and Shared Assembly, Strong Name?



63. 64. 65. 66.






. NET Questionnaire
Assembly: Assemblies are basically the compiled code in .Net which contains the code in Microsoft Intermediate Langauge and one more thing that assemblies do for us as compared to dlls is they can maintain versioning with the help of the manifest. You dont need to register the assemblies after compiling like we needed in dlls. You can put the assemblies in the bin folder and refer the namespaces from there. In short find the assembly description as: Assemblies are the building blocks of .NET Framework applications; they form the fundamental unit of deployment, version control, reuse, activation scoping, and security permissions. An assembly is a collection of types and resources that are built to work together and form a logical unit of functionality. An assembly provides the common language runtime with the information it needs to be aware of type implementations. To the runtime, a type does not exist outside the context of an assembly. Private assembly is used inside an application only and does not have to be identified by a strong name Shared assembly can be used by multiple applications and has to have a strong name. Strong Name: A strong name includes the name of the assembly, version number, culture identity, and a public key token. What is a Delegate? A Delegate is a strongly typed function pointer. A delegate object encapsulates a reference to a method. What are web services? A Web Service is an application that delivers a service across the Internet using the standards and technologies defined in the Web Services architecture in a platform-independent and languageneutral fashion. Web Services rely on several XML protocols based on open standards that are collectively known as the Web Services architecture Define Automatic memory Management: C# Provides Automatic memory Management. Automatic memory Management increases code quality and enhances developer productivity without negatively impacting either expressiveness or performance. Developers are freed from this burdensome task. Define Threading: It's a process of creating applications that can perform multiple tasks independently. Difference between XML AND HTML? XML: User definable tags. Content driven End tags required for well formed documents Quotes required around attributes values Slash required in empty tags HTML: Defined set of tags designed for web display Format driven End tags, Quotes and Slash not required. What is XSLT and what is its use? XSL Transformations (XSLT) is yet another popular W3C specification that defines XML-based syntax, used to transform XML documents to any other text format, such as HTML, text, XML, etc. XSLT style sheets can be applied on the source XML document to transform XML into some other XML, or text, HTML, or any other text format. What is Diffgram? It's an XML format. It's one of the two xml formats that uses to render Dataset object contents to XML. For reading database data to an XML file to be sent to a webservice. What is the Role of XSL? Querying a database and then formatting the result set so that it can be validated as an XML document allows developers to translate the data into an HTML table using XSLT rules. Consequently, the format of the resulting HTML table can be modified without changing the database query or application code since the document rendering logic is isolated to the XSLT rules What is SAX? Simple API for XML Processing (SAX) is an alternative to DOM, and can be used to parse XML documents. SAX is based on streaming model. The SAX parser reads input XML stream and generates various parsing events that an application can handle. With each parsing event, the parser sends sufficient information about the node being parsed. Unlike DOM, SAX does not build an in-memory representation of the source XML document, and hence it is an excellent alternative when parsing large XML documents, as SAX does not require that much memory (and resources). Unlike DOM, SAX is not defined/controlled by W3C. See for details. Give a few examples of types of applications that can benefit from using XML. XML allows content management systems to store documents independently of their format, which thereby reduces data redundancy. Another answer relates to B2B exchanges or supply chain management systems. In these instances, XML provides a mechanism for multiple companies to exchange data according to an agreed upon set of rules. A third common response involves wireless applications that require WML to render data on hand held devices. When constructing an XML DTD, how do you create an external entity reference in an attribute value? When using SGML, XML DTDs don't support defining external entity references in attribute values. Give some examples of XML DTDs or schemas that you have worked with. Although XML does not require data to be validated against a DTD, many of the benefits of using the technology are derived from being able to validate XML documents against business or




75. 76.






82. 83.

. NET Questionnaire
technical architecture rules. Polling for the list of DTDs that developers have worked with provides insight to their general exposure to the technology. Commonly used DTDs such as FpML, DocBook, HRML, and RDF, as well as experience designing a custom DTD for a particular project 84. What is SOAP and how does it relate to XML? The Simple Object Access Protocol (SOAP) uses XML to define a protocol for the exchange of information in distributed computing environments. SOAP consists of three components: an envelope, a set of encoding rules, and a convention for representing remote procedure calls. Unless experience with SOAP is a direct requirement for the open position, knowing the specifics of the protocol, or how it can be used in conjunction with HTTP, is not as important as identifying it as a natural application of XML. 85. What is WSDL? Another key standard in the Web Services architecture is the Web Services Description Language or WSDL for short. Whereas SOAP is responsible for providing a platform-neutral protocol for transporting data types and inter application messaging, WSDL is an XML grammar responsible for exposing the methods, arguments, and return parameters exposed by a particular Web Service. 86. Whats the difference between authentication and authorization? Authentication happens first. You verify users identity based on credentials. Authorization is making sure the user only gets access to the resources he has credentials for. 87. Explain loosely coupled events. Loosely coupled events enable an object (publisher) to publish an event. Other objects (subscribers) can subscribe to an event. COM+ does not require publishers or subscribers to know about each other. Therefore, loosely coupled events greatly simplify the programming model for distributed applications. 88. Define scalability. The application meets its requirement for efficiency even if the number of users increases. 89. Define reliability. The application generates correct and consistent information all the time. 90. Define availability. Users can depend on using the application when needed. 91. Define security. The application is never disrupted or compromised by the efforts of malicious or ignorant users 92. Define manageability. Deployment and maintenance of the application is as efficient and painless as possible 93. Explain durability. Make sure that the system can return to its original state in case of a failure. 94. Explain integrity. Ensure data integrity by protecting concurrent transactions from seeing or being adversely affected by each others partial and uncommitted results. 95. Explain consistency. We must ensure that the system is always left at the correct state in case of the failure or success of a transaction. 96. Explain JIT activation. The objective of JIT activation is to minimize the amount of time for which an object lives and consumes resources on the server. With JIT activation, the client can hold a reference to an object on the server for a long time, but the server creates the object only when the client calls a method on the object. After the method call is completed, the object is freed and its memory is reclaimed. JIT activation enables applications to scale up as the number of users increases 97. Define Constructors and destructors Create and destroy methods - often called constructors and destructors - are usually implemented for any abstract data type. Occasionally, the data type's use or semantics are such that there is only ever one object of that type in a program. In that case, it is possible to hide even the object's handle' from the user. However, even in these cases, constructor and destructor methods are often provided. Of course, specific applications may call for additional methods, e.g. we may need to join two collections (form a union in set terminology) - or may not need all of these. 98. Which two properties are on every validation control? 99. Which template must you provide, in order to display data in a Repeater control? 100. Which property on a Combo Box do you set with a column name, prior to setting the Data Source, to display data in the combo box? 101. Which method do you use to redirect the user to another page without performing a round trip to the client? 102. Which method do you invoke on the Data Adapter control to load your generated dataset with data? 103. Which control would you use if you needed to make sure the values in two different controls matched? 104. Where would you use an iHTTP Module, and what are the limitations of any approach you might take in implementing one. 105. Where on the Internet would you look for Web services? 106. What is MSIL, and why should my developers need an appreciation of it if at all? 107. What is an assembly?

. NET Questionnaire
108. What type of code (server or client) is found in a Code-Behind class? 109. What tags do you need to add within the asp: data grid tags to bind columns manually? 110. What tags do you need to add within the asp: data grid tags to bind columns manually? 111. What tag do you use to add a hyperlink column to the Data Grid? 112. 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 What property do you have to set to tell the grid which page to go to when using What method do you use to explicitly kill a user s session? 113. What is "Common Language Runtime" (CLR)? 114. When to use Remoting? What is web service? 115. What is Web.config? 116. What is the transport protocol you use to call a Web service SOAP? 117. What is the standard you use to wrap up a call to a Web service? 118. What is the difference between Servers? Transfer and Response. Redirect? Why would I choose one over the other? 119. What is the difference between a namespace and assembly name? A namespace is a logical naming scheme for types in which a simple type name, such as MyType, is preceded with a dot-separated hierarchical name. Such a naming scheme is completely under control of the developer. For example, types MyCompany.FileAccess. A and MyCompany.FileAccess.B might be logically expected to have functionally related to file access. The .NET Framework uses a hierarchical naming scheme for grouping types into logical categories of related functionality, such as the ASP.NET application framework, or remoting functionality. Design tools can make use of namespaces to make it easier for developers to browse and reference types in their code. The concept of a namespace is not related to that of an assembly. A single assembly may contain types whose hierarchical names have different namespace roots, and a logical namespace root may span multiple assemblies. In the .NET Framework, a namespace is a logical design-time naming convenience, whereas an assembly establishes the name scope for types at run time. 120. What is the difference between "using System.Data;" and directly adding the reference from "Add References Dialog Box"? When u compiles a program using command line, u add the references using /r switch. When you compile a program using Visual Studio, it adds those references to our assembly, which are added using "Add Reference" dialog box. While "using" statement facilitates us to use classes without using their fully qualified names. For example: if u have added a reference to "System.Data.SqlClient" using "Add Reference" dialog box then u can use SqlConnection class like this: System.Data.SqlClient.SqlConnection But if u add a "using System.Data.SqlClient" statement at the start of ur code then u can directly use SqlConnection class. On the other hand if u add a reference using "using System.Data.SqlClient" statement, but don't add it using "Add Reference" dialog box, Visual Studio will give error message while we compile the program. 121. What is Reflection? 122. What is managed code and managed data? 123. What is Machine.config? 124. What is GAC? 125. What does WSDL stand for? 126. What does the "EnableViewState" property do? Why would I want it on or off? 127. What base class do all Web Forms inherit from? 128. What are the Types of Assemblies? 129. What are the disadvantages of view state/what are the benefits? 130. What are HTML controls, Web controls, and server controls 131. What are Attributes? Attributes are declarative tags in code that insert additional metadata into an assembly. There exist two types of attributes in the .NET Framework: Predefined attributes such as Assembly Version, which already exist and are accessed through the Runtime Classes; and custom attributes, which you write yourself by extending the System.Attribute class. webFarm Vs webGardens-- A web farm is a multi-server scenario. So we may have a server in each state of US. If the load on one server is in excess then the other servers step in to bear the brunt. How they bear it is based on various models. 1. Round Robin. (All servers share load equally) 2. NLB (economical) 3. HLB (expensive but can scale up to 8192 servers) 4. Hybrid (of 2 and 3). 5. CLB (Component load balancer). A web garden is a multi-processor setup. i.e., a single server (not like the multi server above) 132. How to implement web forms in .Net? Go to web.config and Here for mode = you have 4 options. a) Say mode=inproc (non web farm but fast when you have very few customers). b) Say mode=StateServer (for webfarm) c) Say mode=SqlServer (for webfarm) Whether to use option b or c depends on situation. StateServer is faster but SqlServer is more reliable and used for mission critical applications. How to use webgardens in .Net: Go to web.config and webGarden="false"...> Change the false to true. You have one more attribute that is related to webgarden in the same tag called cpu Mask. True or False: To test a Web service you must create a windows application or Web application to consume this service.

. NET Questionnaire
133. Should validation (did the user enter a real date) occur server-side or client-side? Why? 134. In what order do the events of an ASPX page execute. As a developer is it important to understand these events? 135. How would you implement inheritance using VB.NET/C#? 136. How would you get ASP.NET running in Apache web servers - why would you even do this? 137. How many classes can a single .NET DLL contain? 138. How is a property designated as read-only? 139. How do you turn off cookies for one page in your site? 140. How do you create a permanent cookie? 141. How can you provide an alternating color scheme in a Repeater control? 142. Explain the differences between Server-side and Client-side code? 143. Differences between Datagrid, Datalist and Repeater? 1. Datagrid has paging while Datalist does not. 2. Datalist has a property called repeat. Direction = vertical/horizontal. (This is of great help in designing layouts). This is not there in Datagrid. 3. A repeater is used when more intimate control over html generation is required. 4. When only checkboxes/radio buttons are repeatedly served then a checkbox list or radio button list are used as they involve fewer overheads than a Datagrid. The Repeater repeats a chunk of HTML you write, it has the least functionality of the three. DataList is the next step up from a Repeater; accept you have very little control over the HTML that the control renders. DataList is the first of the three controls that allow you Repeat-Columns horizontally or vertically. Finally, the DataGrid is the mother load. However, instead of working on a row-by-row basis, youre working on a column-by-column basis. DataGrid caters to sorting and has basic paging for your disposal. Again you have little control, over the HTML. NOTE: DataList and DataGrid both render as HTML tables by default. Out of the 3 controls, I use the Repeater the most due to its flexibility w/ HTML. Creating a Pagination scheme isn't that hard, so I rarely if ever use a DataGrid. Occasionally I like using a DataList because it allows me to easily list out my records in rows of three for instance. 144. Describe the difference between inline and code behind - which is best in a loosely coupled solution? -Inline code written along side the html in a page. Code-behind is code written in a separate file and referenced by the .aspx page. 145. Can you give an example of what might be best suited to place in the application_Start and Session_Start subroutines? This is where you can set the specific variables for the Application and Session objects. 146. Explain loosely coupled solution, ASP.NET Authentication Providers and IIS Security. 147. What are the disadvantages of server side calendar controls? -- always post back to server, no style sheets Describe the role of inetinfo.exe, aspnet_isapi.dll andaspnet_wp.exe in the page loading process inetinfo.exe is the Microsoft IIS server running, handling ASP.NET requests among other things. When an ASP.NET request is received (usually a file with .aspx extension),the ISAPI filter aspnet_isapi.dll takes care of it by passing the request to the actual worker process aspnet_wp.exe. 148. Whats a bubbled event? -- When you have a complex control, like DataGrid, writing an event processing routine for each object (cell, button, row, etc.) is quite tedious. The controls can bubble up their event handlers, allowing the main DataGrid event handler to take care of its constituents. 149. What data type does the RangeValidator control support? Integer, String and Date. 150. Where would you use an iHTTPModule, and what are the limitations of any approach you might take in implementing one?-- One of ASP.NETs most useful features is the extensibility of the HTTP pipeline, the path that data takes between client and server. You can use them to extend your ASP.NET applications by adding pre- and post-processing to each HTTP request coming into your application. For example, if you wanted custom authentication facilities for your application, the best technique would be to intercept the request when it comes in and process the request in a custom HTTP module. 151. How security is implemented in -- ASP.NET implements authentication using authentication providers, which are code modules that verify credentials and implement other security functionality such as cookie generation. ASP.NET supports the following three authentication providers: Forms Authentication: Using this provider causes unauthenticated requests to be redirected to a specified HTML form using client side redirection. The user can then supply logon credentials, and post the form back to the server. If the application authenticates the request (using application-specific logic), ASP.NET issues a cookie that contains the credentials or a key for reacquiring the client identity. Subsequent requests are issued with the cookie in the request headers, which means that subsequent authentications are unnecessary. Passport Authentication: This is a centralized authentication service provided by Microsoft that offers a single logon facility and membership services for participating sites. ASP.NET, in conjunction with the Microsoft Passport software development kit SDK), provides similar functionality as Forms Authentication to Passport users. Windows Authentication: This provider utilizes the authentication capabilities of IIS. After IIS completes its authentication, ASP.NET uses the authenticated identity's token to authorize access. To enable a specified authentication provider for an ASP.NET application, you must create an entry in the application's configuration file as follows: // web.config file<authentication mode = "[Windows/Cookie/Passport/None]"> </authentication>


. NET Questionnaire
152. Whats a proxy of the server object in .NET Remoting? --Its a fake copy of the server object that resides on the client side and behaves as if it was the server. It handles the communication between real server object and the client object. This process is also known as marshaling. 153. What are remotable objects in .NET Remoting? --Remotable objects are the objects that can be marshaled across the application domains. You can marshal by value, where a deep copy of the object is created and then passed to the receiver. You can also marshal by reference, where just a reference to an existing object is passed. 154. What are channels in .NET Remoting? -- Channels represent the objects that transfer the other serialized objects from one application domain to another and from one computer to another, as well as one process to another on the same box. A channel must exist before an object can be transferred. 155. What is a formatter? -- A formatter is an object that is responsible for encoding and serializing data into messages on one end, and deserializing and decoding messages into data on the other end. Choosing between HTTP and TCP for protocols and Binary and SOAP for formatters, what are the trade-offs? Binary over TCP is the most efficient; SOAP over HTTP is the most interoperable. 156. Whats Single Call activation mode used for? -- If the server object is instantiated for responding to just one single request, the request should be made in Single Call mode. 157. Whats Singleton activation mode? A single object is instantiated regardless of the number of clients accessing it. Lifetime of this object is determined by lifetime lease. 158. How do you define the lease of the object? -- By implementing ILease interface when writing the class code. 159. How can you automatically generate interface for the remotable object in .NET with Microsoft tools? Use the Soapsuds tool. 160. How can you save the desired properties of Windows Forms application? -- .config files in .NET are supported through the API to allow storing and retrieving information. They are nothing more than simple XML files, sort of like what .ini files were before for Win32 apps. 161. So how do you retrieve the customized properties of a .NET application from XML .config file? -Initialize an instance of AppSettingsReader class. Call the GetValue method of AppSettingsReader class, passing in the name of the property and the type expected. Assign the result to the appropriate variable. 162. Which method is typically used in conjunction with server variables to identify virtual and relative directory settings? The Server object has many methods that are used to control the various features of the web server. Some of these are: To ensure that application-level variables are not updated by more than one user simultaneously, Which of the two methods are used by the Application object? 163. How security is implemented in ASP.NET implement security in three ways a- Forms-based security in this case you set the IIS authentication system to anonymous access to enable the ASP.NET to validate authentication itself by checking if the user name & Password is equivalent to the same info which is stored anyhow (XML, Database, ...) b- Windows-based security: according to this option any user access the site must have a registered windows account and a dedicated permissions c-Passport-based security. This is a centric authentication service in which one login could auto authenticate the user for many sites where is no need to store the user names & passwords into each site 164. In my website for eg. it has around 100 aspx. In that I want 20 aspx files should be available to the users only if they are logged in. How can I achieve this with web.config file? All what you have to do is to create a folder then move your required files into it then configure the web.config as follows : <system.web> <authentication mode="Windows" /> </system.web> <location path="myFolder"> // or you can write your pages names instead of folder name <system.web> <authorization> <deny users="?"/> </authorization> </system.web> </location> 165. What do you meant by default view? It is the auto generated default view of the table in the dataset, when dealing with any table in a dataset, .NET makes a view of that table to can communicate with it so it is the default one 166. Difference between stored procedure and stored functions? They all do the same functions except the stored functions can return a table and can be implemented into a select statement like "Select myFunction (some Param)" 167. I have a file called a.aspx which has some textboxes. I want to post the values to b.aspx without using response.redirect. How can I do this? You can use session variables to store this a.aspx textboxes Like session ["myVar"]=TextBox1.Txt. 168. Different between DataGrid and DataList? The DataGrid is designed to show a table-like data to the user but the DataList is designed to show a row-like data. 169. If one web form inherits another web form, is the derived web form able to access base class? 170. Technically, to whom we bind the any controls? 171. You create English, French, and German versions of your ASP.NET application. You have separate resource files for each language version. You need to deploy the appropriate resource file based on the language settings of the server. What should you do? 172. You create an ASP.NET page that uses images to identify areas where a user can click to initiate actions. The users of the application use Internet Explorer. You want to provide a pop-up window when


. NET Questionnaire
the user moves the mouse pointer over an image and you want the pop-up window to display text that identifies the action that will be taken if the user clicks the image. What should you do? 173. You create an ASP.NET application that contains confidential information. You use form-based authentication to validate users. You need to prevent unauthenticated users from accessing the application. What should you do? 174. Dataset in can contain how many tables (we all know that dataset can contain many tables but is there any limit or not...and if yes than how many tables? 175. In ASP.NET, which two properties are present on every validation control? 176. You are creating an ASP.NET application for your company Techno Inc. Techno Inc data is stored in a Microsoft SQL Server 6.5 database. Your application generates accounting summary reports based on transaction tables that contain million of rows. You want your application to return each summary report as quickly as possible. You need to configure your application to connect to the database and retrieve the data in a way that achieves this goal. What should you do? 177. You are creating an ASP.NET application that uses the Microsoft SQL Server .NET Data Provider to connect to Techno Inc's database. Your database administrator reports that, due to heavy usage of the application, data requests are being blocked while users wait for new connections to be created. You want to improve throughput by setting a minimum connection pool size of 10.What should you do? 178. You are creating an ASP.NET application for Gsoft. Customers will use the application to file claim forms online. You plan to deploy the application over multiple servers. You want to save session state information to optimize performance. What are two possible ways to achieve this goal? 179. You are creating an ASP.NET page for Techno Inc. The page uses string concatenation to gather data from multiple e-mail messages and format the data for display on the page. You want to ensure that the page displays as quickly as possible. What should you do? 180. What is the difference between Response.Write() & Response.Output.Write() 181. Explain the differences between Server-side and Client-side code? A. Server-side code executes on the server. Client-side code executes in the context of the clients' browser. 182. What are some ways to manage state in an ASP.Net application? A. Session objects, Application objects, ViewState, cookies, hidden form fields. 183. What does the "EnableViewState" property do? Why would I want it on or off? A. It allows page objects to save their state in a Base64 encoded string in the page HTML. One should only have it enabled when needed because it adds to the page size and can get fairly large for complex pages with many controls. (It takes longer to download the page). 184. What is the difference between Server.Transfer and Response.Redirect? Why would I choose one over the other? A. Server.Transfer transfers excution directly to another page. Response.Redirect sends a response to the client and directs the client (the browser) to load the new page (it causes a roundtrip). If you don't need to execute code on the client, Transfer is more efficient. 185. How can I maintain Session state in a Web Farm or Web Garden? Use a State Server or SQL Server to store the session state. 186. What does WSDL stand for? What does it do? Web Services Description Language. It describes the interfaces and other information of a web service. 187. Does C# support multiple-inheritance? No, use interfaces instead. 188. Can you prevent your class from being inherited by another class? Yes. The keyword sealed will prevent the class from being inherited. 189. What does the keyword virtual declare for a method or property? The method or property can be overridden. 190. What's the top .NET class that everything is derived from? System.Object. 191. What does it mean that a String is immutable?


. NET Questionnaire
Strings cannot be altered. When you alter a string (by adding to it for example), you are actually creating a new string. 192. If I have to alter a string many times, such as mutliple concatenations, what class should I use? StringBuilder. It is not immutable and is very efficient. 193. In a Try - Catch - Finally block, will the finally block execute if an exception has not occurred? If an Exception has occurred? Yes and yes. 194. Explain the three tier or n-Tier model. Presentation (UI), business (logic and underlying code) and data (from storage or other sources). 195. What is SOA? Service Oriented Architecture. In SOA you create an abstract layer that your applications use to access various "services" and can aggregate the services. These services could be databases, web services, message queues or other sources. The Service Layer provides a way to access these services that the applications do not need to know how the access is done. For example, to get a full customer record, I might need to get data from a SGL Server database, a web service and a message queue. The Service layer hides this from the calling application. All the application knows is that it asked for a full customer record. It doesn't know what system or systems it came from or how it was retrieved. 196. What is the role of the DataReader class in ADO.NET connections? It returns a forward-only, read-only view of data from the data source when the command is executed. 197. Is XML case-sensitive? 198. Name some of the Microsoft Application Blocks. Have you used any? Which ones? (****) Examples: Exception Management ,Logging ,Data Access ,User Interface ,Caching Application Block for .NET ,Asynchronous Invocation Application Block for .NET ,Configuration Management Application Block for .NET From which one of the following locations. 199. Does the garbage collector remove objects? 200. Briefly explain how code behind works and contrast that using the inline style? 201. What are HTML controls, Web controls, and server controls? 202. Briefly explain how the server control validation controls work? 203. Briefly explain what user controls are and what server controls are and the differences between the two? 204. Briefly explain how server form post-back works (perhaps ask about view state as well). 205. Can the action attribute of a server-side <form> tag be set to a value and if not how can you possibly pass data from a form page to a subsequent page. (Extra credit: Have you heard of comdna. :-) 206. What the difference between User Control and Custom Control? 207. For "pattern matching" which Validation control You will choose? 208. Is it possible a ASPX page contain more than One Scripting Language? 209. Where the default session data stored in ASP.NET? 210. You Create an ASP.NET Application for online Ordering. You need to store a small amount of secured information. The Page must work properly for browsers that do not support cookies. You anticipate that the volume of orders on the site will be high and you need to conserve server resources. What should you do? 211. In the ValidationExpression property of the RegularExpressionValidator control, Which sign allows any value to be entered? 212. Which event stored in the Global.asax file is fired when the first ASP.NET page in the current application directory (or its sub-directories) is called? 213. In the ValidationExpression property of the RegularExpressionValidator control, Which sign specifies that checking starts from here? 214. A summary of the errors occurring in a page can be displayed in which of the following formats?


. NET Questionnaire
215. Comparision of values entered into a control with a specified pattern, is made possible by which of the following controls? 216. What should be done in order to disable client-side validation? 217. Which property of the radio button control restricts the user to select only one option from a given set of options? 218. Which are the rich Controls provided by ASP.NET? 219. With the help of which property is it possible to check whether an .ASPX page is posted back to the server? 220. How many forms can be added in 221. Which interface is used by ASP.NET to create unique Ids? 222. The trace tag in the web.config file uses which of the following parameters to describe whether the statistics should be arranged according to time or category? 223. Which of the following methods does ASP.NET provide to print messages in the trace information block of the page? 224. Which of the following methods are used to write the Trace object? 225. What happens in the following code? Response.Cache.SetExpires(DateTime.Now.AddSeconds(30)); Response.Cache.SetSlidingExpiration(true); 226. Which property of the Session object is used to set the local identifier? 227. Which type of Caching is supported by ASP.NET? 228. Which element of the ADRotator control specifies the priority of the advertisement in the shedule of rotation of all advertisements? 229. Which of the following classes should we import in order to set the duration of the cache? 230. What is the event handler that occurs when a user leaves application by closing his browser? 231. Is OleDbDataReader allows forward and backward row navigation? 232. Which OleDbCommand class property is used to specify the SQL command or stored procedure to execute? 233. How to retrieve the item in DataGrid when it is added in footer? 234. Page Processing steps ASP.Net Order of events 235. Which one of following serialization is used to serialize public and private data? 236. What should be done in order to create a permanent cookie? 237. Which property do we use to remove cookies from one page? 238. How do you change the Page Title in ASP.NET dynamically? 239. Which of the following codes help you automatically refresh your web page after 20 seconds? 240. For displaying the sales data of past 5 years in a DataGrid on a Web Form(good Performance), the best strategy to use in retrieving the data is? 241. Which tools would be set to create the .snk (Strong Names) files to store the public/private keys in? 242. For obtaining performance information about Web Application, which of the following will be used? 243. Security is very important on any web site. By default, a .Net web site is configured with which of the following authentication types? 244. For providing on-line help for the users what should be done? 245. Which type of files should be place in /bin directory user the virtual directory? 246. In, if several hundred users want to access the data from sql server 2000 then for improving the performance what should be done? 247. Which is the most appropriate place to install a Strong-Named assembly that is intended for use among several web applications? 248. In ASP .Net Page class, which event would be attached to an event published by a control on the web page? 249. In global.asax file which event will occur first when you invoke an application? 250. In order to debug and trace application execution, what namespace should you use? 251. Which of the following Methods would be used in displaying an Alert Message Box from System.Web.UI.WebPage? 252. How many ways are there to maintain states in an application ? 253. Which is a key element of a Web application? 254. Which one contains the style definitions to use for the HTML generated by project? 255. How to define a class which can be stored in viewstate? 256. With the help of which property is it possible to check whether an .ASPX page is posted back to the server? 257. Which of the following channels used by .Net Remoting for communication across boundaries? 258. Does the .NET Framework have in-built support for serialization? 259. How do we know exactly when an Application_End event will occur at runtime? use imperative security rather than declarative security 260. Do Web controls support Cascading Style Sheets? 261. Is he "EnableViewState" is allows the page to save the users input on a form? 262. Which of MS platform will be used to create Web applications and Web services that run under IIS? 263. What web form event handler will be triggered when the Page object is released from memory? 264. Which namespace contains classes for the Session object? 265. What web form event handler will be triggered as the first step in your Web forms life cycle?


. NET Questionnaire
266. In order to debug and trace application execution, what namespace should you use IIS gives certain options for how the server will run Web application. For pure performance, which option should be used? 267. What is the event handler that occurs at the beginning of each request to the server to turn Session state off for a Web form? 268. What is the base type of a data source object in ASP.NET data-binding? 269. Can we use Query String with the Server.Transfer and Server.Execute ? 270. What is the sequence of methods which get fired during a page load and unload? 271. What data type does the RangeValidator control support? 272. Difference between Server.Transfer() & Response.Redirect() methods? 273. Which of the following is the standard column type in the DataGrid? 274. What are the different methods to access Database in .Net ? 275. An ASP.NET Web application have been developed that supports caching. Specifically, we use output caching for all user controls. Each user control is loaded by calling the LoadControl method of the Page class. We want to debug one of the pages that contain a user control before the user control has been cached. What exactly should we examine in a Watch window to discover property values of the loaded user control? 276. An ASP.NET Web application is developed, that uses a Calendar control on one of its pages. Users have complained that after selecting several dates on the control, they have to click the Back button in the browser multiple times before they are directed to a previous page. What is the solution of this problem? 277. In Writing an ASP.NET Web application that uses a SQL Server 2000 database to store software bugs. You want the database to be automatically created on the target machine when the ASP.NET application is deployed. You decide to create a Setup project to solve this problem. What two things can you do to your Setup project, ASP.NET Web application project, or both, that will allow you to accomplish this? (Choose two. Each answer presents part of the complete solution.) 278. What is the name of the JavaScript function generated by ASP.NET's Page.RegisterClientScriptBlock method? 279. Which one of the following is NOT a valid state management tool? 280. How many maximum numbers of cookies are allowed to your site? 281. Which DataSource object assigned to the data Web control's DataSource property? 282. Which of the following data source is the forward only connection to the result set? 283. Which control provides no visible interface elements? 284. Which class is used to execute the SQL statement or stored procedure against a data source? 285. Which of the following method of the command class returns an integer value, that indicates the number of rows affected by the query? 286. By default, when does validation automatically occur? 287. A relationship within a Dataset is represented by which one of the following? 288. What is the command line utility used to create a proxy class for a Web Service? 289. What type of processing model does ASP.NET simulate? 290. Once ASP.NET automatically parses and compiles the global.asax file into a dynamic .NET Framework class, which base class is extended? 291. Which property of the AdRotator control points to the file with the information required to work? 292. What is the difference between output cache and ASP.NET data cache? 293. Your ASP.NET application resides in the virtual directory called "MyStore." The parent web directory has a web.config file. Your application has no web.config file in it. The Mode attribute of the CustomErrors tag in the parent web.config file is set to "Off." Referring to the parameters above, what is the result if NO error handling code is written. 294. How do we register a channel that listens on a specific port more than once? 295. When a client calls a method on a remote object, the parameters as well as other details related to the call are transported to the remote object through a class becomes a component when it conforms to a standard for component interaction. This standard is provided through what interface IChannel interface provides which of the following informational properties? 296. How to view DataGrid pages randomly? 297. Name the event that fires the script needed for updating the data in the DataGrid? (ASP.NET) 298. What do the Advertisement file contains in the AdRotator component (ASP.NET)? 299. What is UDDI stands for? 300. WebRequest class is derived from HttpWebRequest Class found in System.Web. - True or False 301. What is the current problem for email object with .NET framework? Means is there facility in for validate SMTP mail servers? 302. We can only send emails using System.Web.Mail.SMTP class, not to receive mails. - True or False 303. What is the default authentication method for IIS? 304. What is the name of the default JavaScript file which validates the web forms when we use validation controls? 305. While switching from one page to another which of the following method allow you to pass additional information?


. NET Questionnaire
306. Hows the DLL Hell problem solved in .NET? Assembly versioning allows the application to specify not only the library it needs to run (which was available under Win32), but also the version of the assembly. 307. What namespaces are necessary to create a localized application? System.Globalization, System.Resources. 308. Whats the difference between // comments, /* */ comments and /// comments? Single-line, multi-line and XML documentation comments. 309. How do you generate documentation from the C# file commented properly with a command-line compiler? Compile it with a /doc switch. 310. Whats the difference between <c> and <code> XML documentation tag? Single line code example and multiple-line code example. 311. What debugging tools come with the .NET SDK? CorDBG command-line debugger, and DbgCLR graphic debugger. Visual Studio .NET uses the DbgCLR. To use CorDbg, you must compile the original C# file using the /debug switch. 312. What does the this window show in the debugger? It points to the object thats pointed to by this reference. Objects instance data is shown. 313. What does assert() do? In debug compilation, assert takes in a Boolean condition as a parameter, and shows the error dialog if the condition is false. The program proceeds without any interruption if the condition is true. 314. Whats the difference between the Debug class and Trace class? Documentation looks the same. Use Debug class for debug builds, use Trace class for both debug and release builds. 315. Why are there five tracing levels in System.Diagnostics.TraceSwitcher? The tracing dumps can be quite verbose and for some applications that are constantly running you run the risk of overloading the machine and the hard drive there. Five levels range from None to Verbose, allowing to fine-tune the tracing activities. 316. Where is the output of TextWriterTraceListener redirected? To the Console or a text file depending on the parameter passed to the constructor. 317. How do you debug an ASP.NET Web application? Attach the aspnet_wp.exe process to the DbgClr debugger. 318. What are three test cases you should go through in unit testing? Positive test cases (correct data, correct output), negative test cases (broken or missing data, proper handling), exception test cases (exceptions are thrown and caught properly). 319. Can you change the value of a variable while debugging a C# application? Yes, if you are debugging via Visual Studio.NET, just go to immediate window. 320. Explain the three services model (three-tier application). Presentation (UI), business (logic and underlying code) and data (from storage or other sources). 321. What are advantages and disadvantages of Microsoft-provided data provider classes in ADO.NET? SQLServer.NET data provider is high-speed and robust, but requires SQL Server license purchased from Microsoft. OLE-DB.NET is universal for accessing other sources, like Oracle, DB2, Microsoft Access and Informix, but its a .NET layer on top of OLE layer, so not the fastest thing in the world. ODBC.NET is a deprecated layer provided for backward compatibility to ODBC engines. 322. What is the wildcard character in SQL? Lets say you want to query database with LIKE for all employees whose name starts with La. The wildcard character is %, the proper query with LIKE would involve La%. 323. Explain ACID rule of thumb for transactions. Transaction must be Atomic (it is one unit of work and does not dependent on previous and following transactions), Consistent (data is either committed or roll back, no in-between case where something has been updated and something hasnt), Isolated (no transaction sees the intermediate results of the current transaction), Durable (the values persist if the data had been committed even if the system crashes right after). 324. What connections does Microsoft SQL Server support? Windows Authentication (via Active Directory) and SQL Server authentication (via Microsoft SQL Server username and passwords). 325. Which one is trusted and which one is UN trusted? Windows Authentication is trusted because the username and password are checked with the Active Directory; the SQL Server authentication is un trusted, since SQL Server is the only verifier participating in the transaction. 326. Why would you use untrusted verificaion? Web Services might use it, as well as non-Windows applications. 327. What does the parameter Initial Catalog define inside Connection String? The database name is to be connected. 328. Whats the data provider name to connect to Access database? 329. What does Dispose method do with the connection object? Deletes the object from the memory. 330. What is a pre-requisite for connection pooling?


. NET Questionnaire
Multiple processes must agree that they will share the same connection, where every parameter is the same, including the security settings.