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.
16. 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”.
17.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”.
18.In Universal Recruiter application a developer realizes that the Salary field of an employee is set up to an incorrect value. The developer needs to find out who has set this new value to Salary field. Which feature of the platform can be used to support this requirement. Select the one correct answer.
Debug Log
System Log
Setup Audit Trail
Field History Tracking **
19.Which of the following is correct about custom fields in Salesforce. Select one correct answer.
If a field is set as required it must be entered in the Salesforce generated pages, however it may not be specified when entering information via Force.com API
A required field is always present in an edit page **
B unique field is always present in an edit page
C unique field increases report and SOQL performance
20.Fields of the which of the following type is not allowed to be set as external ids. Select one correct answer.
Date **
Number
eMail
Text
21.The number of master detail relationship that an object can have are
1
2**
25
300
22.The number of Lookup relationship that an object can have are
1
2
25 **
300
23.Which of these is true about the Lookup Relationship. Select one correct answer.
Parent is not a required field and may be omitted. **
Deleting an object deletes its children.
Roll-up summary field can be used to perform basic operations over all children of a parent record.
Security access of the child record is dependent upon the parent record.
24.Which of the following cannot be used to build a complete Custom Tab. Select one correct answer.
Display an external web page
Display data using a VisualForce page
Show data from a custom object using the native user interface
Display the approval process using an Apex page **
25.Which of the following is not supported by Enhanced Page Layout editor. Select the one correct answer.
Change the field name
Add blank spaces
Make a field required or read-only
Add a new section
Add a new custom field **
26.Which of the following is true about Roll-up summary fields? Select one correct answer.
Roll-up summary can only be set on the parent of a Master-Detail or Lookup relationship.
Roll-up summary can be used to compute SUM,MIN,MAX,AVG over a set of records
The results of the roll-up summary is displayed on the child in a master-detail relationship.
Roll-up summary fields are read only. **
27.Which of the following is true about Validation Rules? Select two correct answers.
A. Validation rules are executed when the user clicks on the Save button.
B. Validation rules are not applicable when the data is stored using the API.
C. If the error condition evaluates to true, then an error message is generated and the record is not saved.
D. Validation rules are applied only when a new record is created, and not when an existing record is edited.
Answers : A,C
28.Which of the following is not a valid return type of a custom formula. Select one correct answer
Date
Decimal
Text
Array **
29.Which of the following is not a part of a Force.com app. Select one correct answer.
Notes **
Tab
Links
Forms
30.An organization needs to create a public website that displays data from Salesforce.com organization without user registration. Select one correct answer.
Apex
Triggers
Salesforce Knowledgebase
Force.com sites **
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.
16. 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”.
17.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”.
18.In Universal Recruiter application a developer realizes that the Salary field of an employee is set up to an incorrect value. The developer needs to find out who has set this new value to Salary field. Which feature of the platform can be used to support this requirement. Select the one correct answer.
Debug Log
System Log
Setup Audit Trail
Field History Tracking **
19.Which of the following is correct about custom fields in Salesforce. Select one correct answer.
If a field is set as required it must be entered in the Salesforce generated pages, however it may not be specified when entering information via Force.com API
A required field is always present in an edit page **
B unique field is always present in an edit page
C unique field increases report and SOQL performance
20.Fields of the which of the following type is not allowed to be set as external ids. Select one correct answer.
Date **
Number
Text
21.The number of master detail relationship that an object can have are
1
2**
25
300
22.The number of Lookup relationship that an object can have are
1
2
25 **
300
23.Which of these is true about the Lookup Relationship. Select one correct answer.
Parent is not a required field and may be omitted. **
Deleting an object deletes its children.
Roll-up summary field can be used to perform basic operations over all children of a parent record.
Security access of the child record is dependent upon the parent record.
24.Which of the following cannot be used to build a complete Custom Tab. Select one correct answer.
Display an external web page
Display data using a VisualForce page
Show data from a custom object using the native user interface
Display the approval process using an Apex page **
25.Which of the following is not supported by Enhanced Page Layout editor. Select the one correct answer.
Change the field name
Add blank spaces
Make a field required or read-only
Add a new section
Add a new custom field **
26.Which of the following is true about Roll-up summary fields? Select one correct answer.
Roll-up summary can only be set on the parent of a Master-Detail or Lookup relationship.
Roll-up summary can be used to compute SUM,MIN,MAX,AVG over a set of records
The results of the roll-up summary is displayed on the child in a master-detail relationship.
Roll-up summary fields are read only. **
27.Which of the following is true about Validation Rules? Select two correct answers.
A. Validation rules are executed when the user clicks on the Save button.
B. Validation rules are not applicable when the data is stored using the API.
C. If the error condition evaluates to true, then an error message is generated and the record is not saved.
D. Validation rules are applied only when a new record is created, and not when an existing record is edited.
Answers : A,C
28.Which of the following is not a valid return type of a custom formula. Select one correct answer
Date
Decimal
Text
Array **
29.Which of the following is not a part of a Force.com app. Select one correct answer.
Notes **
Tab
Links
Forms
30.An organization needs to create a public website that displays data from Salesforce.com organization without user registration. Select one correct answer.
Apex
Triggers
Salesforce Knowledgebase
Force.com sites **
No comments:
Post a Comment