Which data access object should you use in the DAL?
You are creating an ASP.NET application by using the .NET Framework 3.5.
The application will contain a Data Access Layer (DAL) that will support databases from third-party vendors. The application will display data by using a GridView control.
You need to ensure that the application meets the following requirements:
* Allow paging
* Provide optimistic concurrency
Which data access object should you use in the DAL?
Which code segment should you use?
You create a Microsoft ASP.NET application by using the Microsoft .NET Framework
version 3.5.The application contains the following code segment. public class
CapabilityEvaluator
{
public static bool ChkScreenSize( System.Web.Mobile.MobileCapabilities cap, String arg)
{
int screenSize = cap.ScreenCharactersWidth *
cap.ScreenCharactersHeight;
return screenSize < int.Parse(arg);
}
}
You add the following device filter element to the Web.config file.
<filter name=”FltrScreenSize” type=”MyWebApp.CapabilityEvaluator,MyWebApp”
method=”ChkScreenSize” />
You need to write a code segment to verify whether the size of the device display is less than
80 characters.Which code segment should you use?
What should you do?
You are creating a Web application for an enterprise solution by using Microsoft SQL Server 2008 and the .NET Framework 3.5. The application environment has the following specifications:
Several users access the same data.
Data does not change frequently.
The database schema is as shown in the exhibit. (Refer to the Exhibit.)
You need to build the business logic layer to meet the following requirements:
Support the DataRelation class.
Minimize redundant data.
Maintain the design of the original schema.
What should you do?
What should you do?
You work as the Enterprise application developer at Domain.com. The Domain.com network consists of a single Active Directory domain named Domain.com. All servers in the domain run Windows Server 2003. Your responsibilities at Domain.com include the design and development of application frameworks. Domain.com operates in the security and surveillance environment. You are currently developing a Microsoft Windows Forms security monitoring system. The application is destined to connect to fifty cameras to record as well as play video. A class named Camera interacts with a physical camera. You make use of the semaphore class to create a resource pool of five camera instances. The business is of such a nature that no more than three Camera instances will be in use at a time. To this end you implement a custom trace listener to send trace messages to a database. In the event of a fourth Camera instance is obtained from the resource pool, you will require to log a message that will read something like:
Only one Camera instance remains in the resource pool. You now need to choose the most appropriate trace level for this message.
What should you do?
What should you do?
You have a driver that uses debug zones. The test team reports that the driver causes an error. You need to use debug zones to identify the source of the error. What should you do?
What is the result of the query?
You are creating an ASP.NET application by using Microsoft .NET Framework 3.5.
The application is a library application that catalogs subjects and books.
The application contains a DataContext object named Subjects and a related line of business object named Books.
The Subjects DataContext object is queried by using the following LINQ query.
var query = from subject in Subjects
where subject.Books.All(b => b.Price <= 25)
select subject;
You need to find out the results that will be returned from the query.
What is the result of the query?
code segment should you use?
You are creating a Windows application by using the .NET Framework 3.5.You plan to
create a form that might result in a time-consuming operation. You use the
QueueUserWorkItem method and a Label control named lblResult.You need to update the
users by using the lblResult control when the process has completed the operation.Which
code segment should you use?
What should you do?
You create a class library by using Microsoft Visual Studio .NET 2008 and the .NET Framework 3.5. When an instance of the class is created, the class acquires a handle from the WIN32 DLL and saves the handle to a data member. You need to identify a strategy to ensure that the Win32 DLL handle releases resources when they are no longer being used. What should you do?
What conclusion can you draw?
You work as the Enterprise application developer at Domain.com. The Domain.com network consists of a single Active Directory domain named Domain.com. All servers in the domain run Windows Server 2003. Your responsibilities at Domain.com include the design and development of application frameworks.
You are currently developing a Microsoft Windows Forms application. You used Microsoft Visual Studio 2005 Team Edition for Software Developers. This Windows Forms application that you are developing, when completed will allow users to access data on the Domain.com mainframe. This data access will happen as follows: A Microsoft .NET Remoting component accesses the mainframe, and the application connects to the Remoting component via Transmission Control Protocol (TCP) channel.
You need to keep in mind that there is a performance requirement that the application should not perform excessive and unnecessary security checks. A performance monitoring solution that will be put in place will consists a measuring the Total Runtime Checks and Stack Walk Depth performance counters in the .NETCLR Security category.
You need to make a decision as to whether the monitoring solution is correct.
What conclusion can you draw?
which thread is causing the performance degradation. What should you do?
You have a Windows Embedded CE thin client. You notice that when you type on the keyboard, the characters fail to appear immediately on the screen. You need to identify which thread is causing the performance degradation. What should you do?