Friday, March 2, 2012

Important Q & A basics dev401


1. What is Apex ?


Ans: It is the in-house technology of salesforce.com which is similar to Java programming with object oriented concepts and to write our own custom logic.


2. What is S-Control ?


Ans: S-Controls are the predominant salesforce.com widgets which are completely based on Javascript. These are hosted by salesforce but executed at client side. S-Controls are superseded by Visualforce now.



3. What is a Visualforce Page ?


Ans: Visualforce is the new markup language from salesforce, by using which, We can render the standard styles of salesforce. We can still use HTML here in Visualforce. Each visualforce tag always begins with “apex” namespace. All the design part can be acomplished by using Visualforce Markup Language and the business logic can be written in custom controllers associated with the Page.


4. Will Visual force still supports the merge fields usage like S-control ?


Ans: Yes. Just like S-Controls, Visualforce Pages support embedded merge fields, like the {!$User.FirstName} used in the example.


5. Where to write Visualforce code ?


Ans: You can write the code basically in 3 ways.
setup->App Setup->Develop->Pages and create new Visulaforce page.
Setup -> My Personal Information -> Personal Information -> Edit check the checkbox development mode. When you run the page like this, https://ap1.salesforce.com/apex/MyTestPage. you will find the Page editor at the bottom of the page. You can write you page as well as the controller class associated with it, there it self.
Using EclipseIDE you can create the Visulaforce page and write the code.


6.What are Apex Governor Limits?


Governor limits are runtime limits enforced by the Apex runtime engine. Because Apex runs in a shared, multitenant environment, the Apex runtime engine strictly enforces a number of limits to ensure that code does not monopolize shared resources. Types of limits that Apex enforces are resources like memory, database resources, number of script statements to avoid infinite loops, and number of records being processed. If code exceeds a limit, the associated governor issues a runtime exception.


7. What is Roll up summary field in Salesforce?


Roll up summary field in salesforce calculates the Count, Sum, Min or Max of particular field of any child record. Thus, we can say that Roll up summary field can only be created on Master object.


8.How many types of the relationship fields available in Salesforce?
Ans :
Master Detail
Many to Many
Lookup
Hierarchical
self relationship

9. What will happen if the Account is deleted?


If the Account is deleted then Contact, Opportunity will also be deleted from Salesforce which are related to that Account.


10.What are the types of email templates available in salesforce.com?

Text
HTML with Letter Head
Custom HTML
Visual force



11.If one object in Salesforce have 2 triggers which runs “before insert”. Is there any way to control the sequence of execution of these triggers?


Ans : Salesforce.com has documented that trigger sequence cannot be predefined. As a best practice create one trigger per object and use comment blocks to separate different logic blocks. By having all logic in one trigger you may also be able to optimize on your SOQL queries.


12.Do governor limits apply to sandbox instances?


Ans : Governor limits do apply to all Salesforce instances (trial, developer, production or sandbox environments). However code coverage and successful execution of test classes is only enforced when deploying to a production environment.


13.How to delete the users data from Salesforce?


Ans : To delete the Users Data go to Setup | Administration Setup | Data Management | Mass Delete Record, from there select the objects like Account, Lead etc and in criteria select the users name and delete all records of that user related to particular object



14. How to restrict the user to see any record, lets say opportunity?


Ans : set up opportunity sharing to be private. If both users are admins or have view all records on opportunity, then that overrides private sharing


15. What is the difference between trigger.new and trigger.old in Apex – SFDC?


Ans :


Trigger.new :


Returns a list of the new versions of the sObject records.
Note that this sObject list is only available in insert and update triggers, and the records can only be modified in before triggers.


Trigger.old :


Returns a list of the old versions of the sObject records.
Note that this sObject list is only available in update and delete triggers.



29. How you can provide the User Login (Authentication) in Public sites created by Salesforce.

Answer :
We can provide the authentication on public sites using “Customer Portal”.


30.Where is the option of the report for the “Custom Object with related object” and what are the condition to generate related reports?


Ans :


If the parent object is the standard object provided by the salesforce like “Account”, “Contact” then the report will be in there section with related custom object.
If both objects are the custom then the report will be in “Other Reports” Sections.
Following are the conditions to get the report of related objects:
On both the objects, Reports option must be enable.
The relationship between both of them must be “Master – detail relationship”.

Lookup Vs Master Detail relationship


1.No, you cannot have a rollup summary field that uses a Lookup relationship. it must be on the parent of the master/detail relationship.

Lookup Relationships:


1. Loosely coupled
2. Child field value may be optional
3. No cascade delete
4. Independent ownership & sharing
5. Maximum 25 lookup relationships per child


Master/Detail Relationships:


1.Tightly coupled
2.Child field value is always required
3.Cascade delete
4.Inherited ownership & sharing
5.Maximum 2 master relationships per detail object
6.Can be multiple levels deep
7.If master is a standard object: 2 additional subdetails
8.If master is a custom object: 3 additional subdetails

SF Tough Questions

General Q :



1) Explain how MVC architecture fit for Salesforce?


2) How will you create relationship between objects?


3) How many types of relationships are possible between objects?


4) How many data types are supported for a Custom Objects standard field name?


5) What are activities?


6) What is the difference between task and event?


7) List and describe features used to set permission and data access in custom app?


8) How will you create a user?


9) What are the available editions in Salesforce?


10) What is the difference between different editions of Salesforce?


11) What is the difference between Sandbox and Developer environment?


12) How to schedule export or take the backup of Salesforce?


13) What are sharing settings?


14) What are person accounts?


15) How forecasting works in salesforce?


16) What are system fields? Can you name some of them.


17) What are default components available on home page?


18) How do I change the home page layout?


19) How many types of reports I can create in salesforce? What are they?


20) What is dashboard? How is it created


21) What is page layout?


22) What is related list?


23) What is the difference between page layout and related list?


24) What is mini page layout?


25) What is Hover page layout ?

SF Technical Interview Q


Technical Questions


1) What is Apex?


2) What is VisualForce?


3) What is an S-Control?


4) What is the difference between Visualforce and S-Control?


5) What are recursive triggers? How can we avoid the recursion problem?


6) What are apex governer limits?


7) Do governer limits apply to sandbox instances?


8) What are recent release features?


9) How do you use actionFunction tag?


10) What is the difference between actionFunction and actionSupport tags?


11) What is actionPoller?


12) What is the difference between ISNULL and ISBLANK?


13) How do you do FileUpload using visualforce?


14) What is appExchange? How can I host my application on appExchange?


15) What is batch apex?


16) When will you use batch apex and what is the best practice?


17) What is apex scheduler?


18) What are webservice callouts?


19) What are wrapper classes?


20) When do we use wrapper classes?


21) How do you hide header and side bar on visualforce page?


22) What is the difference between standard and custom controller?


23) What is controller extension?


24) How do you read parameter in visualforce page?


25) How many dependent drop downs can be put in visualforce page?


26) What is the maximum size of the PDF generated on visualforce attribute renderAs?


27) How can we check the objects accessibility on visualforce page?


28) How many rows are returned by a list controller?


29) What is custom component?


30) What is assignTo attribute and what is its use?

Developer 401 Force.com Exam - Tips

Hi:
The
developer 401 Force.com Exam is geared toward people who do not know how to code as per say write a trigger or Visual Force Page. But does understand what the technical functions are in salesforce.com.
So when you are preparing for this test, please do not worry about the code itself but worry about:

  • Security that is involved on the force.com platform <== Refers to Groups, Roles, Profiles
  • Master/Detail/Lookup relationships
  • Junction Objects
  • relationship between Developer/Full Copy/Config sandbox and Production
  • Matrix Reports (similar to a Pivot table in Excel)
  • DataLoader
  • Import Wizard
  • Know all the Components(See pic below)

http://4.bp.blogspot.com/__nzEBJ9QLCY/SbFURyihMII/AAAAAAAAAC0/ohvNX_edxTU/s320/setup.pngBasically go through the setUp area and you should know and understand everything that is there for this exam. Remember this exam does not test your code knowledge it is an exam to make sure you undertstand the technical side of things. It may seem like an Admin exam. You might say "I am not an admin". Well, everytime when a developer gets a project, one must think of two things:

  1. Can it be done without code <== this is understand the functions of the App.
  2. If done in code then what would be affected, as in Relationships between objects, Reports, etc.

I listed out the top 45 things to know/understand about the test...It is highly recommended that you know the technical functionality of all the functions on the force.com. Also, know the Apex Dataloader as well. (Note: These are notes not questions from the exam)

1. ID's are identical in :

A. Production, full copy sandbox, developer

B. Production and full copy sandbox only

C. Production , developer

2. If you want to look at trends in a report which report would you use:

A. Matrix

B. Summary

3. If you want the a list of positions what dashboard would you use:

A. metric

B. table

C. chart

D. gauge

4. how many master detail relationships can you have on an object:

A. 4

B. 2

C. 1

D. 3

5. What would you use an apex trigger for...

A. have a zip code object and in the city and state of the

candidate position to check the zip code table and see if that

city exist in the state

B. create new record, have it update a field

6. What is a Mini page layout or related list?

7. Know everything about an external id.

8. Know the ins and out of the search component on the side bar

9. What versions have apex and vf both active:

10. For the user object what can you do in the page layout:

A. custom link

B. inline vf page

C. custom button

D. custom field

11. A CEO does not want to log into salesforce.com but would

like see the dashboards.

How would one accomplish this? How would one set this up?

12. When one wants to lock the records:

A. is this process automated

B. One needs to choose this option when doing an approval process.

13. Profiles and what do they give access to?

14. Sharing and revoking grant access

15. The import wizard and user object

16. Force.com metadata api

17. What represents the view in MVC

18. Organization wide defaults

19. Public read/write, public read only

20. If the approval process sents out 3 emails simultaneously to managers.

What is the next step in the approval process and how does it get to

the next step?

21. Parent child relationship

22. Many many replationship

23. Manager wants to give access to data reporting to his team

what access is required for this to happen:

A. reports, dashboard folder

B. reports dashboard user running

24. Encryted field not good for :

25. Workflow rules

26. Today()-Datevalue(CreatedDate)

27. For approval process what groups can you have:

A. profiles

B. roles and subordicates

C. active team members

28. Org wide defaults / hierarchy turned off

29. Page Layout can you add inline vf

30. Record types

31. Is there such a thing called minipagelayout

32. Who can change the owner of a record

33. How does a developer test out the time trigger workflow rule

does he do it through:

A. debug log.

B. sign in as the developer name, create new record,

go to the time trigger queue

34. Creating a lookup relationship

35. What are the three actions for a workflow process the beggining steps

36. Do you give permissions to submit for approval button,

Or is it added on automatically?

37. Dataloader: 50,000 more records at a time. True or False

38. Developer used dataloader and try to load into sandbox

but had an issue had authentication issue

What could it be:

A. Password encryption

B. Chk username

C. chk endpoint

39. What is a Declarative interface?

40. What is localize and internationalize?

41. What does out of the box salesforce give you?

A. data warehouse

B. approval process

C. workflow rules

D. validation rules

42. Know this page.Inside out.

http://4.bp.blogspot.com/__nzEBJ9QLCY/SbFRvnlqf5I/AAAAAAAAACk/3VGDKQtyq7Q/s320/customfield.jpg

43. Apex Dataloader and Import wizard through salesforce.com

For Apex Dataloader Go Into:

Setup|Administrative Setup|Data Management| DataLoader (See Below)

http://4.bp.blogspot.com/__nzEBJ9QLCY/SbFTP73N7-I/AAAAAAAAACs/8SKPCqzrhBI/s320/dataloader.jpg

I hope this helps future developers who will be taking this exam..

Great Links on Salesforce.com

No comments :