wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

ADO.NET Quiz

Total questions: 19

Worksheet time: 10mins

Name
Class
Date
1.

What is ADO.NET primarily used for?

a)

Creating web applications

b)

Network communication

c)

Data access technology

d)

Designing user interfaces

2.

Which of the following is a key feature of ADO.NET?

a)

Direct database manipulation

b)

Single user access

c)

Disconnected data access

d)

Continuous database connection

3.

What does the DataSet in ADO.NET represent?

a)

A method for executing SQL commands

b)

A direct connection to the database

c)

An in-memory representation of data

d)

A single table of data

4.

Which class is used to establish a connection to SQL Server in ADO.NET?

a)

SqlConnection

b)

SqlDataAdapter

c)

SqlCommand

d)

SqlDataReader

5.

What is the purpose of the SqlDataSource control in ASP.NET?

a)

To manage application state

b)

To connect to a SQL database

c)

To handle user authentication

d)

To create user interfaces

6.

Which of the following is NOT a data provider in ADO.NET?

a)

OracleClient

b)

SqlClient

c)

OleDb

d)

MySQLClient

7.

What does the DataReader class provide?

a)

A way to bind data to UI controls

b)

A method for executing stored procedures

c)

A way to manipulate data offline

d)

Fast, forward-only access to data

8.

Which method is used to read XML data in ADO.NET?

a)

ReadXml()

b)

WriteXml()

c)

FetchXml()

d)

LoadXml()

9.

What is a primary benefit of using strongly typed datasets?

a)

Faster data retrieval

b)

Easier debugging

c)

Reduced memory usage

d)

Type safety and compile-time checking

10.

What does the AllowPaging property do in a GridView control?

a)

Enables sorting of records

b)

Allows users to navigate through pages of data

c)

Displays data in a vertical format

d)

Automatically generates columns

11.

Which control is best for displaying a single record's details?

a)

FormView

b)

DetailsView

c)

ListView

d)

GridView

12.

What is the purpose of using ObjectDataSource?

a)

To connect directly to a database

b)

To execute SQL commands

c)

To bind UI controls to business objects

d)

To manage user sessions

13.

Which of the following is a limitation of SqlDataSource?

a)

Easy to bind with controls

b)

Not suitable for complex queries

c)

Minimal coding required

d)

Supports CRUD operations

14.

What does the AutoGenerateEditButton property do in a GridView?

a)

Generates a new data source

b)

Automatically creates edit buttons for each row

c)

Allows for data filtering

d)

Enables automatic sorting of data

15.

Which of the following is a feature of ADO.NET's disconnected architecture?

a)

Increases server load

b)

Supports only single-user access

c)

Requires constant database connection

d)

Allows offline data manipulation

16.

What is the main advantage of using parameterized queries?

a)

Automatic data binding

b)

Easier to read code

c)

Prevention of SQL Injection

d)

Improved performance

17.

Which control allows for full customization of layout using templates?

a)

ListView

b)

FormView

c)

DetailsView

d)

GridView

18.

What is the role of the DataProvider in ADO.NET architecture?

a)

To manage user sessions

b)

To handle application logic

c)

To connect to the database and execute commands

d)

To display data in UI controls

19.

Which of the following is a use case for ADO.NET?

a)

Creating a mobile application

b)

Building a web portal for student results

c)

Designing a game

d)

Developing a desktop application