参考答案和解析
正确答案:Command;DataReader;DataAdapter;DataSe
更多“ADO.NET中五大对象是Connection、()、()、()”相关问题
  • 第1题:

    ADO.NET中包含的对象有Connection对象、Command对象、DataReader对象、DataAdapter对象、DataSet对象。

    此题为判断题(对,错)。


    正确答案:√

  • 第2题:

    在ADO.NET中,要执行一条添加数据的SQL命令,必须创建的对象是______。

    A.一个Command对象和一个DataAdapter对象
    B.一个Connection对象和一个DataSet对象
    C.一个Command对象和一个DataSet对象
    D.一个Connection对象和一个Command对象

    答案:D
    解析:
    本题考查面向对象程序设计语言C#的基础知识。ADO.NET是一组用于和数据源进行交互的面向对象类库。主要包含的类如下:①Connection类和数据库交互所使用的连接类。该类指明数据库服务器、数据库名字、用户名、密码及连接数据库所需要的其他参数。②Command类成功与数据建立连接后,就可以用Command对象来执行查询、修改、插入、删除等命令。③DataReader类DataReader对象允许开发人员获得从Command对象的SELECT语句得到的结果。④DataSet对象DataSet对象是数据在内存中的表示形式。它包括多个DataTable对象,而DataTable包含列和行,就像一个普通的数据库中的表。⑤DataAdapter类某些时候开发人员使用的数据主要是只读的,并且开发人员很少需要将其改变至底层的数据源。这些情况要求在内存中缓存数据,以此来减少并不改变的数据被数据库调用的次数。DataAdapter通过断开模型来帮助开发人员方便的完成对以上情况的处理。使用ADO.NET进行数据添加时,必须要用到的类是Connection和Command。

  • 第3题:

    下列哪个类型的对象是ADO.NET在非连接模式下处理数据内容的主要对象?()

    • A、Command
    • B、Connection
    • C、DataAdapter
    • D、DataSet

    正确答案:D

  • 第4题:

    建立Connection对象是采用Server对象的()方法进行的。


    正确答案:CreateObject("ADODB.Connection")

  • 第5题:

    在ADO.NET中,用来与数据源建立连接的对象是()

    • A、 Connection对象
    • B、 Command对象
    • C、 DataAdapter对象
    • D、 DataSet对象

    正确答案:A

  • 第6题:

    在ADO.NET中,通过执行Command对象的ExecuteReader方法返回的DataReader对象是一种()。


    正确答案:只向前的只读的结果集

  • 第7题:

    单选题
    在ADO.NET中,用来与数据源建立连接的对象是()
    A

     Connection对象

    B

     Command对象

    C

     DataAdapter对象

    D

     DataSet对象


    正确答案: B
    解析: 暂无解析

  • 第8题:

    单选题
    You work as an application developer at Contoso.com. You use Microsoft .NET Framework 3.5 and Microsoft ADO.NET to develop an application that will connect to the Microsoft SQL Server 2005 database. You want to use Windows Authentication along with the Microsoft OLE DB provider. You now need to make sure that the OLE DB connection is as secure as possible.   What should you do?()
    A

     Add the following parameter to the connection string: Integrated Security=true; PersistSecurityInfo=true;

    B

     Add the following parameter to the connection string: Integrated Security=SSPI;

    C

     Add the following parameter to the connection string: Integrated Security=SSPI; PersistSecurityInfo=yes;

    D

     Add the following parameter to the connection string: Integrated Security=true;


    正确答案: A
    解析: 暂无解析

  • 第9题:

    单选题
    在使用权ado.net设计数据库应用程序时,通过设置connection对象的()属性来指定连接到数据库时的用户和密码信息.
    A

    userinformation

    B

    datasource

    C

    PROVIDER

    D

    connectionstring


    正确答案: D
    解析: 暂无解析

  • 第10题:

    单选题
    在.Net Framework中,能操作注册表的对象是()
    A

    Registry

    B

    ConfigurationManager(配置文件)

    C

    SqlAdapter(是ADO.NET里的)

    D

    FormsAuthentication


    正确答案: A
    解析: 暂无解析

  • 第11题:

    填空题
    在ADO.NET中,通过执行Command对象的ExecuteReader方法返回的DataReader对象是一种()。

    正确答案: 只向前的只读的结果集
    解析: 暂无解析

  • 第12题:

    填空题
    ADO.NET中五大对象是Connection、()、()、()和()

    正确答案: Command,DataReader,DataAdapter,DataSe
    解析: 暂无解析

  • 第13题:

    在ADO.NET中,要执行一条添加数据的SQL命令,必须创建的对象是( )。

    A.一个Command对象和一个DataAdapter对象 B.一个Connection对象和一个DataSet对象 C.一个Command对象和一个DataSet对象 D.一个Connetction对象和一个Command对象


    正确答案:D

  • 第14题:

    在使用ADO.NET 设计数据库应用程序时,可通过设置Connection 对象的()属性来指定连接到数据库时的用户和密码信息。

    AConnectionString

    BDataSource

    CUserInformation

    DProvider


    A

  • 第15题:

    在ADO.NET中,使用()对象来创建和管理数据库的连接。

    • A、command
    • B、datareader
    • C、dataadapter
    • D、connection

    正确答案:D

  • 第16题:

    You work as an application developer at Contoso.com. You use Microsoft .NET Framework 3.5 and Microsoft ADO.NET to develop an application. The user name and password that is kept by the connection string is stored directly in the code of the application. You want to make sure that the password in the connection string is as protected.   What should you do? ()

    • A、 Add the connection string to the Settings.settings file.
    • B、 Add connection string to the Web.config file and use protected configuration.
    • C、 Use the TRUE setting in the Persist Security Info keyword.
    • D、 Use the FALSE setting in the Persist Security Info keyword

    正确答案:B

  • 第17题:

    ADO.NET包括哪两个主要的组件?其中数据提供程序的四个核心对象是什么?


    正确答案: A.DO.net体系结构主要包括两个主要组件:数据提供程序和DataSet
    1.ConnectionObject:提供与数据源的连接。
    2.CommandObject:发出命令,包括返回数据,修改数据,运行存储过程以及发送或检索参数信息的数据库命令。
    3.DataReaderObject:从数据源中读取仅向前的、只读的数据流。快速而且高效。
    4.DataAdapterObject:可以执行针对数据源的各种操作,包括填充DataSet,更新变动数据到数据源中,使对DataSet中数据的更改与数据源保持一致。

  • 第18题:

    You work as an application developer at Contoso.com. You use Microsoft .NET Framework 3.5 and Microsoft ADO.NET to develop an application. You want to make sure that the application is operative to any type of database.   What should you do?()

    • A、 Set the database driver name in the connection string of the application, and then the connection object as follows: DbConnection connection = new OdbcConnection(connectionString);
    • B、 Create the connection object as follows: DbProviderFactory factoryDbProviderFactories.GetFactory(databaseProviderName); DbConnection connection =factory.CreateConnection();
    • C、 Create the connection object as follows: DbProviderFactory factory = DbProviderFactories.GetFactory("System.Data.Odbc"); DbConnection connection = factory.CreateConnection();
    • D、 Set the database driver name in the connection string of the application, and then the connection object as follows:DbConnection connection = new OleDbConnection(connectionString);

    正确答案:B

  • 第19题:

    单选题
    下列哪个类型的对象是ADO.NET在非连接模式下处理数据内容的主要对象?()
    A

    Command

    B

    Connection

    C

    DataAdapter

    D

    DataSet


    正确答案: A
    解析: 暂无解析

  • 第20题:

    单选题
    在使用ADO.NET 设计数据库应用程序时,可通过设置Connection 对象的()属性来指定连接到数据库时的用户和密码信息。
    A

    ConnectionString

    B

    DataSource

    C

    UserInformation

    D

    Provider


    正确答案: C
    解析: 暂无解析

  • 第21题:

    判断题
    在ado.net中,datatable对象用于表示dataset中的表。()
    A

    B


    正确答案:
    解析: 暂无解析

  • 第22题:

    单选题
    You work as an application developer at Contoso.com. You use Microsoft .NET Framework 3.5 and Microsoft ADO.NET to develop an application. The user name and password that is kept by the connection string is stored directly in the code of the application. You want to make sure that the password in the connection string is as protected.   What should you do? ()
    A

     Add the connection string to the Settings.settings file.

    B

     Add connection string to the Web.config file and use protected configuration.

    C

     Use the TRUE setting in the Persist Security Info keyword.

    D

     Use the FALSE setting in the Persist Security Info keyword


    正确答案: A
    解析: 暂无解析

  • 第23题:

    问答题
    ADO.NET包括哪两个主要的组件?其中数据提供程序的四个核心对象是什么?

    正确答案: A.DO.net体系结构主要包括两个主要组件:数据提供程序和DataSet
    1.ConnectionObject:提供与数据源的连接。
    2.CommandObject:发出命令,包括返回数据,修改数据,运行存储过程以及发送或检索参数信息的数据库命令。
    3.DataReaderObject:从数据源中读取仅向前的、只读的数据流。快速而且高效。
    4.DataAdapterObject:可以执行针对数据源的各种操作,包括填充DataSet,更新变动数据到数据源中,使对DataSet中数据的更改与数据源保持一致。
    解析: 暂无解析