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?
Which code segment should you use?
You create an application that stores information about your customers who reside in various regions.
You are developing internal utilities for this application. You need to gather regional information about your customers in Canada. Which code segment should you use?
Which code segment should you use?
You are developing an application for a client residing in Hong Kong. You need to display negative currency values by using a minus sign. Which code segment should you use?
Need to write a segment code to configure CLR stop loading the assembly if file permssion is absent.
You are developing an assembly to access file system. Need to write a segment code to configure CLR stop loading the assembly if file permssion is absent.
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 have recently created a Windows service application and need to define a Windows service class.
What should you do?
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)