You are on page 1of 34

Topics to concentrate more on:

Apex execution mechanism


Governor Limits
VisualForce execution mechanism
VisualForce Email Templates
VisualForce Tags & Apex Components
InboundEmail & OutboundEmail (Email Services)
Testmethods for all type of classes
ANT Tool & Force.com IDE
Apex Debugging and new System Log
Describe Calls, Batch Apex, Dynamic Apex, SOSL
www.careeroncloud.com

1. How do you declare a standard controller for


visualforce page?

Ans:

www.careeroncloud.com

2. How do you declare a component?


Ans:

your code here

www.careeroncloud.com

3. Order of execution of VF Pages?


Ans:

www.careeroncloud.com

4. How do you declare a tabsyle for standard


controller?
Ans:

www.careeroncloud.com

5. How do you invoke a custom component


named in your org?

Ans:

www.careeroncloud.com

6. How do you use composition and define tags in


templates?
Ans:

www.careeroncloud.com

7. Does the <messaging:emailTemplate> tag


must contain either a single
<messaging:htmlEmailBody> tag or a single
<messaging:plainTextEmailBody> tag.
Ans:

www.careeroncloud.com

8. Can we execute runas from System log?


Ans:

www.careeroncloud.com

9. If you are getting into view state errors, what


will you do?
Ans:

www.careeroncloud.com

10. Order of execution of apex code ?


Ans:

www.careeroncloud.com

11. There is query inside for loop in a trigger and


hitting a governor limits as too many soql
errors? What should we do?
Ans:

www.careeroncloud.com

12. Deleting an account, contacts also get


deleted. When we undelete the accounts what
will happen?
Ans:

www.careeroncloud.com

13. For writing email services which class you


should implement?
Ans:

www.careeroncloud.com

14. If a testmethod calls a @future method


which is inserting a record and it in turn invokes
a trigger. What is your current context?

Ans:

www.careeroncloud.com

15. Advantage of latest system log?


Ans:

www.careeroncloud.com

16. when we merge two contacts, which trigger


will fire?
Ans:

www.careeroncloud.com

17. Map the following for Dynamic SOQL, Dynamic SOSL,


Dynamic DMLS and Describe calls syntax

Ans:

www.careeroncloud.com

18. All the properties in VF page should have?


Ans:

19. What is true about Apex?


Ans:

www.careeroncloud.com

20. If the production user is having


production@admin.com and what will be qa
sandbox's user name and url?
Ans:

21. If a developer wants to build and sell an


application on force.com platform, which
environment he/she should be using?

Ans:
www.careeroncloud.com

22. You have a production data issue and you


wanted to debug this issue in your sandbox,
which sanbox will you use?
Ans:
23. What are the non-standard controller action
methods?

Ans:
www.careeroncloud.com

24. Code Snippet: public class dev501 {


Public string
optout{get{if(optout==null)optout = 'GETTEST'; return optout;}
private set;}
Public dev501 (){
optout = 'Test';
}
public void setoptout(){
optout = 'SETTest';
}
}
What will be the value for optout field on the VF page

Ans:
www.careeroncloud.com

25. When you retrieve the custom field


myfield__c on Employee__c object using
force.com IDE, where will it store?
Ans:
26. How do you delete a field using ANT
/Force.com migration tool?
Ans:
www.careeroncloud.com

27. What is the use of Force.com code share?

Ans:

28. <apex:page standardController="Account"


recordSetVar="accounts"> </apex:page> For this
page which all buttons can be overriden?
Ans:

www.careeroncloud.com

29. Code Example: public class example{


public static boolean void color(String cl){
if(cl='Red')
return true;
else
return false;
}
}
Which code below covers this to 100 %
Ans: {

}
www.careeroncloud.com

30. trigger mytrigger on Account(before insert, before


update){
Trigger.new[0].Name = 'TEST';
}
What will happen when we write a trigger like this, will it
fail?
Ans:
31. Which tag should be used to display error message
similar to salesforce style depending on the SEVERITY?
Ans:
www.careeroncloud.com

32. Passing parameters to the page in


testmethod?
Ans:

www.careeroncloud.com

33. How do you bring the values using


components.
<apex:pageblock id="pb1">
<apex:pageblocktable id="pbt" var="a"
value="{!Accounts}">
<apex:column id="pbtc" value="{!a.Name}"/>
</apex:pageblocktable>
</apex:pageblock>
Ans:
www.careeroncloud.com

34. When do we use visualforce?


Developers can use Visualforce pages to:
Override standard buttons, such as the New button
for accounts, or the Save button for contacts
Override tab overview pages, such as the Accounts
tab home page
Define custom tabs
Embed components in detail page layouts
Create dashboard components or custom help pages
Build wizards and other multistep processes
Create your own custom flow control through an
application
Define navigation patterns and data-specific rules for
optimal, efficient application interaction
www.careeroncloud.com

35. What is $Component?

Ans: The $Component global variable simplifies


references and reduces some of the
dependency on the overall page structure. For
example, to access a data table with
id="tableID" contained in a page block with
id="blockID", use the following expression:
$Component.blockID.tableID.

www.careeroncloud.com

36. When to use Apex?


Ans: Use Apex if you want to:
Create Web services,
Create email services
Perform complex validation over multiple objects
Create complex business processes that are not supported
by workflow
Create custom transactional logic (logic that occurs over
the entire transaction, not just with a single record or object)
Attach custom logic to another operation, such as saving a
record, so that it occurs whenever the operation is executed,
regardless of whether it originates in the user interface, a
Visualforce page, or from the Web Services API

www.careeroncloud.com

37. @Future ?
Use the @future annotation to identify methods that
are executed asynchronously.
Methods with the future annotation must be static
methods, and can only return a void type.
No more than 10 method calls per Apex invocation
No more than 200 method calls per Salesforce.com
license per 24 hours
The parameters specified must be primitive dataypes,
arrays of primitive datatypes, or collections of
primitive datatypes.
Methods with the future annotation cannot take
sObjects or objects as arguments.
www.careeroncloud.com

Thank
You
www.careeroncloud.com

You might also like