realexamdumps.com

Saturday, August 10, 2019

Latest Microsoft MB6-894 Real Exam Study Questions - Microsoft MB6-894 Dumps

Question: 1

You are planning to use X++ to develop a solution that will update multiple records.
You need to ensure that if the solution attempts to modify records that are currently being edited by a
user, the operation will be retried.
Which type of exception should you handle?

A. UpdateConflict
B. CodeAccessSecurity
C. UpdateConflictNotRecovered
D. Deadlock

Answer: A

Section: Read and Write Basic X++ (20-25%)
Explanation
Explanation/Reference:
UpdateConflict: Indicates that an error has occurred in a transaction that is using Optimistic Concurrency
Control. The transaction can be retried (use a retry statement in the catch block).


Question: 2

You are writing an X++ method.
You need to perform the same logic for multiple records in the database.
How should you iterate over multiple records in X++?

A. Declare a table buffer variable, and then write a "while select" statement to iterate through each
record.
B. Declare a shared variable for the table, and use the next() method to read each record.
C. Declare a RecordSortedList variable for the table, and use the next() method to read each record.
D. Declare an enumerator for the table, and call the moveNext() method to read each record.

Answer: A

Section: Read and Write Basic X++ (20-25%)


Question: 3

You create a new class named NewClass1 in a model. NewClass1 manipulates the CustTable table in the
protected method modifyCustTable.
NewClass1 has the following code:
class NewClass1
{
public static MainClass1 construct()
{
return new MainClass1();
}
protected void modifyCustTable()
{
...
}
}
In the same model as NewClass1, you create a new class named NewClass2. You want to run the code in
the modifyCustTable method from the callModifyCustTable method in NewClass2.
What is a correct example of calling the modifyCustTable method from NewClass2?

A. {
public static NewClass2 construct()
{
return new NewClass2();
}
public void callModifyCustTable()
{
NewClass1 newClass1 = NewClass1::construct();
newClass1.modifyCustTable();
}
}
B. class NewClass2
{
public static NewClass2 contsruct()
{
return new NewClass2();
}
public void classModifyCustTable()
{
newClass1.modifyCustTable();
}
}
C. class NewClass2 extends NewClass1
{
public static NewClass2 contsruct()
{
return new NewClass2();
}
public void callModifyCustTable()
{
this construct().modifyCustTable();
}
}
D. class NewClass2 extends NewClass1
{
public static NewClass2 construct()
{
return new NewClass2();
}
public void callModifyCustTable()
{
this.modifyCustTable();
}
}
Answer: D

Section: Read and Write Basic X++ (20-25%)



Question: 4

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?

A. salesTable = SalesTable::find(_salesId);
salesTable.CustomerRef = _customerRef;
salesTable.update();
B. update_recordset salesTable
setting CustomerRef=_customerRef
where salesTable.salesid==_salesId;
C. salesTable = SalesTable::find(_salesId, true);
salesTable.CustomerRef = _customerRef;
salesTable.update();
D. update_recordset salesTable
setting SalesId = _salesId
where salesTable.CustomerRef == _customerRef;

Answer: C

Section: Read and Write Basic X++ (20-25%)

Question: 3

A junior programmer asks you to review an order of operator precedence so that a math operation
evaluates appropriately.
Which list is ordered correctly?

A. unary, multiplicative, additive, logical, relational
B. shift, relational, additive, unary, logical
C. unary, multiplicative, additive, relational, logical
D. equality, multiplicative, additive, relational, unary

Answer: C

Section: Read and Write Basic X++ (20-25%)

Latest Microsoft MB6-894 Real Exam Study Questions - Microsoft MB6-894 Dumps

No comments:

Post a Comment