Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 2

1) The data is stored in a Microsoft SQL Server database on a server named Admin

and the Database name is Diploma.


You connect to Diploma by using Windows authentication mode.
You use a SqlConnection object to connect to the database.
Then which is the correct connection string from below?

a) Data Source=Admin\SQLEXPRESS;Initial Catalog=Diploma;Integrated Security=True


b) Data Source=Admin/SQLEXPRESS;Initial Catalog=Diploma;Integrated Security=True
c) Data Source=Admin\SQLEXPRESS;Initial Catalog=Diploma;Integrated Security=False
d) All of the above

2)What are the Correct benefits of using of ADO.NET in .NET 4.0.

p) Language-Integrated Query (LINQ)


q) LINQ to DataSet
r) LINQ to SQL
s) SqlClient Support for SQL Server 2008

options :-

a) p , q , r
b) p, q, s
c) p , q , r, s
d) p , r

3)What is the meaning of object pooling?

a) It is a concept of storing a pool (group) of objects in memory that can be


reused later as needed
where it is Not thread-safe by default and performance effective.
b) It is a concept of storing a pool (group) of objects in memory that can be
reused later as needed
where it is thread-safe by default and performance effective.
c) It is a concept of storing a pool (group) of objects in memory that can be
reused later as needed
where it is Not thread-safe by default and not performance effective.
d) It is a concept of storing a pool (group) of objects in memory that can be
reused later as needed
where it is thread-safe by default and not performance effective.

4) Find the Wrong Statement ?


a) dotConnect for SQL Server combines connected and disconnected data access models
in single SqlDataTable component
b) The goal of dotConnect for SQL Server is to enable developers to maintain
database applications
c) dotConnect for SQL Server supports new ADO.NET features and technologies as soon
as they are released
d) None of the mentioned

5) What is the proper code to put data into the dataset called CustomerDataset
using the CustomerDataAdapter object?

a) CustomerDataset.Fill(CustomerDataAdapter)

b) CustomerDataAdapter.Fill(CustomerDataset)

c) CustomerDataset.Load(CustomerDataAdapter)

d) CustomerDataAdapter.Load(CustomerDataset)

Options :-

1 ) a
2 ) c
3 ) a
4 ) b
5 ) b

You might also like