1. Why would a developer use Test. startTest( ) and Test.stopTest()
A. To avoid Apex code coverage requirements for the code between these lines
B. To start and stop anonymous block execution when executing anonymous Apex code
C. To indicate test code so that it does not Impact Apex line count governor limits.
D. To create an additional set of governor limits during the execution of a single test class.
Answer: D
2. What must the Controller for a Visualforce page utilize to override the Standard Opportunity view button?
A. The StandardSetController to support related lists for pagination.
B. the Opportunity StandardController for pre built functionality.
C. A callback constructor to reference the StandardController.
D.A constructor that intrializes a private Opportunity variable.
Answer: B
3. A developer uses a before insert trigger on Lead object to fetch the Territory _C object, where the Territory_c.PostalCode_c matches the Lead.Postalcode .The code fails when the developer uses the Apex Loader to insert 10000 Lead records. The developer has the following code block:
A for(Lead 1 : Trigger.new)
B if (1.Posta1Code null) {
C List<Territory c> terrList =[SELECT Id FROM Territory c WHERE PostalCode c = : 1. PostalCode] ;
D if(terrList.size() > 0) {
E 1.Territory c terrList[0].Id; } }
Which line of code is causing the code block to fail?
Answer: C
4. What would a developer do to update a picklist field on related Opportunity records when a modification to the associated Account record is detected?
A. Create a process with Process Builder.
B. Create a workflow rule with a field update.
C. Create a Lightning Component.
D. Create a Visualforce page.
Answer: A
5. Which requirement needs to be implemented by using standard workflow instead of Process Builder?Choose 2 answers
A. Create activities at multiple intervals.
B. Send an outbound message without Apex code.
C. Copy an account address to its contacts.
D. Submit a contract for approval
Answer: A and B
6. An org has different Apex Classes that provide Account related functionality.After a new validation rule is added to the object, many of the test methods fail.What can be done to resolve the failures and reduce the number of code changes needed for future validation rules?Choose 2 answers
A. Create a method that creates valid Account records, and call this method from within test methods.
B. Create a method that loads valid Account records from a Static Resource, and call this method within test methods
C. Create a method that performs a callout for a valid Account record, and call this method from within test methods.
D Create a method that queries for valid Account records, and call this method from within test methods
Answer: A and B
7. Which component is available to deploy using Metadata API?Choose 2 answers
A. Case Layout
B. Account Layout
C. Case Feed Layout
D. ConsoleLayout
Answer: A and B
8.In the code below,what type does boolean inherit from?Boolean b= true;
A. Enum B. Object C. String D. Class
Answer: B
9. What is the preferred way to reference web content such as images, stylesheets, JavaScript, and other libraries that is used in Visualforce pages?
A. By accessing the content from Chatter Files.
B. By uploading the content in the Documents tab.
C. By accessing the content from a third party CON.
D. By uploading the content as a Static Resource
Answer: D
10. A company has a custom object named Warehouse. Each Warehouse record has a distinct record owner, and is related to a parent Account in Salesforce.Which kind of relationship would a developer use to relate the Account to the Warehouse?
A. One to Many
B. Lookup
C. Master Detail
D. Parent –Child
Answer: B
A. To avoid Apex code coverage requirements for the code between these lines
B. To start and stop anonymous block execution when executing anonymous Apex code
C. To indicate test code so that it does not Impact Apex line count governor limits.
D. To create an additional set of governor limits during the execution of a single test class.
Answer: D
2. What must the Controller for a Visualforce page utilize to override the Standard Opportunity view button?
A. The StandardSetController to support related lists for pagination.
B. the Opportunity StandardController for pre built functionality.
C. A callback constructor to reference the StandardController.
D.A constructor that intrializes a private Opportunity variable.
Answer: B
3. A developer uses a before insert trigger on Lead object to fetch the Territory _C object, where the Territory_c.PostalCode_c matches the Lead.Postalcode .The code fails when the developer uses the Apex Loader to insert 10000 Lead records. The developer has the following code block:
A for(Lead 1 : Trigger.new)
B if (1.Posta1Code null) {
C List<Territory c> terrList =[SELECT Id FROM Territory c WHERE PostalCode c = : 1. PostalCode] ;
D if(terrList.size() > 0) {
E 1.Territory c terrList[0].Id; } }
Which line of code is causing the code block to fail?
Answer: C
4. What would a developer do to update a picklist field on related Opportunity records when a modification to the associated Account record is detected?
A. Create a process with Process Builder.
B. Create a workflow rule with a field update.
C. Create a Lightning Component.
D. Create a Visualforce page.
Answer: A
5. Which requirement needs to be implemented by using standard workflow instead of Process Builder?Choose 2 answers
A. Create activities at multiple intervals.
B. Send an outbound message without Apex code.
C. Copy an account address to its contacts.
D. Submit a contract for approval
Answer: A and B
6. An org has different Apex Classes that provide Account related functionality.After a new validation rule is added to the object, many of the test methods fail.What can be done to resolve the failures and reduce the number of code changes needed for future validation rules?Choose 2 answers
A. Create a method that creates valid Account records, and call this method from within test methods.
B. Create a method that loads valid Account records from a Static Resource, and call this method within test methods
C. Create a method that performs a callout for a valid Account record, and call this method from within test methods.
D Create a method that queries for valid Account records, and call this method from within test methods
Answer: A and B
7. Which component is available to deploy using Metadata API?Choose 2 answers
A. Case Layout
B. Account Layout
C. Case Feed Layout
D. ConsoleLayout
Answer: A and B
8.In the code below,what type does boolean inherit from?Boolean b= true;
A. Enum B. Object C. String D. Class
Answer: B
9. What is the preferred way to reference web content such as images, stylesheets, JavaScript, and other libraries that is used in Visualforce pages?
A. By accessing the content from Chatter Files.
B. By uploading the content in the Documents tab.
C. By accessing the content from a third party CON.
D. By uploading the content as a Static Resource
Answer: D
10. A company has a custom object named Warehouse. Each Warehouse record has a distinct record owner, and is related to a parent Account in Salesforce.Which kind of relationship would a developer use to relate the Account to the Warehouse?
A. One to Many
B. Lookup
C. Master Detail
D. Parent –Child
Answer: B
Comments
Post a Comment