Database Accp 2007

Reviewed by Editorial Team
The ProProfs editorial team is comprised of experienced subject matter experts. They've collectively created over 10,000 quizzes and lessons, serving over 100 million users. Our team includes in-house content moderators and subject matter experts, as well as a global network of rigorously trained contributors. All adhere to our comprehensive editorial guidelines, ensuring the delivery of high-quality content.
Learn about Our Editorial Process
| By Vietha
V
Vietha
Community Contributor
Quizzes Created: 11 | Total Attempts: 9,911
| Attempts: 142 | Questions: 105
Please wait...
Question 1 / 105
0 %
0/100
Score 0/100
1. Scalability is one of the advantages provided by ADO.Net.

Explanation

ADO.Net provides scalability as one of its advantages. Scalability refers to the ability of a system to handle increasing amounts of work, such as handling more users or processing larger amounts of data, without sacrificing performance. ADO.Net allows for efficient data access and manipulation, making it suitable for handling large amounts of data and supporting high levels of concurrent user activity. Therefore, the statement that scalability is one of the advantages provided by ADO.Net is true.

Submit
Please wait...
About This Quiz
Database  Accp 2007 - Quiz

This quiz titled 'Database ACCP 2007' assesses knowledge in ADO. Net, focusing on scalability, XML support, data components, and DataSet objects. It's designed for learners to understand ADO. Net's role in enhancing programming efficiency and reducing errors, suitable for students and professionals in software development.

Tell us your name to personalize your report, certificate & get on the leaderboard!
2. The SqlDataReader class allow you to read a stream of rows from an SQL Server database.

Explanation

The explanation for the given correct answer is that the SqlDataReader class in .NET allows the programmer to retrieve a forward-only, read-only stream of rows from an SQL Server database. It provides a fast and efficient way to read data from the database in a sequential manner. This class is commonly used when there is a need to retrieve large amounts of data from the database and process it row by row. Hence, the statement "The SqlDataReader class allows you to read a stream of rows from an SQL Server database" is true.

Submit
3. A cached user control is referenced in the web page using @Register directive.

Explanation

When a cached user control is referenced in a web page using the @Register directive, it means that the user control is being registered in the page's markup. This allows the user control to be used and accessed within the web page. By caching the user control, it can be stored in memory and reused multiple times, improving performance and reducing the need to recreate the control each time it is used. Therefore, the statement "A cached user control is referenced in the web page using @Register directive" is true.

Submit
4. The DetailsView control is used to displa, edit, insert and delete data in a single record.

Explanation

The DetailsView control is a versatile tool in ASP.NET that allows users to display, edit, insert, and delete data for a single record. It provides an intuitive interface for interacting with individual records in a database, making it a useful tool for data management tasks.

Submit
5. SiteMaps create in ASP.Net contain XML

Explanation

In ASP.Net, SiteMaps are used to define the structure and navigation of a website. These SiteMaps are typically created in XML format. XML (eXtensible Markup Language) is a markup language that is commonly used for structuring and organizing data. Therefore, it is true that SiteMaps created in ASP.Net contain XML.

Submit
6. ADO.Net providers better programmbility because ADo.Net data components in Visual Studio lead to faster programming reduce the number of errors.

Explanation

ADO.Net providers offer better programmability because they provide a set of data components in Visual Studio that enable faster programming and reduce the likelihood of errors. These components simplify the process of connecting to databases, retrieving data, and performing database operations. By using ADO.Net providers, developers can write code more efficiently and effectively, resulting in improved productivity and fewer programming mistakes.

Submit
7. Aind and Eval expressions are using with ASP.NET data binding.

Explanation

Aind and Eval expressions are commonly used with ASP.NET data binding. These expressions allow developers to access and manipulate data in a flexible and dynamic manner. Aind expressions are used to bind data to controls and evaluate expressions during data binding. Eval expressions, on the other hand, are used to evaluate data-bound expressions and display the results in controls. Therefore, the statement "Aind and Eval expressions are using with ASP.NET data binding" is true.

Submit
8. Data source are new group of controls that acts as a bridge between an external data source and data-bound controls on a web form.

Explanation

The statement is true because data source controls are indeed a new group of controls that serve as a link between an external data source and data-bound controls on a web form. These controls provide a way to connect to databases, XML files, and other data sources, and allow for easy binding of data to various controls on the web form. This helps in simplifying the process of retrieving and displaying data from external sources on the web page.

Submit
9. The Xml data present in string form or xml files can be bound to the XmlDataSource control

Explanation

The XmlDataSource control in ASP.NET allows for binding XML data, whether it is in string form or stored in XML files. This control provides a convenient way to work with XML data and can be used to populate other controls such as GridView or Repeater. By setting the DataFile or Data property of the XmlDataSource control, the XML data can be easily bound and manipulated in the web application. Therefore, the statement "The Xml data present in string form or xml files can be bound to the XmlDataSource control" is true.

Submit
10. Caching enables caching of web pages as well as application data.

Explanation

Caching allows for the storage of both web pages and application data, which improves the performance and speed of accessing these resources. By storing frequently accessed content in a cache, subsequent requests for the same content can be served faster, reducing the load on the server and improving the overall user experience. Therefore, the statement "Caching enables caching of web pages as well as application data" is true.

Submit
11. ADO.NET provides extensive support for Extensible Markup Language(XML).

Explanation

ADO.NET does indeed provide extensive support for Extensible Markup Language (XML). ADO.NET includes classes and methods that allow developers to easily work with XML data, such as reading, writing, and manipulating XML documents. This support enables seamless integration of XML data with relational databases, making it easier to exchange and process data between different systems.

Submit
12. Both Oracle 8i and Oracle 9i database can be accessed using .Net Framework Data Provider for Oracle.

Explanation

The statement is true because both Oracle 8i and Oracle 9i databases can be accessed using the .Net Framework Data Provider for Oracle. This means that developers using .Net can connect to and interact with both versions of the Oracle database using the same data provider.

Submit
13. Rows of DataViw object can be filtered based on custom expressions or based on their row state.

Explanation

The given statement is true. In a DataViw object, rows can be filtered based on custom expressions or based on their row state. This means that you can apply filters to display only the rows that meet specific criteria or conditions. This functionality allows for more efficient data analysis and manipulation, as it allows users to focus on relevant data and exclude unnecessary information.

Submit
14. The XmlDataSource control enables you to work with data from XMl file.

Explanation

The XmlDataSource control is a built-in control in ASP.NET that allows developers to easily work with data from XML files. It provides a convenient way to bind XML data to various data-bound controls, such as GridView or Repeater. By setting the XmlDataSource control's DataFile property to the path of an XML file, developers can retrieve and manipulate the XML data within their application. Therefore, the statement "The XmlDataSource control enables you to work with data from XML file" is true.

Submit
15. You can add the SqlDataSource control and configure its properties through the properties window.

Explanation

The statement is true because the SqlDataSource control is a data source control in ASP.NET that can be used to connect to a SQL database and retrieve data. By adding the SqlDataSource control to a web form and configuring its properties through the properties window, developers can easily set up the connection string, select statement, and other settings required to retrieve data from the database. This allows for a simplified and efficient way to retrieve data in ASP.NET applications.

Submit
16. In GridView, the property gets or sets whether paging is enable.

Explanation

The correct answer is "AllowPaging". This property in GridView determines whether paging is enabled or not. If set to true, it allows the GridView to display multiple pages and the user can navigate through them. If set to false, all the data will be displayed on a single page.

Submit
17. A DataSet object represents an in-memory, disconnected cache of data that can be manipulated.

Explanation

A DataSet object is a data structure in .NET that represents an in-memory cache of data. It is disconnected from the underlying data source, meaning that any changes made to the DataSet do not affect the original data source. The DataSet can be manipulated using various methods and properties to perform operations such as filtering, sorting, and updating the data. Therefore, the statement "A DataSet object represents an in-memory, disconnected cache of data that can be manipulated" is true.

Submit
18. Data binding is a method to bind the properties of the control to the user input.

Explanation

Data binding is a process that connects the properties of a control, such as a textbox or dropdown, to the user input. This allows any changes made by the user to automatically update the underlying data source, and vice versa. By binding the control's properties to the user input, developers can create dynamic and interactive user interfaces. Therefore, the statement "Data binding is a method to bind the properties of the control to the user input" is true.

Submit
19. The DataView class has three Constructors.

Explanation

The statement is true because the DataView class does indeed have three constructors. Constructors are special methods in a class that are used to initialize the object of that class. Having multiple constructors allows for different ways to create an instance of the DataView class, depending on the arguments passed to the constructor.

Submit
20. Data source controls help to boost productivity in Web applications.

Explanation

Data source controls are components in web development frameworks that simplify the process of connecting to and retrieving data from a data source, such as a database. These controls provide a layer of abstraction that reduces the amount of code and complexity required to interact with data. By handling many of the repetitive and tedious tasks involved in data access, data source controls help developers save time and effort, thereby boosting productivity in web applications. Therefore, the statement that data source controls help to boost productivity in web applications is true.

Submit
21. The SiteMapDataSource control can be bound to navigation controls such as TreeView or menu

Explanation

The SiteMapDataSource control is a data source control in ASP.NET that is used to retrieve site map data. It can be bound to navigation controls such as TreeView or menu, which allows the navigation controls to display the site map data and provide a hierarchical structure for navigation. This enables easy navigation and organization of the website's content. Therefore, the statement "The SiteMapDataSource control can be bound to navigation controls such as TreeView or menu" is true.

Submit
22. A User control is stored in a separate file with the extension .ascx

Explanation

A user control is a reusable component in ASP.NET that is stored in a separate file with the extension .ascx. This allows the user control to be easily added to multiple pages within a web application. By separating the user control into its own file, it promotes code reusability and maintainability. Therefore, the statement "A User control is stored in a separate file with the extension .ascx" is true.

Submit
23. The Xml file that you want to associate with the XmlDataSource control must be present in the current application folder or its sub-folder.

Explanation

The explanation for the given correct answer is that the XmlDataSource control in an application can only associate with an XML file that is located in the current application folder or its sub-folder. This ensures that the control can access and retrieve data from the XML file effectively. If the XML file is not present in the specified location, the control will not be able to establish a connection and retrieve data, resulting in an error. Therefore, it is necessary for the XML file to be present in the current application folder or its sub-folder for the XmlDataSource control to function correctly.

Submit
24. SQL Server database cannot be accessed using .NET Framework Data Provider for SQl Server.

Explanation

This statement is false. SQL Server database can be accessed using .NET Framework Data Provider for SQL Server. The .NET Framework provides a data provider specifically designed for SQL Server, which allows developers to connect to and interact with SQL Server databases using .NET applications. This data provider offers various classes and methods that enable seamless integration between SQL Server and .NET applications, making it possible to perform database operations such as querying, inserting, updating, and deleting data.

Submit
25. It is possible to change the starting node while generating the site map tree structure using the SiteMapDataSource control.

Explanation

The explanation for the given correct answer is that the SiteMapDataSource control allows for flexibility in changing the starting node while generating the site map tree structure. This means that users can choose a different starting point for the site map, allowing for customization and adaptation to specific needs or requirements.

Submit
26. The Table property of the DataView class returns the DataTable associated with the view.

Explanation

The Table property of the DataView class returns the DataTable associated with the view. This means that when we access the Table property of a DataView object, it will give us the DataTable object that the DataView is based on. This can be useful when we want to perform operations on the original DataTable using the DataView. Therefore, the statement "The Table property of the DataView class returns the DataTable associated with the view" is true.

Submit
27. The SqlDataSource control allows you to retrieve data and modify in the MS SQL Server databases, OLEDB databses as well as ODBC or Oracle databases,

Explanation

The SqlDataSource control is a feature in ASP.NET that allows developers to retrieve data from and modify data in various types of databases, including MS SQL Server, OLEDB, ODBC, and Oracle. This control provides a convenient way to connect to and interact with different database systems, making it a versatile tool for database operations in ASP.NET applications. Therefore, the statement "The SqlDataSource control allows you to retrieve data and modify in the MS SQL Server databases, OLEDB databases as well as ODBC or Oracle databases" is true.

Submit
28. You can auto-generate data bindings for the XmlDataSource control or you can manually assign data bindings for specific fields in the control.

Explanation

The statement is true because when using the XmlDataSource control, you have the option to either auto-generate data bindings or manually assign data bindings for specific fields. This flexibility allows developers to choose the most suitable approach based on their specific requirements and preferences.

Submit
29. This specifies where the cached page will be placed.

Explanation

The "Location" parameter specifies where the cached page will be placed. It determines the storage location for the cached version of the page, allowing the developer to choose whether the cache should be stored on the client's browser or on the server. This parameter is useful for optimizing performance and reducing server load by caching frequently accessed pages.

Submit
30. A DataSet object makes use of a DataReader object to read the Data.

Explanation

A DataSet object is a disconnected, in-memory representation of data that can hold multiple tables, relationships, and constraints. It does not directly interact with a data source. On the other hand, a DataReader object is a forward-only, read-only stream of data from a data source. In order for a DataSet object to retrieve data from a data source, it needs to use a DataReader object. Therefore, the statement "A DataSet object makes use of a DataReader object to read the Data" is true.

Submit
31. A user control is cached by including an @OutputCache directive in the .ascx file of the control.

Explanation

When an @OutputCache directive is included in the .ascx file of a user control, it means that the user control can be cached. Caching a user control means that the control's output is stored in memory or on disk, so that subsequent requests for the control can be served more quickly. This can improve the performance of the application by reducing the amount of processing required to generate the control's output. Therefore, the statement "A user control is cached by including an @OutputCache directive in the .ascx file of the control" is true.

Submit
32. Enable sorting columns.

Explanation

The correct answer is "AllowSorting" because it is a clear and concise term that accurately describes the action of enabling the sorting of columns. It is also consistent with common naming conventions for similar functionality in software applications.

Submit
33. ASP.Net 2.0 does not need any code to written for some of the common data scenarios such as paging and sorting.

Explanation

ASP.Net 2.0 introduced the GridView control, which provides built-in functionality for common data scenarios such as paging and sorting. This means that developers do not need to write any additional code to implement these features. The GridView control automatically handles the logic for paging and sorting data, making it easier and more efficient for developers to work with data in ASP.Net 2.0. Therefore, the statement is true.

Submit
34. The Insert() method is used to add an item  to the cache.

Explanation

The Insert() method is used to add an item to the cache. This means that when we want to add a new item to the cache, we can use the Insert() method to do so.

Submit
35. The LabelFiled property of ObjectList is typically set to a column name from the data source.

Explanation

The LabelField property of ObjectList is typically set to a column name from the data source. This means that the ObjectList control will use the values from that column as labels for each item in the list. By setting the LabelField property to a specific column name, developers can easily display relevant information from the data source in the ObjectList control. Therefore, the statement "The LabelField property of ObjectList is typically set to a column name from the data source" is true.

Submit
36. The FormView and DetailView controls can have customized style similar to GridView control

Explanation

The statement is true because both the FormView and DetailView controls in ASP.NET allow for customization of their styles, just like the GridView control. This means that developers can modify the appearance and layout of these controls to match the design of their application or website.

Submit
37. Creates versions of a page based on the request's header.

Explanation

The correct answer is "VaryByHeader". This option suggests that the system creates different versions of a page based on the request's header. This means that the content of the page may vary depending on the specific header information provided in the request. This can be useful for delivering personalized or customized content to different users based on their preferences or characteristics indicated in the header.

Submit
38. This object represents the data type of columns property of DataTable

Explanation

The given correct answer is DataColumnCollection. This object represents the collection of DataColumn objects, which defines the schema or structure of a DataTable. It allows you to add, remove, and access DataColumn objects within a DataTable. By using DataColumnCollection, you can define the data type, name, and other properties of each column in a DataTable.

Submit
39. An SQL Server 6.5 database can be accessed using .Net Framework Data Provider for OLE DB.

Explanation

The statement is true because SQL Server 6.5 database can indeed be accessed using .Net Framework Data Provider for OLE DB. The .Net Framework Data Provider for OLE DB allows developers to access SQL Server databases using the OLE DB technology, which is a set of COM-based interfaces that provide access to a variety of data sources. This means that developers can use the .Net Framework and its associated libraries to interact with SQL Server 6.5 databases, enabling them to perform tasks such as querying, inserting, updating, and deleting data.

Submit
40. The SqlDataReader class is defined in the System.Data.Sql

Explanation

The given answer, "Fasle", is incorrect. The correct answer is "False". The SqlDataReader class is not defined in the System.Data.Sql namespace. It is actually defined in the System.Data.SqlClient namespace.

Submit
41. DataReader Object do not support paging or sorting functionality.

Explanation

The statement is true because a DataReader object in programming does not have built-in functionality for paging or sorting data. The DataReader is a forward-only, read-only data retrieval mechanism that allows efficient access to data in a database. It is typically used when we need to quickly read and process large amounts of data, but it does not provide methods for sorting or paging through the data. To perform paging or sorting, we would need to use other data access objects or techniques.

Submit
42. You must always create a new connection when specifying a connection in the Configure Data Source dialog.

Explanation

In the Configure Data Source dialog, you do not always have to create a new connection when specifying a connection. You can choose an existing connection that has already been established. Therefore, the statement is false.

Submit
43. This option is preferable when you need to pass in a value for a parameter from another page.

Explanation

The QueryString option is preferable when you need to pass in a value for a parameter from another page. This is because the QueryString allows you to append parameters to the URL, which can then be accessed on the receiving page. By using the QueryString, you can easily pass data between pages without the need for complex form submissions or storing values in cookies.

Submit
44. Specifies or retrieves the time in seconds for which the control caches the data.

Explanation

The correct answer is "CacheDuration". This option is the most appropriate because it accurately reflects the purpose of the control, which is to specify or retrieve the time in seconds for which the data is cached. The term "CacheDuration" implies a duration or time period, which aligns with the given description. "CacheTimer" does not accurately convey the purpose of the control, as it suggests a mechanism for measuring time rather than specifying a duration.

Submit
45. ASP.Net data binding typically involves declarative or inline binding rxpressions that are given in the form of <#..%>

Explanation

ASP.Net data binding typically involves declarative or inline binding expressions that are given in the form of . This statement is false because the correct syntax for declarative or inline binding expressions in ASP.Net is . The # symbol is missing in the given statement, making it incorrect.

Submit
46. Specifies whether caching is enabled or not

Explanation

The given correct answer, "EnableCaching," suggests that it is a property or variable that determines whether caching is enabled or not. It implies that this particular setting controls the caching functionality within a system or software.

Submit
47. This contains actual data.

Explanation

A DataRow is a single row of data in a DataTable. It represents a record or a set of values for a specific entity. It contains the actual data values for each column in the DataTable.

Submit
48. This property specifies how many records will be repeated on the same line or row.

Explanation

The correct answer is "RepeateColumns." This property determines the number of records that will be repeated on the same line or row. It specifies the number of columns in which the records will be displayed, allowing for a horizontal repetition of records.

Submit
49. This property gets or sets the grid line style in DataList.

Explanation

The property "GridLines" is used to get or set the grid line style in a DataList. This property determines whether grid lines are displayed between the cells in the DataList. By setting this property to different values, such as "None", "Horizontal", "Vertical", or "Both", the developer can control the appearance of the grid lines in the DataList.

Submit
50. This gets or set the index of currently displayed page.

Explanation

The correct answer is "PageIndex". This property is used to get or set the index of the currently displayed page. It is commonly used in pagination scenarios where a large set of data is divided into multiple pages, allowing users to navigate through them. By setting the PageIndex property, the application can determine which page should be displayed to the user, or retrieve the current page index to perform certain operations.

Submit
51. .Net Framework Data Provider for SQL Server does not require an additional OLE DB or Open Database Connectity (ODBC) layer to access a SQL Server.

Explanation

The .Net Framework Data Provider for SQL Server is a component that allows .NET applications to communicate with SQL Server databases. Unlike other data providers, it does not require an additional layer such as OLE DB or ODBC to access the SQL Server. This means that developers can directly connect to SQL Server using the .Net Framework Data Provider without the need for any additional drivers or middleware. Therefore, the statement "True" is correct.

Submit
52. This caches a page for the specified number of second.

Explanation

This question is asking for the correct option that caches a page for a specified number of seconds. The option "Duration" is the correct answer because it refers to the amount of time that the page will remain cached before it needs to be refreshed.

Submit
53. This Create versions of a page based on the query string.

Explanation

The correct answer is "VaryByParam". This option refers to the capability of creating different versions of a page based on the query string. It means that the page can have different variations depending on the parameters passed in the URL. This allows for personalized or customized content based on the user's input or preferences.

Submit
54. Creates a new version of a page if the request for the same page comes from a different browser.

Explanation

VaryByCustom is a feature in web development that allows for the creation of different versions of a page based on specific criteria. In this case, it creates a new version of a page if the request for the same page comes from a different browser. This can be useful for tailoring the page content or layout to better suit the capabilities or preferences of different browsers.

Submit
55. The SelectionList control is not strickly data-bound an is used for any mobile web application.

Explanation

The explanation for the given correct answer is that the SelectionList control is not strictly data-bound, meaning it can be used for any mobile web application. This suggests that the SelectionList control is versatile and can be used in various scenarios, regardless of the specific data-binding requirements. Therefore, the statement "The SelectionList control is not strictly data-bound and is used for any mobile web application" is true.

Submit
56. The More link in the ObjectList control is seen only if a default command has been set for the control.

Explanation

The More link in the ObjectList control is seen only if a default command has been set for the control. This means that if there is no default command set, the More link will not be visible.

Submit
57. A DataSet object is one of components of the data provider.

Explanation

A DataSet object is not one of the components of the data provider. The data provider is responsible for retrieving and managing data from a data source, while a DataSet object is an in-memory representation of a set of data that can be manipulated independently of the data source.

Submit
58. This type of dataset does not have a schema of its own. It consists of table, columns and rows.

Explanation

An untyped dataset is a type of dataset that does not have a predefined schema. It consists of tables, columns, and rows, but the structure is not defined beforehand. This means that the dataset can be more flexible and can accommodate different types of data without strict constraints. In contrast, a typed dataset has a predefined schema, which means that the structure and types of data are predetermined. Therefore, the given correct answer is "UntypedDataSet" because it aligns with the description provided.

Submit
59. Retrieves the XML representation of the data in a DataSet object as a String.

Explanation

The correct answer is DataSet.GetXml(). This method is used to retrieve the XML representation of the data in a DataSet object as a String. It allows the data in the DataSet to be easily serialized or transferred over a network. The ReadXml() method, on the other hand, is used to read XML data into a DataSet, not retrieve the XML representation of the data.

Submit
60. The element is used in mark up to create a SqlDataSource.

Explanation

The element is used in markup to create a SqlDataSource. This element allows developers to connect to a database and retrieve data using SQL queries. It provides a convenient way to bind data to data-bound controls in ASP.NET applications. By setting properties such as ConnectionString and SelectCommand, developers can configure the SqlDataSource to retrieve data from a database and populate controls with the retrieved data. Therefore, the statement "The element is used in markup to create a SqlDataSource" is true.

Submit
61. The DetailsView control supports paging capabilities but does not support sorting.

Explanation

The explanation for the given correct answer is that the DetailsView control in ASP.NET supports paging capabilities, allowing users to navigate through multiple pages of data. However, it does not have built-in support for sorting the data. Therefore, if sorting functionality is required, additional coding or customization is needed.

Submit
62. This Object represents a column in a table.

Explanation

A DataColumn is an object that represents a column in a table. It is used to define the schema of the table, including the name, data type, and other properties of the column. This object is commonly used in database management systems to organize and store data in a tabular format.

Submit
63. This represents a table retrieved form the database.

Explanation

The correct answer is DataTable. In the context of a database, a DataTable represents a table of data retrieved from the database. It is a central object in the ADO.NET framework and is used to store and manipulate data in a tabular format. The DataTable class provides methods and properties to perform various operations on the data, such as adding, deleting, and updating rows, as well as querying and sorting the data.

Submit
64. Reads the content of an element or text node as a string.

Explanation

XmlReader.ReadString() is the correct answer because it is a method that reads the content of an element or text node as a string. The other options, SqlDataReader.GetSqlXml(), SqlXml.CreateReader(), and DataSet.ReadString(), are not relevant to reading the content of an element or text node as a string.

Submit
65. Reads content and optionally schema from an XMl stream or file into a DataSet object.

Explanation

The correct answer is DataSet.ReadXml() because this method allows the reading of content and schema from an XML stream or file into a DataSet object. This method is specifically designed for reading XML data into a DataSet, making it the appropriate choice for this task. The other option, SqlDataSet.ReadXml(), is not a valid method and does not exist in the context of reading XML into a DataSet.

Submit
66. This parameter is used to set the value of parameter in a query base on a client-side cookies value that is passed as part of an HTTP request.

Explanation

The correct answer is Cookie. In this context, a cookie is a small piece of data that is stored on the client-side and is passed along with the HTTP request. It is commonly used to store information about the user's session or preferences. In this case, the parameter is used to set the value of a parameter in a query based on the value stored in the client-side cookie.

Submit
67. Specifies or retrieves the type of expiration policy used to invalidate a cache item.

Explanation

The given correct answer is CacheExpirationPolicy. This answer suggests that the code or system in question has a feature that allows for specifying or retrieving the type of expiration policy used to invalidate a cache item. This can be useful in managing and controlling the lifespan of cached data, ensuring that it remains valid and up-to-date. The CacheExpirationPolicy likely provides options or settings for defining the expiration behavior, such as time-based expiration, usage-based expiration, or a combination of both.

Submit
68. This parameter is used to set the value of a parameter in a query base on an HTML form element value.

Explanation

The correct answer is "Form". In HTML, a form is used to collect user input and send it to a server for processing. When a user submits a form, the values entered in the form elements are sent as parameters in the query string of the URL. The form element allows the value of a parameter in a query to be set based on the value entered in an HTML form element.

Submit
69. The Add() method of the DataView class helpd you to add new rows.

Explanation

The explanation for the given correct answer, which is False, is that the Add() method of the DataView class is used to add new rows to a DataTable, not to the DataView itself. The DataView class is used to create a customized view of a DataTable, allowing sorting, filtering, and searching of the data. Therefore, the statement is incorrect as the Add() method does not add new rows to the DataView.

Submit
70. This Sets or Gets the URL of a node in the site map, which will be used by the data source control to build the site map structure.

Explanation

The correct answer is "StartingNodeUrl" because it accurately describes the purpose of the property. This property is used to set or get the URL of a node in the site map, which will be used by the data source control to build the site map structure. The term "StartingNodeUrl" clearly indicates that it is related to the starting node of the site map.

Submit
71. This property specifies whether the display of records will be repeated horizontal or vertical in DataList.

Explanation

The property "RepeateDirection" specifies whether the display of records in a DataList will be repeated horizontally or vertically. This means that it determines the layout of the records within the DataList.

Submit
72. Which objects are components of Data Provider.

Explanation

The objects that are components of a Data Provider are DataAdapter, Command, Connection, and DataReader. A DataAdapter is responsible for retrieving and saving data from and to the database. A Command is used to execute SQL queries or stored procedures. A Connection establishes a connection with the database. A DataReader is used to read data from a database in a forward-only and read-only manner. These components work together to interact with the database and retrieve or manipulate data as needed.

Submit
73. This property gets or sets the manner in which paging buttons are to be displayed page.

Explanation

The correct answer is PagerSettings.Mode. This property is used to determine the manner in which paging buttons are displayed on a page. It allows the developer to specify the mode of paging, such as numeric, next/previous, or first/last. By setting the PagerSettings.Mode property, the developer can customize the appearance and functionality of the paging buttons according to their requirements.

Submit
74. The @Control directive is used to include the user control in a web page

Explanation

@OutputCache

Submit
75. This gets or sets the space between the cell's content and the cell'sborder

Explanation

CellPadding is the correct answer because it refers to the space between the content of a cell and its border. This property allows for adjusting the spacing within a cell, providing better visual separation between the content and the cell's border.

Submit
76. This object acts as a passive container for the data stored in the database

Explanation

A DataSet is an object that acts as a passive container for the data stored in the database. It can hold multiple DataTables, which in turn contain the actual data. The DataSet provides a way to manipulate and manage the data, including performing operations like sorting, filtering, and searching. It is commonly used in data-driven applications to retrieve, store, and manipulate data from a database.

Submit
77. The Cache class is part of the System.Web.Cache namspace.

Explanation

System.Web.Caching.Cache

Submit
78. ASP.NET 2.0 has no means no establish  a direct connection as a local file to a SQL Express database.

Explanation

ASP.NET 2.0 does have the means to establish a direct connection to a SQL Express database as a local file. This can be done using the SqlConnection class in ASP.NET 2.0, which allows developers to connect to and interact with SQL Server databases, including SQL Express. Therefore, the correct answer is False.

Submit
79. Gets or sets location of paging buttons.

Explanation

The correct answer is PagerSettings.Position. This property is used to get or set the location of the paging buttons. It determines where the buttons will be displayed on the page, such as at the top, bottom, or both. By setting the PagerSettings.Position property, the developer can customize the placement of the paging buttons according to their requirements.

Submit
80. This indicates the logical layout of a web site and is useful in navigation. It can be represented as breadcrumbs on individual Web page. It is created by ASP.Net and stored as XML file.

Explanation

A SiteMap is a logical layout of a website that helps with navigation. It can be represented as breadcrumbs on individual web pages. In ASP.Net, a SiteMap is created and stored as an XML file. The Web.config file is used for configuration settings in ASP.Net, while the SiteMapDataSource is a control used to bind a SiteMap to a navigation control. Therefore, the correct answer is SiteMap.

Submit
81. This parameter is used to set a parameter value based on another control on the same page.

Explanation

The parameter "Control" is used to set a parameter value based on another control on the same page. This means that the value of one control can be used to determine or influence the value of another control on the page. This can be useful in scenarios where the value of one control is dependent on the value of another control, allowing for dynamic and interactive functionality on the page.

Submit
82. Specifies or retrieves name of the entry in Web.config file and the name of the table.

Explanation

The correct answer is SqlCacheDependency because SqlCacheDependency is a class in ASP.NET that is used to specify or retrieve the name of the entry in the Web.config file and the name of the table. This class is used for caching data from a SQL Server database and allows the cache to be automatically invalidated when the data in the specified table changes.

Submit
83. An SQL Server 2005 dataset can be accessed with an OLE DB data provider.

Explanation

An SQL Server 2005 dataset cannot be accessed with an OLE DB data provider. Instead, it can be accessed with a SQL Server Native Client data provider, which is specifically designed for SQL Server databases. OLE DB data providers are more commonly used for accessing other types of databases such as Oracle or MySQL.

Submit
84. The SqlDataReader instance is created using the no-argument constructor.

Explanation

The SqlDataReader instance is not created using the no-argument constructor. In fact, the SqlDataReader requires a SqlConnection object and a SqlCommand object to be passed as parameters in its constructor to create an instance. This allows the SqlDataReader to read data from the database using the specified connection and command.

Submit
85. The Insert() method replaces existing items on a cache

Explanation

The statement is true because the Insert() method is used to add or replace items in a cache. When the method is called, it checks if the item already exists in the cache. If it does, the existing item is replaced with the new item. Therefore, the Insert() method does indeed replace existing items on a cache.

Submit
86. Specifies the retrieves mode to fetch data from database

Explanation

not-available-via-ai

Submit
87. The ShowStartNode property sets or gets a value indicating if the start node is display or not.

Explanation

ShowStartingNode

Submit
88. Fragment caching enables caching of pages for a fraction of a time.

Explanation

Fragment caching enables caching of specific parts or fragments of a page, rather than the entire page. This allows for more granular control over caching and can improve performance by caching only the parts of a page that are slow or resource-intensive to generate. Therefore, the statement that fragment caching enables caching of pages for a fraction of a time is false.

Submit
89. //Cache
The Remove() method deletes an item for the specified interval.

Explanation

The given statement is incorrect. The Remove() method does not delete an item for the specified interval. It is used to remove the specified key and its associated value from the cache.

Submit
90. The XmlDataSource and SiteMapDataSource controls are tabular controls in that they render data in a hierarchy.

Explanation

The XmlDataSource and SiteMapDataSource controls are not tabular controls. They are used for accessing and binding data from XML files and site maps respectively, but they do not render data in a hierarchy like tabular controls do. Therefore, the statement is false.

Submit
91. This property defines how the records are displayed in the DataList control.

Explanation

The RepeateLayout property defines how the records are displayed in the DataList control. This property determines whether the records are displayed horizontally or vertically. It has two possible values: Table and Flow. If the RepeateLayout property is set to Table, the records will be displayed in a table format with rows and columns. If it is set to Flow, the records will be displayed in a flow layout, one after another vertically.

Submit
92. This determines whether the DataList control should render records in a table or in a free flow style.

Explanation

The RepeateLayout property determines whether the DataList control should render records in a table or in a free flow style. This means that if the RepeateLayout property is set to "Table", the records will be rendered in a tabular format with rows and columns. On the other hand, if the RepeateLayout property is set to "Flow", the records will be rendered in a free flow style without any specific structure.

Submit
93. The ItemInserting event of detailsView and FormView controls is raised after an insert operation has taken place.

Explanation

The ItemInserting event of detailsView and FormView controls is actually raised before an insert operation takes place.

Submit
94. Returns the XML content as XmlReader object.

Explanation

The correct answer is SqlXml.CreateReader(). This method is used to create an XmlReader object that can be used to read the XML content. It returns the XML content as an XmlReader object, which allows for efficient and convenient parsing and processing of the XML data. The other option, DataSet.getXml(), is used to get the XML representation of a DataSet object, not the XML content itself.

Submit
95. At the very minimum, an SqlDataSource control must have its ID property set and a SelectCommand to retrieve data.

Explanation

The statement is false because an SqlDataSource control does not necessarily need to have a SelectCommand to retrieve data. It is possible to use other methods such as a stored procedure or a custom method to retrieve data from the database. However, it is still recommended to have the ID property set for the SqlDataSource control to ensure proper identification and usage.

Submit
96. The XmlDataSource control allows you to easily update and modify data and send changes back to the database.

Explanation

The XmlDataSource control does not allow for easy updating and modification of data or sending changes back to the database. It is primarily used for retrieving and binding XML data to data controls in ASP.NET applications. Therefore, the given statement is false.

Submit
97. This is a data-bound control. It display data through a data source bound to it.

Explanation

A DataList is a data-bound control that displays data through a data source bound to it. It is used to display data in a customizable layout, allowing for more flexibility in the presentation of the data compared to other controls like GridView and DetailsView.

Submit
98. The DataView class helps to generate dynamic customized views of your data for display purposes only.

Explanation

The explanation for the answer "False" is that the DataView class is used to create customized views of data, but it is not limited to display purposes only. It can also be used for sorting, filtering, and manipulating data in various ways. Therefore, the statement that the DataView class is only for display purposes is incorrect.

Submit
99. Retrieves the contents of a specified xml column ino an sqlXml object.

Explanation

The correct answer is SqlDataReader.getSqlXml(). This method is used to retrieve the contents of a specified xml column into an sqlXml object. It is specifically designed for working with SQL Server databases and allows for easy manipulation and retrieval of XML data within the database.

Submit
100. The XMLFile property of the SiteMapDataSource control is used to set the sitemap data for the control.

Explanation

The XMLFile property of the SiteMapDataSource control is not used to set the sitemap data for the control. The correct property to set the sitemap data for the control is the SiteMapProvider property.

Submit
101. A typed dataset that is created using the DataSet Designer does not contain any data.

Explanation

A TableAdapter is a component in the DataSet Designer that is used to retrieve data from a database and populate the dataset with that data. It acts as a bridge between the database and the dataset. Unlike the other options listed, a TableAdapter does not contain any data itself. Instead, it is responsible for fetching the data from the database and populating the dataset with it. Therefore, a typed dataset created using the DataSet Designer does not contain any data, but it can be populated with data using a TableAdapter.

Submit
102. Using XmlDataSource control, you can bind XML data to SiteMapDataSource control.

Explanation

you can bind XML data to TreeView or Menu

Submit
103. The default selectType value for a SelectionList control is List.

Explanation

The default selectType value for a SelectionList control is not List, it is Single.

Submit
104. SqlDataSource is a data source control that helps you to work with MS SQL Server database

Explanation

The statement is false because SqlDataSource is a data source control that helps you to work with any database, not just MS SQL Server. It provides a way to connect to and interact with various databases using SQL queries.

Submit
105. The ItemAsHyperLinks property is used to specify that items in the List control must be treated as links

Explanation

The ItemAsHyperLinks property is not used to specify that items in the List control must be treated as links. This property is not a valid property for the List control.

Submit
View My Results

Quiz Review Timeline (Updated): Aug 9, 2024 +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • Aug 09, 2024
    Quiz Edited by
    ProProfs Editorial Team
  • Sep 23, 2009
    Quiz Created by
    Vietha
Cancel
  • All
    All (105)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
Scalability is one of the advantages provided by ADO.Net.
The SqlDataReader class allow you to read a stream of rows from an SQL...
A cached user control is referenced in the web page using @Register...
The DetailsView control is used to displa, edit, insert and delete...
SiteMaps create in ASP.Net contain XML
ADO.Net providers better programmbility because ADo.Net data...
Aind and Eval expressions are using with ASP.NET data binding.
Data source are new group of controls that acts as a bridge between an...
The Xml data present in string form or xml files can be bound to the...
Caching enables caching of web pages as well as application data.
ADO.NET provides extensive support for Extensible Markup...
Both Oracle 8i and Oracle 9i database can be accessed using .Net...
Rows of DataViw object can be filtered based on custom expressions or...
The XmlDataSource control enables you to work with data from XMl file.
You can add the SqlDataSource control and configure its properties...
In GridView, the property gets or sets whether paging is enable.
A DataSet object represents an in-memory, disconnected cache of data...
Data binding is a method to bind the properties of the control to the...
The DataView class has three Constructors.
Data source controls help to boost productivity in Web applications.
The SiteMapDataSource control can be bound to navigation controls such...
A User control is stored in a separate file with the extension .ascx
The Xml file that you want to associate with the XmlDataSource control...
SQL Server database cannot be accessed using .NET Framework Data...
It is possible to change the starting node while generating the site...
The Table property of the DataView class returns the DataTable...
The SqlDataSource control allows you to retrieve data and modify in...
You can auto-generate data bindings for the XmlDataSource control or...
This specifies where the cached page will be placed.
A DataSet object makes use of a DataReader object to read the Data.
A user control is cached by including an @OutputCache directive in the...
Enable sorting columns.
ASP.Net 2.0 does not need any code to written for some of the common...
The Insert() method is used to add an item  to the cache.
The LabelFiled property of ObjectList is typically set to a column...
The FormView and DetailView controls can have customized style similar...
Creates versions of a page based on the request's header.
This object represents the data type of columns property of DataTable
An SQL Server 6.5 database can be accessed using .Net Framework Data...
The SqlDataReader class is defined in the System.Data.Sql
DataReader Object do not support paging or sorting functionality.
You must always create a new connection when specifying a connection...
This option is preferable when you need to pass in a value for a...
Specifies or retrieves the time in seconds for which the control...
ASP.Net data binding typically involves declarative or inline binding...
Specifies whether caching is enabled or not
This contains actual data.
This property specifies how many records will be repeated on the same...
This property gets or sets the grid line style in DataList.
This gets or set the index of currently displayed page.
.Net Framework Data Provider for SQL Server does not require an...
This caches a page for the specified number of second.
This Create versions of a page based on the query string.
Creates a new version of a page if the request for the same page comes...
The SelectionList control is not strickly data-bound an is used for...
The More link in the ObjectList control is seen only if a default...
A DataSet object is one of components of the data provider.
This type of dataset does not have a schema of its own. It consists of...
Retrieves the XML representation of the data in a DataSet object as a...
The element is used in mark up to create a SqlDataSource.
The DetailsView control supports paging capabilities but does not...
This Object represents a column in a table.
This represents a table retrieved form the database.
Reads the content of an element or text node as a string.
Reads content and optionally schema from an XMl stream or file into a...
This parameter is used to set the value of parameter in a query base...
Specifies or retrieves the type of expiration policy used to...
This parameter is used to set the value of a parameter in a query base...
The Add() method of the DataView class helpd you to add new rows.
This Sets or Gets the URL of a node in the site map, which will be...
This property specifies whether the display of records will be...
Which objects are components of Data Provider.
This property gets or sets the manner in which paging buttons are to...
The @Control directive is used to include the user control in a web...
This gets or sets the space between the cell's content and the...
This object acts as a passive container for the data stored in the...
The Cache class is part of the System.Web.Cache namspace.
ASP.NET 2.0 has no means no establish  a direct connection as a...
Gets or sets location of paging buttons.
This indicates the logical layout of a web site and is useful in...
This parameter is used to set a parameter value based on another...
Specifies or retrieves name of the entry in Web.config file and the...
An SQL Server 2005 dataset can be accessed with an OLE DB data...
The SqlDataReader instance is created using the no-argument...
The Insert() method replaces existing items on a cache
Specifies the retrieves mode to fetch data from database
The ShowStartNode property sets or gets a value indicating if the...
Fragment caching enables caching of pages for a fraction of a time.
//CacheThe Remove() method deletes an item for the specified interval.
The XmlDataSource and SiteMapDataSource controls are tabular controls...
This property defines how the records are displayed in the DataList...
This determines whether the DataList control should render records in...
The ItemInserting event of detailsView and FormView controls is raised...
Returns the XML content as XmlReader object.
At the very minimum, an SqlDataSource control must have its ID...
The XmlDataSource control allows you to easily update and modify data...
This is a data-bound control. It display data through a data source...
The DataView class helps to generate dynamic customized views of your...
Retrieves the contents of a specified xml column ino an sqlXml object.
The XMLFile property of the SiteMapDataSource control is used to set...
A typed dataset that is created using the DataSet Designer does not...
Using XmlDataSource control, you can bind XML data to...
The default selectType value for a SelectionList control is List.
SqlDataSource is a data source control that helps you to work with MS...
The ItemAsHyperLinks property is used to specify that items in the...
Alert!

Advertisement