Microsoft MB6-894 Exam Practice Questions (P. 4)
- Full Access (97 questions)
- Six months of Premium Access
- Access to one million comments
- Seamless ChatGPT Integration
- Ability to download PDF files
- Anki Flashcard files for revision
- No Captcha & No AdSense
- Advanced Exam Configuration
Question #16
You are an Independent Software Vendor (ISV) developer who is responsible for maintaining code for a solution. During code review, the reviewer identifies the following block of code:

The reviewer requests that you improve readability by removing hard coded values in the code.
Which two steps should you take to fulfill the request? Each correct answer presents part of the solution.

The reviewer requests that you improve readability by removing hard coded values in the code.
Which two steps should you take to fulfill the request? Each correct answer presents part of the solution.
- AAdd the following lines to the beginning of the class
- BMake the following changes to the case statement lines:
- CMake the following changes to the case statement lines:
- DAdd the following lines to the beginning of the class:
Correct Answer:
CD
CD
send
light_mode
delete
Question #17
You are working in a model that extends the Application Suite model, and you want to modify the insert method on the SalesLine table using X++ logic. The code looks like the following:
"¦
salesLineType.inserted();
"¦
The salesLineTYpe.inserted() method appears as follows:
public void inserted()
{
}
You need to create a class to run code prior to running the salesLineType.inserted() method in the SalesLineType.insert() method.
What should you do?
"¦
salesLineType.inserted();
"¦
The salesLineTYpe.inserted() method appears as follows:
public void inserted()
{
}
You need to create a class to run code prior to running the salesLineType.inserted() method in the SalesLineType.insert() method.
What should you do?
- ACreate a new class and extend the onlineserted event.
- BCreate a new class that extends the SalesLineType class. Overwrite the inserted method on your new class.
- CCustomize the SalesLine table. Overwrite the insert() method and add your code immediately before the salesLineType.inserted() method.
- DCreate a new class, and add a method that is a pre-event handler for the salesLineType.inserted() method.
Correct Answer:
D
D
send
light_mode
delete
Question #18
You are writing an X++ method to delete a SalesLine record.
You need to ensure that the call to the delete() method succeeds.
Which two criteria must be met to accomplish this goal? Each correct answer presents part of the solution.
You need to ensure that the call to the delete() method succeeds.
Which two criteria must be met to accomplish this goal? Each correct answer presents part of the solution.
- AThe record to delete must have been read from the database using the forupdate keyword in a select statement.
- BThe dispose() method must be called after the delete() method is called.
- CThe delete() method must be called inside a transaction by using the ttsbegin and ttscommit statements.
- DThe dodelete() method must be used in this case in order to validate the record deletion.
Correct Answer:
AC
Reference:
https://docs.microsoft.com/en-us/dynamics365/unified-operations/dev-itpro/dev-ref/xpp-data-query#delete-method
AC
Reference:
https://docs.microsoft.com/en-us/dynamics365/unified-operations/dev-itpro/dev-ref/xpp-data-query#delete-method
send
light_mode
delete
Question #19
You are debugging in X++ and review the following method:

Which three best practices does this method violate? Each correct answer presents part of the solution.

Which three best practices does this method violate? Each correct answer presents part of the solution.
- AThe method does not assign a value to the variable var2.
- BThe If and Else statements should not use braces because each statement is only one line.
- CThe parameter _param should be assigned using the format _param = _param + var1.
- DThe method manipulated the parameter _param.
- EThe return keyword is used in both the If and the Else statements.
Correct Answer:
ADE
ADE
send
light_mode
delete
Question #20
You are an Independent Software Vendor (ISV) developer, and you are writing a custom job by using the SysOperation framework.
The job needs to report informational messages.
Which block of code will report an informational message without a request for user intervention?
A.

B.

C.

D.

The job needs to report informational messages.
Which block of code will report an informational message without a request for user intervention?
A.

B.

C.

D.

send
light_mode
delete
All Pages