- (Exam Topic 2)
Which statement is true about developing in a multi-tenant environment?
Correct Answer:A
- (Exam Topic 2)
What is the value of x after the code segment executes?
String x = 'A';Integer i = 10;if ( i < 15 ) {i = 15;x = 'B';} else if ( i < 20 ) {x = 'C';} else {x = 'D'; }
Correct Answer:C
- (Exam Topic 2)
A developer has the following class and trigger code public class insurancerates{ public static final decimal smokercharge = 0.01; } trigger contacttrigger on contact (before insert){ insurancerates rates = new insurancerates(); decimal basecost=xxx; } Which code segment should a developer insert at the xxx to set the basecost variable to the value of the class variable smokercharge?
Correct Answer:C
- (Exam Topic 2)
A developer uses a Test Setup method to create an Account named 'Test'. The first test method deletes the Account record. What must be done in the second test method to use the Account?
Correct Answer:A
- (Exam Topic 2)
A developer needs to create an audit trail for records that are sent to the recycle bin. Which type of trigger is most appropriate to create?
Correct Answer:B
- (Exam Topic 1)
A developer encounters APEX heap limit errors in a trigger.
Which two methods should the developer use to avoid this error? (Choose two.)
Correct Answer:AD