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.)
Dynamic SOQL cannot reference fields on bind variables
Dynamic SOQL cannot use bind variables
Bind variables must be public or global
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?
<apex:variable>
<apex:define>
<apex:param>
<apex:attribute>
Question 83
Which two objects can be inserted in the same transaction? (Choose two.)
Opportunity and User
Account and AccountShare
Case and CaseComment
Account and Group
Question 84
How can the DISTANCE and GEOLOCATION functions be used in SOQL queries? (Choose two.)
To filter results based on distance from a latitude and longitude
To get the distance results from a latitude and longitude
To order results by distance from a latitude or longitude
To group results in distance ranges from a latitude and longitude