niusouti.com

单选题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

题目
单选题
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;


相似考题
更多“单选题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”相关问题
  • 第1题:

    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

  • 第2题:

    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 Contoso.com network contains a Microsoft SQL Server 2005 server named DB01. Your application retrieve records from a  database named Trades that resides on DB01. The application connects to Trades by using an instance of the SqlConnection class with the following connection string.   "Data Source=DB01;UID=’mhamm’;PWD=’password’;"   When the application calls the Open method of the SqlConnection object, it displays the following: "Cannot open user default database. Login failed. Login failed for user ’mhamm’".  You need to make sure that you can connect to Trades when the user account for the connection is mhamm.   What should you do? ()

    • A、 Change the connection string as follows:Data Source=DB01;Initial Catalog=Trades;UID=mhamm; PWD=password;"
    • B、 Create a login for Mia Hamm on DB01.
    • C、 Create a database user object in Trades and map the object to the SQL Server 2005 Login of Mia Hamm.
    • D、 Change the connection string as follows:"Server=DB01;Database=Trades;UID=mhamm;PWD=password;"

    正确答案:C

  • 第3题:

    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 database on the Microsoft SQL Server 2005 database has two tables that are displayed by using two SqlConnection objects in two different GridView controls. You want the tables to be displayed at the same time with the use a single SqlConnection object.   What should you do?()

    • A、 Create a bound connection by using the sp_getbindtoken and the sp_bindsession stored procedures.
    • B、 Enable Multiple Active Result Sets (MARS) in the connection string of the application. 
    • C、 Create an exception handler for the connection-busy exception that is thrown on using a single SqlConnection object.
    • D、 Run the two SqlDataReader objects by using a single SqlCommand object.

    正确答案:B

  • 第4题:

    You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. You use the ClickOnce deployment methodology to distribute the application. You need to store application-specific data along with read/write permissions without requiring elevated permissions for the application. Where should you store the application data?()

    • A、 In isolated storage.
    • B、 On the database server.
    • C、 In the ClickOnce data directory.
    • D、 In the App.config file of the application.

    正确答案:A

  • 第5题:

    You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. You create a Web page to display photos and captions. The caption of each photo in the database can be modified by using the application. You write the following code fragment:         ’ runat="server"/>         ’ runat="server" />             When you access the Web page, the application throws an error.  You need to ensure that the application successfully updates each caption and stores it in the database.  What should you do?()

    • A、Add the ID attribute to the Label control. 
    • B、Add the ID attribute to the TextBox control. 
    • C、Use the Bind function for the Label control instead of the Eval function. 
    • D、Use the Eval function for the TextBox control instead of the Bind function.

    正确答案:B

  • 第6题:

    You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. The application contains a DataSourceControl named CategoriesDataSource that is bound to a Microsoft SQL Server 2005 table. The CategoryName column is the primary key of the table. You write the following code fragment in a FormView control:   01    02   Category:   03      09      10     You need to ensure that the changes made to the CategoryID field can be written to the database.  Which code fragment should you insert at line 04?()

    • A、SelectedValue='<%# Eval("CategoryID") %>' 
    • B、SelectedValue='<%# Bind("CategoryID") %>' 
    • C、SelectedValue='<%# Eval("CategoryName") %>' 
    • D、SelectedValue='<%# Bind("CategoryName") %>'

    正确答案:B

  • 第7题:

    单选题
    You work as an ASP.NET Web Application Developer for SomeCompany. The company uses Visual Studio .NET 2010 as its application development platform. You create an ASP.NET Web application using .NET Framework 4.0. The Web application connects to a SQL Server database. You use the ADO.NET Entity Framework to handle persistence-ignorant entities. You create an ObjectContext object named ObjContext. Subsequently, you change properties on numerous entities. You are required to save the changed entity values in the SQL Server database. Which of the following code segments will you use?()
    A

    ObjContext.SaveChanges(SaveOptions.DetectChangesBeforeSave);

    B

    ObjContext.SaveChanges(SaveOptions.AcceptAllChangesAfterSave);

    C

    ObjContext.SaveChanges(SaveOptions.All);

    D

    ObjContext.SaveChanges(SaveOptions.None);


    正确答案: 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;


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

  • 第9题:

    多选题
    You are planning the migration of an existing application to Windows Azure and SQL Azure.  The original application includes a Microsoft SQL Server 2008 database.   You need to recommend an approach for ensuring that the database migrates successfully toSQL Azure.  Which two actions should you recommend?()
    A

    Remove all clustered indexes from the database.

    B

    Remove all dependencies on the Microsoft Distributed Transaction Coordinator (MSDTC) from the application.

    C

    Use SSL and SQL authentication to connect to the database.

    D

    Use SSL and Windows authentication to connect to the database.


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

  • 第10题:

    单选题
    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
    解析: 暂无解析

  • 第11题:

    单选题
    You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. The application contains a DataSourceControl named CategoriesDataSource that is bound to a Microsoft SQL Server 2005 table. The CategoryName column is the primary key of the table. You write the following code fragment in a FormView control:   01    02   Category:   03      09      10     You need to ensure that the changes made to the CategoryID field can be written to the database.  Which code fragment should you insert at line 04?()
    A

    SelectedValue='<%# Eval(CategoryID) %>' 

    B

    SelectedValue='<%# Bind(CategoryID) %>' 

    C

    SelectedValue='<%# Eval(CategoryName) %>' 

    D

    SelectedValue='<%# Bind(CategoryName) %>'


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

  • 第12题:

    单选题
    You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application that displays an image. You need to ensure that users can stretch and scale the image. Which control should you use?()
    A

     Frame

    B

     Slider

    C

     Viewbox

    D

     ScrollViewer


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

  • 第13题:

    You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. The application uses Session objects. You are modifying the application to run on a Web farm. You need to ensure that the application can access the Session objects from all the servers in the Web farm. You also need to ensure that when any server in the Web farm restarts or stops responding, the Session objects are not lost.  What should you do?()

    • A、Use the InProc Session Management mode to store session data in the ASP.NET worker process. 
    • B、Use the SQLServer Session Management mode to store session data in a common Microsoft SQL Server 2005 database. 
    • C、Use the SQLServer Session Management mode to store session data in an individual database for each Web server in the Web farm. 
    • D、Use the StateServer Session Management mode to store session data in a common State Server process on a Web server in the Web farm. 

    正确答案:B

  • 第14题:

    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;

    正确答案:B

  • 第15题:

    You are planning the migration of an existing application to Windows Azure and SQL Azure.  The original application includes a Microsoft SQL Server 2008 database.   You need to recommend an approach for ensuring that the database migrates successfully toSQL Azure.  Which two actions should you recommend?()

    • A、 Remove all clustered indexes from the database.
    • B、 Remove all dependencies on the Microsoft Distributed Transaction Coordinator (MSDTC) from the application.
    • C、 Use SSL and SQL authentication to connect to the database.
    • D、 Use SSL and Windows authentication to connect to the database.

    正确答案:B,C

  • 第16题:

    You create Windows Forms applications by using the .NET Framework 3.5. You plan to use a setup project to deploy a new Windows Forms application.The application uses a component that requires the Microsoft NET Framework 1.1.You need to create a launch condition so that the application can be deployed on client computers.   What should you do?()

    • A、Use the Depth property.
    • B、Use the Version property.
    • C、Use the MinVersion property.
    • D、Use the ComponentID property.

    正确答案:B

  • 第17题:

    You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. The application resides on a server named ContosoTest that runs Microsoft IIS 5.0.  You use a computer named ContosoDev to log on to the Contoso.com domain with an account named ContosoUser.  The ContosoTest and ContosoDev servers are members of the Contoso.com domain. You need to set up the appropriate permission for remote debugging.  What should you do?()

    • A、Set the Remote Debugging Monitor to use Windows Authentication. 
    • B、Add the ContosoUser account to the domain Administrators group.
    • C、Add the ContosoUser account to the local Administrators group on the ContosoTest server. 
    • D、Change the ASP.NET worker process on the ContosoTest server to run as the local Administrator account.

    正确答案:C

  • 第18题:

    单选题
    You have a Microsoft ASP.NET Framework version 1.0 application. The application does not use any features that are deprecated in the Microsoft .NET Framework version 3.5. The application runs on Microsoft IIS 6.0.  You need to configure the application to use the ASP.NET Framework version 3.5 withoutrecompiling the application.  What should you do? ()
    A

    Edit the ASP.NET runtime version in IIS 6.0.

    B

    Edit the System.Web section handler version number in the machine.config file.

    C

    Add the requiredRuntime configuration element to the Web.config file and set the version attribute to v3.5.

    D

    Add the supportedRuntime configuration element in the Web.config file and set the version attribute to v3.5.


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

  • 第19题:

    单选题
    You are designing a Windows Azure application.  The application will include occasionally connected clients that reference data stored in Windows Azure Blob storage.  The clients will be able to add data while disconnected.  You need to recommend an approach for synchronizing offline client data with Windows Azure Blob storage.  What should you recommend?()
    A

     Use SQL Azure Data Sync.

    B

     Use the Microsoft Sync Framework.

    C

     Use Windows Azure Blobstorage snapshots.

    D

     Use the Microsoft SQL Server replication component.


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

  • 第20题:

    单选题
    You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. You use the ClickOnce deployment methodology to distribute the application. You need to store application-specific data along with read/write permissions without requiring elevated permissions for the application. Where should you store the application data?()
    A

     In isolated storage.

    B

     On the database server.

    C

     In the ClickOnce data directory.

    D

     In the App.config file of the application.


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

  • 第21题:

    单选题
    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);


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

  • 第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 database on the Microsoft SQL Server 2005 database has two tables that are displayed by using two SqlConnection objects in two different GridView controls. You want the tables to be displayed at the same time with the use a single SqlConnection object.   What should you do?()
    A

     Create a bound connection by using the sp_getbindtoken and the sp_bindsession stored procedures.

    B

     Create an exception handler for the connection-busy exception that is thrown on using a single SqlConnection object.

    C

     Run the two SqlDataReader objects by using a single SqlCommand object.

    D

     Enable Multiple Active Result Sets (MARS) in the connection string of the application.


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

  • 第23题:

    单选题
    You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5.  The application resides on a server named ContosoTest that runs Microsoft IIS 5.0.  You use a computer named ContosoDev to log on to the Contoso.com domain with an account named  ContosoUser.  The ContosoTest and ContosoDev servers are members of the Contoso.com domain. You need to set up the appropriate permission for remote debugging.  What should you do?()
    A

    Set the Remote Debugging Monitor to use Windows Authentication.

    B

    Add the ContosoUser account to the domain Administrators group.

    C

    Add the ContosoUser account to the local Administrators group on the ContosoTest server.

    D

    Change the ASP.NET worker process on the ContosoTest server to run as the local Administrator account.


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

  • 第24题:

    单选题
    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 Contoso.com network contains a Microsoft SQL Server 2005 server named DB01. Your application retrieve records from a  database named Trades that resides on DB01. The application connects to Trades by using an instance of the SqlConnection class with the following connection string.   "Data Source=DB01;UID=’mhamm’;PWD=’password’;"   When the application calls the Open method of the SqlConnection object, it displays the following: "Cannot open user default database. Login failed. Login failed for user ’mhamm’".  You need to make sure that you can connect to Trades when the user account for the connection is mhamm.   What should you do? ()
    A

     Change the connection string as follows:Data Source=DB01;Initial Catalog=Trades;UID=mhamm; PWD=password;

    B

     Create a login for Mia Hamm on DB01.

    C

     Create a database user object in Trades and map the object to the SQL Server 2005 Login of Mia Hamm.

    D

     Change the connection string as follows:Server=DB01;Database=Trades;UID=mhamm;PWD=password;


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