Question 46

A developer is creating a test coverage for a class and needs to insert records to validate functionality.
Which method annotation should be used to create records for every method in the test class?
  • Question 47

    Application Events follow the traditional publish-subscribe model. Which method is used to fire an event?
  • Question 48

    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?
  • Question 49

    The account object has a custom percent field, rating, defined with a length of 2 with 0 decimal places. An account record has the value of 50% in its rating field and is processed in the apex code below after being retrieved from the database with SOQL public void processaccount(){ decimal acctscore = acc.rating__c * 100; } what is the value of acctscore after this code executes?
  • Question 50

    Universal Containers wants Opportunities to be locked from editing when reaching the Closed/Won stage.
    Which two strategies should a developer use to accomplish this? (Choose two.)