nerdexam
Microsoft

MB6-894 · Question #30

MB6-894 Question #30: Real Exam Question with Answer & Explanation

The correct answer is C. salesTable = SalesTable::find(_salesId, true); salesTable.CustomerRef = _customerRef;. See the full explanation below for the reasoning.

Question

You are writing a method to update the Customer reference field on a Sales order table record. You begin by writing the following code: class ExampleClass { /// <summary> /// Update the Customer reference field on the Sales orders table. /// </summary> /// <param name = "_salesId"> /// Sales order to update /// </param> /// <param name = "_customerRef"> /// Updated Customer reference value /// </param> public static void updateSalesTableCustomerReference(SalesId _salesId, CustRef _customerRef) { SalesTable salesTable; } } Which statement will complete the method?

Options

  • AsalesTable = SalesTable::find(_salesId);
  • Bupdate_recordset salesTable
  • CsalesTable = SalesTable::find(_salesId, true); salesTable.CustomerRef = _customerRef;
  • Dupdate_recordset salesTable

Community Discussion

No community discussion yet for this question.

Full MB6-894 Practice