PrepAway - Latest Free Exam Questions & Answers

Category: 70-526

Exam 70-526: TS: Microsoft .NET Framework 2.0 – Windows-Based Client Development.

What should you do to change the control so that it will allow the Certkiller .com uses to change the selected

You have just included a DateTimePicker control to a form.
You then set the format property to Time.
During the cause of the day, you check how the DateTimePicker control is working, and learnt that it does not allow the Domain.com users to change the selected time. What should you do to change the control so that it will allow the Domain.com uses to change the selected time?

Which two actions should you perform?

You are creating a Windows user control named UrlRequest. UrlRequest contains a ComboBox control named cboUrl and a Button control named btnGo. When the user clicks btnGo, you want the UrlRequest control to provide notification that the value of cboUrl changed. You need to implement the notification functionality. Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)

Which code segment should you use?

You are creating a Windows Forms application. You implement the asynchronous design pattern by using a delegate named DataUpdateHandler. DataUpdateHandler executes a method named DataUpdater. You create an instance of the DataUpdateHandler that has the variable name Updater. DataUpdater uses a DataSet class as a parameter and returns an integer value that indicates the number of rows that have been updated. You need to use a method name DisplayResult to display the result when the database update is complete. Which code segment should you use?

What should you do to define the signature of the method that will contain the code to perform the asynchronou

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 -WS303 as developing guarantee.
You are busy writing a code to perform an asynchronous operation. You must adjust the priority of the thread that executes the asynchronous operation. The operation is must be specified to use input data from the main thread. What should you do to define the signature of the method that will contain the code to perform the asynchronous operation?

What should you do to define the signature of the method that will contain the code to perform the asynchronou

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 -WS015 as developing collateral.
You were asked to use the BackgroungWorker component to do an asynchronous task.

What should you do to define the signature of the method that will contain the code to perform the asynchronous task?

What should you do to make sure that the event handler gets called?

You as the developer of Domain.com use a client computer named Certkiller -WS113 as developing collateral.
You are busy using a BackgroundWorker component to execute an asynchronous operation.
The job of the background thread is to call the ReportProgress method to update the foreground thread.
You have handled the ProgressChanged event and set the Value property of a ProgressBar.
The problem is that the ProgressBar display by no means gets updated. During the investigation you find out that the event handler that works with the ProgressChanged event never gets called.
What should you do to make sure that the event handler gets called?

What should you do to receive notification when the operation completes?

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 -WS014 as developing collateral.
You are busy using a BackgroundWorker component, set to its default value, to execute an asynchronous operation.
What should you do to receive notification when the operation completes?

What value of the threadPoolThreadCount should you identify after the code is executed?

ThreadStart threadStart = delegate

{
}
ParameterizedThreadStart parameterizedThreadStart = delegate[object args]
{
}
int threadPoolThreadCount = 0
Thread thread1 = new Thread[threadStart];
Thread thread2 = new Thread[parameterizedThreadStart]; Thread thread3 = new Thread[threadStart];
thread1.Start[];
thread2.Start[null];
thread3,Start[];
if [thread1.IsThreadPoolThread]
{
threadPoolThreadCount++;
}
if [thread2.IsThreadPoolThread]
{
threadPoolThreadCount++;
}
if [thread3.IsThreadPoolThread]
{
threadPoolThreadCount++;
}
What value of the threadPoolThreadCount should you identify after the code is executed?


Page 6 of 15« First...45678...Last »