PrepAway - Latest Free Exam Questions & Answers

Category: 70-536

Exam 70-536: TS: Microsoft .NET Framework – Application Development Foundation

Which code segment should you use?

You are developing a method that searches a string for a substring.
The method will be localized to Italy.
Your method accepts the following parameters: The string to be searched, which is named searchList
The string for which to search, which is named searchValue You need to write the code.
Which code segment should you use?

ou decide to use the Salary delegate to invoke these methods.

You have been given the responsibility of creating a class named CalcSalary that will determine the salaries of Domain.com’s staff.
The CalcSalary class includes methods to increment and decrement staff salaries.
You would like to invoke the IncrementSalary and DecrementSalary methods dynamically at runtime from the sales manager application when needed.
After viewing the information displayed in the exhibit, you decide to use the Salary delegate to invoke these methods.
using System;
public delegate bool Salary (Employee Emp, double Amount); public class CalcSalary {
// for promotions

What should you do?

Domain.com has asked you to create a multi-threaded application, which executes a critical database backup operation on an hourly basis.
You define this operation with the following code:
public void BackupDB () {
//Implementation code
}
You then create a Thread object for the purpose of invoking this method.
You need to ensure that the thread is scheduled for execution before any other thread at runtime.
What should you do?

What should you do?

You deploy several .NET-connected applications to a shared folder on your company network. Your applications require full trust to execute correctly. Users report that they receive security exceptions when they attempt to run the applications on their computers. You need to ensure that the applications on the users computers run with full trust. What should you do?

Choose the code segment which will accomplish the task.

You work as the application developer at Domain.com.
You want to modify the current security settings of a file named Certkiller Data.xml, as follows:
1. You must preserve all existing inherited access rules.
2. You must prevent the access rules from inheriting future modifications Choose the code segment which will accomplish the task.

What should you do?

You are currently creating a sales report application that requires Windows authentication on Domain.com’s domain.
To achieve this, you are required to implement role-based security within the sales report application.
You establish that the method shown below should only be invoked by members of the Managers group:
public void UpdateEmpSalesBonus (int empID, double amount) { //Update employee’s salary
}
You need to ensure that invocation of the UpdateEmpSalesBonus method is restricted to only managers.
What should you do? (Choose two)


Page 22 of 23« First...10...1920212223