A developer creates a custom exception as shown below: public class ParityException extends Exception {} What are two ways the developer can fire the exception in Apex? Choose 2 answers
A. new ParityException();:
B. throw new ParityException("parity does not match");
C. new ParityException('parity does not match');
D. throw new ParityException();
What are two use cases for executing Anonymous Apex code? Choose 2 answers
A. To delete 15,000 inactive Accounts In a single transaction after a deployment
B. To schedule an Apex class to run periodically
C. To run a batch Apex class to update all Contacts
D. To add unit test code coverage to an org
Which three data types can a SOQL query return? Choose 3 answers
A. List
B. Long
C. Integer
D. sObJect
E. Double
Universal Containers has an order system that uses an Order Number to identify an order for customers and service agents. Order records will be imported into Salesforce. How should the Order Number field be defined in Salesforce?
A. Direct Lookup
B. External ID and Unique
C. Lookup
D. Indirect Lookup
A developer is asked to write helper methods that create test data for unit tests.
What should be changed in the Testvtils class so that its methods are only usable by unit test methods?
A. Change public to private on line 01.
B. Add @IsTest above line 03,
C. Add @IsTest above line 01.
D. Remove static from line 03.
Page 15 out of 48 Pages |
Previous |