Salesforce Certified Platform Developer I Exam Questions With Answers(26-30)

26. What is an accurate statement about with sharing keyword?
Choose 2 answers

A. Inner classes do not inherit the sharing setting from container class
B. Both inner and outer classes can be declared as with sharing.
C. Either inner or outer classes can be declared as with sharing, but not both.
D. Inner classes inherit the sharing setting from container class.

27. How can a developer refer to, or instantiate, a PageReference in Apex? Choose 2 answers.

A. By using a PageReference with a partial or full URL
B. By using the Page object and a visualforce page name
C. By using the ApexPages.Page() method with a Visualforce page name.
D. By using the PageReference.Page() method with a partial or full URL.

28. Which standard field needs to be populated when a developer inserts new Contact record programmatically?

A. AccountId
B. Name
C. LastName
D. FirstName

29. What is the minimum log level needed to see user-generated debug statements?


30. A developer creates a new Visualforce page and Apex extension, and writes test classes that exercises 95% coverage of the new Apex extension. Change set deployment to production fails with the test coverage warning: “Average test coverage across all Apex classes and triggers is 74%, at least 75% test coverage is required.” What can a developer do to successfully deploy the new Visualforce page and extension?

A. Create test classes to exercise the Visualforce page markup.
B. Select “Disable Parallel Apex Testing” to run all the tests.
C. Add test methods to existing test classes from previous deployments.
D. Select “Fast Deployment” to bypass running all the tests.

   Click here for Prev.Page      For Answers Click Here               Click here for Next Page

Related posts