, , ,

Recently, I took the interview with a Consulting company and it was a pure technical round of interview. I thought of sharing the questions and please find them below:

1. What is Cloud computing and salesforce?
2. 3 Best practices of SOQL
3. Whats the difference between 15 and 18 digit Id?
4.  What is without sharing option and why is it given by SF?
5. Purpose of static resource
6. Suppose there is a field called priority in accounts and if its greater than 5, we need to update associated contact records. how will you do it?
7. Following the previous question, what will happen if you write the trigger on before update?
8. What is Cross object workflow and its limitations?
9. Can you check null pointer exception in try catch block?
10. Can you check DML governor limits in try catch block?
11. Is apex always run in system mode?
12. What are standard controllers, controller extensions and custom controllers?
13. What’s the issue in the below code :

for (Account a : trigger.new) {

for (Contact c : [select id,otherphone from contact where accountid =:a.id]) {

c.OtherPhone= a.Phone; 

update c;



14.  Given the following Force.com page markup and assuming the controller and each extension include an action method named “go,” which class method will be invoked when the user clicks on the commandButton? 

Screen Shot 2015-04-26 at 10.06.29 pm

15. A Force.com page has a command button that directly calls the doSomething() method shown below, where the MyCustomException is a class that extends the System.Exception class

 public void doSomething(){
} throw new MyCustomException(‘An error message.’);
Where would the exception be displayed to the user?

16. How do you make a Web service callout(outbound)?
17. How do you call a method in the class asynchronously in SFDC?
18. What is @isTest(SeeAllData=true)?
19. How do you make sure that your test class covers +ve and -ve scenarios?
20. Whats the advantage of using inline CSS?
21. If there is a trigger on account object and if you insert data through data loader lets say 200 records and on 200th record, the trigger fails, will it roll back or will it commit 199 records?
22. How do you get the contact name from accounts when you write SOQL?
23. Force.com has already provided functionalities OOB, so when you get the requirement, how do you approach it?
24. W
hat is SaaS, PaaS and IaaS?
26. What is the action attribute in command button signifies in VF page?
27. What is batch apex, apex scheduling?