Question: 1
A developer creates a custom controller and custom Visualforce page by using the following code block:public class myController {public String myString;public String getMyString() {return 'getmyString';}public String getStringMethod1() {return myString;}public String getStringMethod2() {if (myString == null)myString = 'Method2';return myString;}}{!myString}, {!StringMethod1}, {!StringMethod2}, {!myString}What does the user see
when accessing the custom page?
A GetMyString , , Method2 , getMystring
B , , Method2 , getMyString
C , , Method2,
D GetMyString , , ,
Answer : A
Show Answer
Hide Answer
Question: 2
A developer has a block of code that omits any statements that indicate whether the code block should execute with or without sharing. What will automatically obey the organization-wide defaults and sharing settings for
the user who executes the code in the Salesforce organization?
Question: 3
A developer wants to display all of the available record types for a Case object. The developer also wants to display the picklist values for the Case.Status field. The Case object and the Case.Status field are on a custom Visualforce page. Which action can the developer perform to get the record types and picklist values in the controller? (Choose 2)
Question: 4
A developer writes a SOQL query to find child records for a specific parent. How many levels can be returned in a single query?
Question: 5
When can a developer use a custom Visualforce page in a Force.com application? (Choose 2)