PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

Which code segment should you use?

You are implementing an ASP.NET MVC 2 Web application that contains the following class.
Public Class DepartmentController
Inherits Controller
Shared departments As List(Of Department) =
New List(Of Department)
Function Index() As ActionResult
Return View(departments)
End Function
Function Details(ByVal id As Integer) As ActionResult
Return View(departments.Find(Function(x) x.ID = id))
End Function
Function ListEmployees(ByVal d As Department) As ActionResult
Dim employees As List(Of Employee) = GetEmployees(d)
Return View (employees)
End Function
End Class
You create a strongly typed view that displays details for a Department instance. You want the view
to also include a listing of department employees. You need to write a code segment that will call
the ListEmployees action method and output the results in place. Which code segment should you
use?

Which cost should you identify?

You have a bill of materials (BOM) item. All lines of the BOM item use a constant scrap
amount and a variable consumption. You identify that when you have a production run of
100 items, the scrap cost is 10 US dollars and the unit cost is one US dollar. You need to
identify what will be the cost in the BOM calculation when you increase the size of
production to 200 units. Which cost should you identify?

Which two actions should you perform?

You develop a Windows Communication Foundation (WCF) service that employees use to
access bonus information. You define the following service contract. (Line numbers are
included for reference only.) 01 [ServiceContract(SessionMode = SessionMode.Required)]
02 public interface IFinancialService 03 { 04 [OperationContract] 05 string Login(int
employeeID, string passwordHash); 06 07 [OperationContract] 08 double GetBonus(int
month); 09 10 [OperationContract(IsTerminating = true)] 11 void Logout(); 12 } Client

applications can invoke methods without logging in. You need to ensure that the client
applications invoke Login before invoking any other method. You also need to ensure that
client applications cannot consume the service after invoking Logout. Which two actions
should you perform? (Each correct answer presents part of the solution. Choose two.)

Which form type and permissions should you use?

You are creating a form and workflows for the Credit Status custom entity. The Salesperson
role will use a form to review active Credit Status information that the business requires.
This information cannot be changed by the Sales users. All users currently have write and
append privileges to the Credit Status custom entity. You need to ensure that users in the
Salesperson role cannot edit the Credit Status entity fields. Which form type and
permissions should you use?