Topic 2 : Exam Pool B
A custom exception "RecordNotFoundException" is defined by the following code of block.public class RecordNotFoundException extends Exception()which statement can a developer use to throw a custom exception?choose 2 answers
A. Throw new RecordNotFoundException("problem occured");
B. Throw new RecordNotFoundException();
C. throw RecordNotFoundException("problem occured");
D. Throw RecordNotFoundException();
A developer uses a before insert trigger on the Lead object to fetch the Territory__c object, where the Territory__c.PostalCode__c matches the Lead.PostalCode. The code fails when the developer uses the Apex Data Loader to insert 10,000 Lead records. The developer has the following code block: Line-01: for (Lead l : Trigger.new){Line-02: if (l.PostalCode != null) {Line-03: List
A. Line-03: A SOQL query is located inside of the for loop code.
B. Line-01: Trigger:new is not valid in a before insert Trigger.
C. Line-02: A NullPointer exception is thrown if PostalCode is null.
D. Line-05: The Lead in a before insert trigger cannot be updated.
A developer wants to display all of the available record types for a Case object. The developer also wants to display the picklist values for the Case.Status field. The Case object and the Case.Status field are on a custom Visualforce page. Which action can the developer perform to get the record types and picklist values in the controller? (Choose 2)
A. Use Schema.PicklistEntry returned by Case.Status.getDescribe().getPicklistValues().
B. Use Schema.RecordTypeInfo returned by Case.sObjectType.getDescribe().getRecordTypeInfos().
C. Use SOQL to query Case records in the org to get all the RecordType values available for Case.
D. Use SOQL to query case records in the org to get all values for the Status picklist field.
What is the result when a Visualforce page calls an Apex controller, which calls another Apex class, which then results in hitting a governor limit?
A. Any changes up to the error are saved.
B. Any changes up to the error are rolled back.
C. All changes before a savepoint are saved.
D. All changes are saved in the first Apex clas
Which statement would a developer use when creating test data for products and pricebooks?
A. Id pricebookId = Test.getStandardPricebookId();
B. Pricebook pb = new Pricebook();
C. IsTest(SeeAllData = false);
D. List objList = Test.loadData(Account.sObjectType, 'myResource');
To which primitive data type in Apex is a currency field atomically assigned?
A. Integer
B. Decimal
C. Double
D. Currency
In the Lightning Component framework, where is client-side controller logic contained?
A. Apex
B. Visualforce
C. Vhtml
D. JavaScript
E. JavaScript
Which user can edit a record after it has been locked for approval? (Choose 2)
A. Any user with a higher role in the hierarchy
B. A user who is assigned as the current approver
C. Any user who approved the record previously
D. An administrator
Which statement about change set deployments is accurate? (Choose 3)
A. They use an all or none deployment model.
B. They require a deployment connection.
C. They ca be used to transfer Contact records.
D. They can be used to deploy custom settings data.
E. They can be used only between related organizations.
A company would like to send an offer letter to a candidate, have the candidate sign it electronically, and then send the letter back.What can a developer do to accomplish this?
A. Create a visual workflow that will capture the candidate’s signature electronically
B. Develop a Process Builder that will send the offer letter and allow the candidate to sign it electronically.
C. Install a managed package that will allow the candidate to sign documents electronically
D. Create an assignment rule that will assign the offer letter to the candidate
Page 7 out of 40 Pages |
Previous |