0% found this document useful (0 votes)
25 views3 pages

Unit - 4 QB

This document contains a question bank with multiple choice and short answer questions about ASP.NET and ADO.NET concepts like DataSet, DataAdapter, DataReader, and how to perform data access operations using ADO.NET. It includes questions about major ADO.NET objects, binding data to different ASP.NET data controls, SQL commands, and connected vs disconnected architecture. Longer questions ask about explaining key concepts in more detail.

Uploaded by

IRRITATED OP
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views3 pages

Unit - 4 QB

This document contains a question bank with multiple choice and short answer questions about ASP.NET and ADO.NET concepts like DataSet, DataAdapter, DataReader, and how to perform data access operations using ADO.NET. It includes questions about major ADO.NET objects, binding data to different ASP.NET data controls, SQL commands, and connected vs disconnected architecture. Longer questions ask about explaining key concepts in more detail.

Uploaded by

IRRITATED OP
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

T.Y.B.C.A.

(SEM-VI)
(US06CBCA01) ASP.NET
Question Bank
Unit-IV

MULTIPLE CHOICE QUESTIONS


MCQ
1 ___________ is disconnected, in-memory representation of data.
a) DataReader b) DataSet c) DataAdapter d) DataCommand
Ans:b
2 What is the major component of connected architecture?
a) DataReader b) DataSet c) DataAdapter d) DataCommand
Ans:a
3 ____________ method is used to populate DataSet
a) Populate b) Fill c) Open d) Store
Ans:b
4 ____________ method returns result set by way of DataReader object.
a) ExecuteDataReader b) ExecuteScaler c) ExecuteNonQuery d) ExecuteReader
Ans:d
5 For insert, update, and delete SQL commands, _________________ method is used.
a) ExecuteDataReader b) ExecuteScaler c) ExecuteNonQuery d) ExecuteReader
Ans:c
6 To check whether connection is open or not, _______________ method is used.
a) ConnectionStatus b) State c) ConnectionState d) Status
Ans:b
7 To use DataSet ____________________ namespace needs to be included.
a)System.Data b) System.Data.Oledb c) System.Data.SqlClient d) System.Data.Sql
Ans:a
8 ______________ object provide connection to the database.
a)Command b)Connection c) DataReader d) DataAdapter
Ans:b
9 In a connection string, ______________________ represents name of the database.
a) DataSource b) Initial Database c) Initial Catalog d) Catalog Database
Ans:c
10 If we are not returning any records from the database which method is used?
a)ExecuteReader b) ExecuteScaler c) ExecuteXmlReader d) ExecuteNonQuery
Ans:d
11 Dataset changes are saved to the database using _________ method.
a)Save b) Update c) Fill d) None of these
Ans:b
12 DataSets are loaded from the database using ____________ method.
a)Save b) Update c) Fill d) None of these
Ans:c
13 Sorting supports __________ order.
a)Ascending b) Descending c) Both d) None of these
Ans:a
14 SQL SELECT statement are sent to a database using:
a)SqlConnection + b) SqlCommand + c) SqlCommand + d) SqlConnection +
Execute Reader ExecuteNonQuery ExecuteReader ExecuteNonQuery
Ans:c
15 SQL INSERT statement are sent to a database using:
a)SqlConnection + b) SqlCommand + a)SqlConnection + d) SqlConnection +
Execute Reader ExecuteNonQuery Execute Reader ExecuteNonQuery
Ans:b
16 SQL UPDATE statement are sent to a database using:
a)SqlConnection + b) SqlCommand + a)SqlConnection + d) SqlConnection +
Execute Reader ExecuteNonQuery Execute Reader ExecuteNonQuery
Ans:b
17 SQL DELETE statement are sent to a database using:
a)SqlConnection + b) SqlCommand + a)SqlConnection + d) SqlConnection +
Execute Reader ExecuteNonQuery Execute Reader ExecuteNonQuery
Ans:b
18 Retrieving a single value from a returned row involves using:
a)SqlConnection + b) SqlCommand + a)SqlConnection + d) SqlConnection +
Execute Reader ExecuteNonQuery ExecuteScaler ExecuteNonQuery
Ans:c

Short Questions:--

1. Explain difference between DetailsView and GridView.


2. Explain the use of server explorer in data access in .net.
3. Mention the namespace that is used to include .NET Data Provider for SQL server in .NET
code.
4. Which namespaces are required to enable the use of databases in ADO .net?
5. What is the use of the Connection object?
6. What are the usages of the Command object in ADO.NET?
7. What is difference between DataSet and DataReader?
8. What is Dataset object?
9. What is connection string? Explain in brief.
10. Explain in brief. (Any one)
− GridView,
− DetailsView
− FormView
− Repeater
− DataList

11. Which properties are used to bind a GridView control?


12. Explain DataGrid control.
13. Explain any one of following namespaces
a. System.Data
b. System.Data.SqlClient
c. System.Data.OleDB
d. System.Data.SqlTypes
14. Explain any one of following .NET Data Provider Objects.
a. Connection
b. Command
c. DataReader
d. DataAdapter
Long Questions:- Marks

1. Explain the connected architecture of ADO.NET in brief. [5]

2. Describe the disconnected architecture of ADO.NET's data access model. [5]

3. Explain major ADO .net objects.(atleast 5) [10]

4. Explain the steps to bind the application with the Database in ADO .net. [5]

5. Explain the step, how can we retrieve data in DataSet? [5]

6. Explain public methods of SqlCommand objects. [5]

7. What are the four common SQL commands used to retrieve and modify data [5]
in a SQL Database? Also explain each of them.

8. Explain use of “ExecuteScaler” , “ExecuteNonQuery” and “ExecuteReader” [6]


method in detail.

9. Explain in Detail. [5-8]


− GridView,
− DetailsView
− FormView
− Repeater

You might also like