PrepAway - Latest Free Exam Questions & Answers

Author: admin

Which code segment should you use?

You are creating a Windows Forms application that includes the database helper methods UpdateOrder and UpdateAccount.
Each method wraps code that connect to a Microsoft SQL Server 2005 database, executes a Transact-SQL statment, and then disconnects from the database. You must ensure that changes to the database that result from the UpdateAccount method are committed only if the UpdateOrder method succeeds.
You need to execute the UpdateAccount method and the UpdateOrder method. Which code segment should you use?

Which code segment should you use?

A Windows Forms application contains the following code segment.
string SQL =
@"SELECT OrderID, ProductID, UnitPrice, Quantity FROM [Order Details]";
SqlDataAdapter da = new SqlDataAdapter(SQL, connStr); Data Table dt = new Data Table();
da.Fill(dt);

You need to add a new column to the data table named ItemSubtotal. The ItemSubtotal column must contains the named of the UnitPrice column multipled by the value of the Quantity column. Which code segment should you use?

which is only thrown for one user.What should you do to stop the exception from being thrown?

You are working as an application developer at Domain.com. The Domain.com network consists of a single Active Directory domain named Domain.com. Domain.com uses Visual Studio 2005 as an application platform. Domain.com consists of a Development department. You as the developer of Domain.com use a client computer named Certkiller -WS023 as developing collateral. You are using the Semaphore class to synchronize access to a resource pool. During an inspection you find out that an exception of type UnauthorizedAccessException is thrown when you call the OpenExisting method of the Semaphore class, which is only thrown for one user.
What should you do to stop the exception from being thrown?

Which of the following numbers should you pass to the Release method?

You are busy creating an instance of Semaphore by means of calling its constructor. While the Semaphore instance was created, you specify four resources from a resource pool and reserve the three resources. You want to call the Release method of the Semaphore instance to allocate four available resources from the resource pool. Which of the following numbers should you pass to the Release method?

What should you do to programmatically specify security to stop a full stack walk from being performed when th

You are busy creating a component that allows the users in the Finance department to print daily reports. You want the component to grant permission to access all the printers on the client computers of the users. What should you do to programmatically specify security to stop a full stack walk from being performed when the component prints the report?

Which three actions should you perform?

You are creating an application named Certkiller App1. You use ClickOnce deployment to distribute Certkiller App1.exe and multiple Assemblies. Some users require only some of the functionality in Certkiller App1.
You need to limit the size of the initial download of the application. You also need to ensure that users can download the assemblies on demand. Which three actions should you perform? (Each correct answer presents part of the solution. Choose three.)

Which setup project editor supports this functionality by default?

You are creating a setup project. You want to add functionality that will execute only if the setup project is executed by an administrative user. You need to configure features of your installation package to execute only when the installation is run by an administrative user. Which setup project editor supports this functionality by default?