Need to practice your Salesforce skills for an upcoming job interview? Try solving these Salesforce interview questions that test knowledge of Apex, Visualforce, object relationships, and other skills. We’ll provide feedback on your answers, and you can use a hint if you get stuck.
These Salesforce interview questions are examples of real tasks used by employers to screen job candidates such as Salesforce developers, and others that require working with and customizing the Salesforce platform.
1. User Wish
A website dedicated to wish lists uses following Salesforce objects:
Management wants to add a field to the User object that will contain the number of Wish objects the User has. What is the behavior of those objects and what needs to be done to add the new field?
(Select all acceptable answers.)
2. Account Name
Fill the blanks in the following Apex code snippet, so that a SOSL query selects the Name field in all Account objects where any field contains the word "John":
results = [FIND '' IN ALL FIELDS RETURNING ];
3. Date Output
Fill in the blanks in the following Visualforce code snippet, so that the outputText element outputs the current date in the following format: day/month/year. The day and month should always have two digits, and the year should have four digits. The param element should be an expression that always returns the current date.
For example, if the date is 6th of March, 2020, the outputText should be: "06/03/2020".
<apex:outputText value="">
<apex:param value=""/>
</apex:outputText>

Salesforce Online Test (Easy)