What should you do?
You are creating an ASP.NET application by using the .NET Framework 3.5.
The application stores user names and passwords in the database.
You need to ensure that the passwords are encrypted and cannot be decrypted.
What should you do?
should you use?
You are creating a Windows Forms application by using the .NET Framework 3.5. The
application requires a thread that accepts a single integer parameter.You write the following
code segment. (Line numbers are included for reference only.)
01 Thread myThread = new Thread(new
ParameterizedThreadStart(DoWork));
02 myThread.Start(100);
03 …
You need to declare the method signature of the DoWork method. Which method signature
should you use?
Which code segment should you insert at line 03?
You are creating a Windows application by using the .NET Framework 3.5.You create an
instance of the BackgroundWorker component named backgroundWorker1 To
asynchronously process time-consuming reports in the application.You write the following
code segment in the application. (Line numbers are included for reference only.)
01 private void backgroundWorker1_RunWorkerCompleted( object sender,
RunWorkerCompletedEventArgs e)
02 {
03?
04 }
You need to write a code segment that reports to the application when the background
process detects any of the following actions:
An exception is thrown.
The process is cancelled.
The process is successfully completed.
Which code segment should you insert at line 03?
Which code segment should you use to ensure that the txtTN text box is validated?
You are creating aWindows Forms application for a courier company by using the .NET
Framework 3.5.You create a form that allows customers to track the progress of their
shipments. The form contains the following elements:
A text box named txtTN that allows users to enter a tracking number
An ErrorProvider control named ErrorProvider1 that informs users of an invalid
tracking number
A function named ValidTrackingNumber that validates tracking numbers
You need to ensure that the txtTN text box is validated. Which code segment should you use?
What should you do?
You are designing an application by using Microsoft Visual Studio .NET 2008 and the .NET Framework 3.5. The application implements the following design:
Client applications will be accessed by using a mobile device or a browser. All client applications will connect to a Windows Communication Foundation (WCF) service. All client applications will use Microsoft SQL Server Compact 3.5.
You need to ensure that the client applications can perform the following tasks:
Maintain local copies of data offline.
Synchronize changes.
Detect data conflicts.
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. Domain.com operates as a financial institution. You are currently developing a Microsoft Windows Forms application for Domain.com that is meant to allow bank tellers to manage account transactions for the Domain.com customers. In the United States of America is it government policy that all transactions to the value of $10 000 or greater must be reported. Domain.com need to comply with this policy. This policy also states that the government should be informed as to who made the large transaction. When subjected to government audit, Domain.com need to be able to easily search for transactions by account number, amount, or date. It is anticipated that 100,000 transactions per day will take place.
The logical design suggests that logging of the transactions should occur to an Extensible Markup Language (XML) file. You need to decide whether the design is feasible whilst ensuring that it is also scalable.
What conclusion can you draw?
What should you do first?
You have a new Windows Embedded CE run-time image and a custom driver API. You need to use Windows Embedded CE Test Kit (CETK) to validate that the custom driver API is running correctly within the run-time image. What should you do first?
What should you do?
You are creating an ASP.NET application by using the .NET Framework 3.5.
The application must use an existing Microsoft SQL Server database that stores user names and passwords in the same table.
You are not allowed to change the database schema.
You need to ensure that the application can use the Login, LoginView, LoginStatus, LoginName, and PasswordRecovery controls to manage user data.
What should you do?
segment should you add at line 03?
You are creating a multiple-document interface (MDI) application by using the .NET
Framework 3.5.You configure the frmParent form to be an MDI parent.You write the
following code segment. (Line numbers are included for reference only.)
01 Form frmChild = new Form();
02 Form frmParent = this;
03
You need to associate and display the frmChild form and the frmParent form. Which code
segment should you add at line 03?
What should you do?
You create an ASP.NET application by using Microsoft Visual Studio .NET 2008 and the .NET Framework 3.5. The application uses a Microsoft SQL Server database. During testing, the application intermittently logs the following exception message:
“Transaction (Process ID xxx) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.”
The error cannot be reproduced in the development environment. You need to identify the root cause of the exception. What should you do?