Certified Platform Developer II Practice Test

Certified Platform Developer II Practice Test practice questions, page 17 of 17, with answer review and explanations.

Question 81

What is a consideration when using bind variables with dynamic SOQL? (Choose two.)

  1. Dynamic SOQL cannot reference fields on bind variables
  2. Dynamic SOQL cannot use bind variables
  3. Bind variables must be public or global
  4. Bind variables must be in local scope

Question 82

A developer created a custom component to display an HTML table. The developer wants to be able to use the component on different Visualforce Pages and specify different header text for the table. Which tag should the developer use inside the component?

  1. <apex:variable>
  2. <apex:define>
  3. <apex:param>
  4. <apex:attribute>

Question 83

Which two objects can be inserted in the same transaction? (Choose two.)

  1. Opportunity and User
  2. Account and AccountShare
  3. Case and CaseComment
  4. Account and Group

Question 84

How can the DISTANCE and GEOLOCATION functions be used in SOQL queries? (Choose two.)

  1. To filter results based on distance from a latitude and longitude
  2. To get the distance results from a latitude and longitude
  3. To order results by distance from a latitude or longitude
  4. To group results in distance ranges from a latitude and longitude