A developer has a single custom controller class that works with a Visualforce Wizard to support creating and editing multiple sObjects. The wizard accepts data from user inputs across multiple Visualforce pages and from a parameter on the initial URL
Which statement is unnecessary inside the unit test for the custom controller? Choose 3 answers
A. Public ExtendedController (ApexPages.StandardController cntrl) { }
B. ApexPages.currentPage().getParameters().put('input', 'TestValue')
C. Test.setCurrentPage(pageRef),
D. String nextPage = controller.save().getUrl();
E. insert pageRef.
To which primitive data type in Apex is a currency field atomically assigned?
A. Integer
B. Decimal
C. Double
D. Currency
Which resource can be included in a Lightning Component bundle?Choose 2 answers
A. Apex class
B. Adobe Flash
C. JavaScript
D. Documentation
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();
When creating unit tests in Apex, which statement is accurate?Choose 2
A. Unit tests with multiple methods result in all methods failing every time one method fails.
B. Increased test coverage requires large test classes with many lines of code in one method.
C. Triggers do not require any unit tests in order to deploy them from sandbox to production.
D. System Assert statements that do not Increase code coverage contribute important feedback in unit tests
How can a developer avoid exceeding governor limits when using an Apex Trigger?choose 2 answers
A. By using a helper class that can be invoked from multiple triggers.
B. By using the Database class to handle DML transactions.
C. By using Maps to hold data from query results.
D. By performing DML transactions on lists of SObjects.
What is a correct pattern to follow when programming in Apex on a Multi-tenant platform?
A. Apex code is created in a separate environment from schema to reduce deployment errors.
B. DML is performed on one record at a time to avoid possible data concurrency issues.
C. Queries select the fewest fields and records possible to avoid exceeding governor limits.
D. Apex classes use the ''with sharing" keyword to prevent access from other server tenants.
What should a developer working in a sandbox use to exercise a new test Class before the developer deploys that test production?Choose 2 answers
A. The REST API and ApexTestRun method
B. The Apex Test Execution page in Salesforce Setup.
C. The Test menu in the Developer Console.
D. The Run Tests page in Salesforce Setup.
A company that uses a Custom object to track candidates would like to send candidate information automatically to a third -party human resource system when a candidate is hired. What can a developer do to accomplish this task?
A. Create an escalation rule to the hiring manager.
B. Create an auto response rule to the candidate.
C. Create a Process Builder with an outbound message action.
D. Create a workflow rule with an outbound message action.
What is the accurate statement about with sharing keyword? choose 2 answers
A. Inner class do not inherit the sharing setting from the container class
B. Both inner and outer class can be declared as with sharing
C. Either inner class or outer classes can be declared as with sharing but not both
D. Inner class inherit the sharing setting from the container class
Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only Salesforce exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your PDI exam preparations and Salesforce certification application, do not hesitate to visit our Vcedump.com to find your solutions here.