Home Uncategorized Salesforce Certification Sample Question and Answers Part 4

Salesforce Certification Sample Question and Answers Part 4

#16 Unit tests are class testing methods that verify whether a particular piece of code is working properly. Which of the following is not a feature of Unit tests?
a. Unit test methods take no arguments.
b. A Unit test commits data to the database.
c. Unit tests send no emails.
d. Unit test methods are always flagged with the testMethod keyword in the method definition.

Answer:
b. A Unit test commits data to the database.
http://wiki.developerforce.com/page/An_Introduction_to_Apex_Code_Test_Methods

Test methods take no arguments, commit no data to the database, and cannot send any emails.
Strive for 100% code coverage. Do not focus on the 75% requirement.
Instead, focus on writing test methods that execute all of the possible scenarios, both positive and negative.
Write portable test methods
Since the Apex code is developed in one organization and then deployed to another Production organization (or installed as an AppExchange package), it is critical that the test methods do not expect any Id or rely upon a specific data set. Otherwise the test methods will fail when deployed to a different organization.

#17 What is the description of the Lead object?
a. It defines a prospect or potential Opportunity.
b. It defines the rules that assign an owner to a Lead.
c. It defines the status of a Lead, such as Open, Qualifed, or Converted.
d. It associates a word or short phrase with a Lead.

Answer:

a. It defines a prospect or potential Opportunity.
http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_objects_lead.htm
Represents a prospect or potential Opportunity

#18 Which of the following functionalities is provided by the Apex Code?
a. It can change the standard functionality.
b. It can spawn threads.
c. It can render error messages.
d. It can create temporary files.

Answer:
c. It can render error messages.
http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_intro_apex_limitation.htm

What are the Limitations of Apex?
Apex radically changes the way that developers create on-demand business applications, but it is not currently meant to be a general purpose programming language. As of this release, Apex  cannot be used to:
Render elements in the user interface other than error messages
Change standard functionality—Apex can only prevent the functionality from happening, or add additional functionality
Create temporary files
Spawn threads

#19 Which of the following methods is not defined under ApexClass ?
a. deploy()
b. retrieve()
c. create()
d. describeMetadata()
Answer:

a. deploy()

OR
c. create()
http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_objects_apexclass.htm?SearchType=

http://www.salesforce.com/us/developer/docs/api_meta/Content/meta_classes.htm

#20 Which type of the CRM approach does Salesforce follow?
a. Operational CRM
b. Sales Force Automation(SFA) CRM
c. Analytical CRM
d. Sales Intelligence CRM
Answer:
b. Sales Force Automation(SFA) CRM

You may also like

Leave a Comment