- (Exam Topic 2)
A developer has the following code block:
public class PaymentTax {public static decimal SalesTax = 0.0875;} trigger OpportunityLineItemTrigger on OpportunityLineItem (before insert, before update) {PaymentTax PayTax = new PaymentTax();decimal ProductTax = ProductCost * XXXXXXXXXXX;} To calculate the productTax, which code segment would a developer insert at the XXXXXXXXXXX to make the value the class variable SalesTax accessible within the trigger?
Correct Answer:C
- (Exam Topic 1)
A developer writes the following code:
What is the result of the debug statement?
Correct Answer:C
- (Exam Topic 1)
For which three items can a trace flag be configured? (Choose three.)
Correct Answer:ABD
- (Exam Topic 2)
Which type of code represents the Controller in MVC architecture on the Force.com platform? (Choose 2)
Correct Answer:CD
- (Exam Topic 2)
A developer has a unit test that is failing. To identify the issue, the developer copies the code inside the test method and executes it via the Execute Anonymous Apex Tool. The code then executes without failing. Why did the unit test failed, but not the Execute Anonymous?
Correct Answer:B
- (Exam Topic 1)
What is the result of the debug statements in testMethod3 when you create test data using testSetup in below code?
Correct Answer:C