Free Certified Platform Developer II Exam Braindumps (page: 47)

Page 46 of 107

When testing batch classes, what must a developer do? (Choose two.)

  1. Use seeAllData=true
  2. Encapsulate code in Test.startTest() and Test.stopTest()
  3. Call the class' "execute" method
  4. Limit the amount of records you test to < 200

Answer(s): B,D

Explanation:

If you use "seeAllData=true," you are a bad person



If a developer wanted to display error messages with the standard Salesforce UI styling, what would they use?

  1. <apex:pageMessages>
  2. <apex:message>
  3. <apex:outputText>
  4. <apex:error>

Answer(s): A



During the Visualforce Page execution, what step follows immediately after "Evaluate constructors on controller and extensions"?

  1. Create the view state
  2. Evaluate constructors, extensions, and expression on attribute definitions on any custom components present
  3. Evaluate expressions, <apex:page> attribute actions, and other method calls (getters/setters) on main page
  4. Send HTML to Browser

Answer(s): B



Where in a query can you use Geolocation and Distance? (Choose two.)

  1. Select clause
  2. Filter clause
  3. Order By clause
  4. Group By clause

Answer(s): B,C






Post your Comments and Discuss Salesforce Certified Platform Developer II exam with other Community members:

Exam Discussions & Posts