Order of Execution of Visualforce Page in Salesforce

In so many interviews this question will be asked. Generally people will read order of execution of record saving, but they will miss this. You shouldn’t be one of them. So read below. Mainly Visualforce Page Execution in two scenarios. Order of Execution for Visualforce Page Get Requests Order of Execution for Visualforce Page Post back Requests However HTTP is a stateless protocol, In Visualforce, page state is persisted as a hidden form field that is automatically inserted into a form when the page gets generated. We call this the…

Read More

Salesforce Certified Platform Developer I Exam Questions With Answers (31-35)

31. A developer needs to automatically populate ReportsTo field in a Contact record based on the values of the related Account and Department fields in the Contact record. Which type of trigger would the developer create? A. Before Update B. After Insert C. Before Insert D. After Update 32. A developer is creating an application to track engines and their parts. An individual part can be used in different type of engines. What data model should be used to track the data to prevent orphan records? A. Create a junction…

Read More

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….

Read More

Salesforce Certified Platform Developer I Exam Questions With Answers(21-25)

21. Which data structure is returned to a developer when performing SOSL search? A. A list of lists of sObjects B. A map of sObject type to a list of sObjects. C. A map of sObject type to a list of lists of sObjects. D. A list of sObjects. 22. How can a developer avoid exceeding governor limits when using Apex Trigger? Choose 2 answers A. By using a helper class that can be invoked from multiple triggers. B. By using Database class to handle DML transactions C. By using…

Read More

How many times we can call Test.StartTest() and Test.StopTest() – Salesforce Apex Issue

How many times we can call Test.StartTest() and Test.StopTest() methods in test class? Generally Test.StartTest() and Test.StopTest() methods are used to create another set of governor limits in a method. With this we can get rid of limits issues in test classes. As we are checking positive and negative scenarios by giving different inputs, we tend to reach the governor limits. So we write block of code in between Test.StartTest() and Test.StopTest() in the method and execute. Each test method is allowed to call these methods once only. So, we…

Read More