PDI Exam Question 151
A developer considers the following snippet of code:

Based on this code, what is the value of x?

Based on this code, what is the value of x?
PDI Exam Question 152
A developer declared a class as follow.
public class wysiwyg { // Properties and methods including DML }
Which invocation of a class method will obey the organization-wide defaults and sharing settings for the running user in the Salesforce Organization?
public class wysiwyg { // Properties and methods including DML }
Which invocation of a class method will obey the organization-wide defaults and sharing settings for the running user in the Salesforce Organization?
PDI Exam Question 153
As a part of class implementation a developer must execute a SOQL query against a large data ser based on the contact object. The method implementation is as follows.

Which two methods are best practice to implement heap size control for the above code? (Choose 2 Answers)

Which two methods are best practice to implement heap size control for the above code? (Choose 2 Answers)
PDI Exam Question 154
A developer is tasked with performing a complex validation using Apex as part of advanced business logic.
certain criteria are met for a PurchaseOrder, the developer must throw a custom exception.
What is the correct way for the developer to declare a class that can be used as an exception?
certain criteria are met for a PurchaseOrder, the developer must throw a custom exception.
What is the correct way for the developer to declare a class that can be used as an exception?
PDI Exam Question 155
A custom Visualforce controller calls the apexPages.addMessage () method, but no messages are rendering on the page.
Which component should be added to the Visualforce page to display the message?
Which component should be added to the Visualforce page to display the message?
