The different implementations of LINQ are: => LINQ to SQL - Refers to a component ofNET Framework version 35 that provides a run-time infrastructure to manage relational data as objects => LINQ to DataSet - Refers to a component that makes it easier and faster to query over data cached in a DataSet object => LINQ to XML - Provides an in-memory XML programming interface => LINQ to Objects - Refers to the use of LINQ queries with any IEnumerable or IEnumerable(T) collection directly, without the use of an intermediate LINQ provider or API, such as LINQ to SQL or LINQ to XML
Correct Answer: The App_Code folder is automatically present in the project It stores the files, such as classes, typed data set, text files, and reports If this folder is not available in the application, you can add this folder One of the important features of the App_Code folder is that only one dll is created for the complete folder, irrespective of how many files it contains
2. What is the role of the DataSet object in ADO.NET?
Correct Answer: One of the major component of ADONET is the DataSet object, which always remains disconnected from the database and reduces the load on the database
3. What are the benefits of using of ADO.NET in .NET 4.0.
Correct Answer: The following are the benefits of using ADONET in NET 40 are as follows: => Language-Integrated Query (LINQ) - Adds native data-querying capabilities to NET languages by using a syntax similar to that of SQL This means that LINQ simplifies querying by eliminating the need to use a separate query language LINQ is an innovative technology that was introduced in NET Framework 35 => LINQ to DataSet - Allows you to implement LINQ queries for disconnected data stored in a dataset LINQ to DataSet enables you to query data that is cached in a DataSet object DataSet objects allow you to use a copy of the data stored in the tables of a database, without actually getting connected to the database => LINQ to SQL - Allows you to create queries for data stored in SQL server database in your NET application You can use the LINQ to SQL technology to translate a query into a SQL query and then use it to retrieve or manipulate data contained in tables of an SQL Server database LINQ to SQL supports all the key functions that you like to perform while working with SQL, that is, you can insert, update, and delete information from a table => SqlClient Support for SQL Server 2008 - Specifies that with the starting of NET Framework version 35 Service Pack (SP) 1, NET Framework Data Provider for SQL Server (SystemDataSqlClient namespace) includes all the new features that make it fully compatible with SQL Server 2008 Database Engine => ADONET Data Platform - Specifies that with the release of NET Framework 35 Service Pack (SP) 1, an Entity Framework 35 was introduced that provides a set of Entity Data Model (EDM) functions These functions are supported by all the data providers; thereby, reducing the amount of coding and maintenance in your application In NET Framework 40, many new functions, such as string, aggregate, mathematical, and date/time functions have been added
4. What are the Web Form Events available in ASP.NET?
Correct Answer: Steps to step through the code in NET: Start the program in debug mode When the first breakpoint is reached then step through can be done in one of the two ways: Press F10 to move to next line Select debug menu and click on step over This would step over the breakpoint to next level 3 Other options are: ?Step Into? and ?Step Out?
Correct Answer: The Systemxmldll is the real physical file, which contains the XML implementation Some of the other namespaces that allow NET to use XML are as follows: => SystemXml => SystemXmlSchema => SystemXmlXPath => SystemXmlXsl
Correct Answer: AJAX uses four technologies, which are as follows: => JavaScript => XMLHttpRequest => Document Object Model (DOM) => Extensible HTML (XHTML) and Cascading Style Sheets (CSS)
8. Which utility allows you to reference an assembly in an application?
Correct Answer: An assembly can be referenced by using the gacutilexe utility with the /r option The /r option requires a reference type, a reference ID, and a description
9. How can different versions of private assemblies be used in the same application without a re-build?
Correct Answer: You can use different versions of private assemblies in the same application without a re-build by specifying the assembly version in the AssemblyInfocs or AssemblyInfovb file
10. How can you implement a condition in a workflow?
Correct Answer: You can implement a condition by using either of the following ways: => By creating a rule condition - Specifies that you can implement conditions either directly in code or by using a tool, called the Rule Condition Editor Rule conditions are stored in a separate Extensible Markup Language (XML) file When a rule condition occurs in a workflow, the expression in a condition is evaluated and a Boolean value is returned => By creating a code condition - Refers to defining a condition directly in code A code condition can be created by writing a method in the code The method contains code for the condition and returns a Boolean value