Q41 Universal containers has a custom object "service" which has a lookup relationship to Account. Universal containers wants to enhance Salesforce1 with an action that allows account managers to enter a new service to an Account while looking at the account?
A. Enter an object specific action to Service and put it in the Account Layout
B. Enter an object specific action to Service and put it in the Service Layout
C. Enter an object specific action to Account and put it in the Account Layout
D. Enter an object specific action to Account and put it in the Service Layout
Ans C. Enter an object specific action to Account and put it in the Account Layout
Q42 Universal Containers has built a recruiting application with two custom objects, Job Applications and Reviews that have a master-detail relationship. Users should NOT be allowed to delete review records after job application records have been approved.
How would a developer meet this requirement?
A. Change the interviewer's profile to Read-only for the review object
B. Use workflow to change the page layout to Read-only
C. Remove the Delete button from the job application page layout
D. Use a validation rule in conjunction with a roll-up summary field
ANs D. Use a validation rule in conjunction with a roll-up summary field
Q43 Universal Container want to store an area code and wants to be able to search for it in applications (apex). Which are possible fields to store the data? Choose 2
A. Email
B. Multi Picklist
C. Text
D. Number
E. Phone
Ans C. Text
D. Number
Q44 What can a lightning component contain in its resource bundle? Choose two answers.
A. Custom Client-side rendering behavior.
B. Properties files with global settings.
C. CSS styles scoped to the component.
D. Build scripts for minification.
Ans A. Custom Client-side rendering behavior.
C. CSS styles scoped to the component.
Q45 Describe the ramifications of field updates and potential for recursion for the following scenario: If a field update for Rule1 triggers Rule2, and a field update for Rule2 triggers Rule1.
A. The updates create a loop and the org limits for workflow time triggers per hour will likely be violated.
B. When the second trigger is saved a Imminent Loop Error message will be displayed and the workflow rule update will not save.
C. The updates create a loop and the org will be blocked until the admin resolves the issue.
D. Loop is allowed to run 25 times within one hour. If it does not end on its own the process will be stopped by R&D.
Ans A. The updates create a loop and the org limits for workflow time triggers per hour will likely be violated.
Q46 How would a developer change the field type of a custom field on account object from a string to an integer?
A. Make the change in the declarative UI, then update the field type to an integer field in-the apex code.
B. Remove all references in the code, make the change in the declarative UI, and restore the references with the new type.
C. Make the change in the developer console, and then the change will automatically be reflected in the apex.
D. Make the change in the declarative UI, and then the change will automatically be reflected in the apex code.
Ans B. Remove all references in the code, make the change in the declarative UI, and restore the references with the new type.
Q47 Which developer tool can be used to create a data model? (Choose 2)
A. Force.com IDE
B. Schema Builder
C. Application Data Model Wizard
D. Force.com Data Loader
Ans A. Force.com IDE
B. Schema Builder
Q48 What is the name of the standard relationship from Account down to Contact?
A. Accounts
B. Contacts
C. Account
D. Contact
Ans B. Contacts
Q49 Which API cannot be used to create the data model?
A. Force.com Single Sign-on API
B. Force.com Metadata API
C. AJAX Tookit for Force.com
D. Force.com API
Ans B. Force.com Metadata API
Q50 What is a junction object?
A. A custom object with two master-detail relationships.
B. A custom object with one lookup relationship and one master-detail relationship.
C. A custom object with two lookup relationships.
D. A custom object with any number of lookup and master-detail relationships.
Ans A. A custom object with two master-detail relationships.
Q51 Which statement about declarations is correct?
A. A developer can extend a class that is declared with Virtual keyword
B. A developer can use define constant with final keyword.
C. A developer can't use class or method using final keyword
Ans B. A developer can use define constant with final keyword.
Q52 Which permission is required to install and uninstall packages from Salesforce AppExchange?
A. Manage Package Licenses
B. Upload AppExchange Packages
C. Download AppExchange Packages
D. Create AppExchange Packages
Ans C. Download AppExchange Packages
Q53 In order to create an App Launcher component in lightning what must an admin do?
A. Navigate to Setup-Customize-User Interface to enable the component for the Lightning App Builder.
B. Contact Salesforce to have the component activated for the Lightning App Builder.
C. Purchase a license for the Lightning App Builder.
D. Join the pilot Lightning App Builder team
Ans B. Contact Salesforce to have the component activated for the Lightning App Builder.
Q54 A developer created trigger with following code ,
list<Account> lstAccounts = new list<Account>();
for(order__c objorder:trigger.new){
account a = [select id from Account where id=:objorder.Account__c];
lstAccounts .add(a);
}
update lstAccounts;
How many order will be load when developer attempts to load 150 records?
A. 0
B. 1
C. 100
D. 150
Ans A. 0
Q55 Which social networks are available in the Lightning Experience and Salesforce1?
A. Klout
B. Facebook
C. LinkedIn
D. Twitter
Ans D. Twitter
Q56 When a user creates a record by using an object-specific create action, what feed item for that record appears? (choose three)
A. In the Chatter feed of the user who created the record
B. In the feed for the record on which the new record was created
C. In the user profile feed for all users who can view the record
D. As the first entry in the feed for the new record
E. In the Chatter feed of the first user who follows the record on which the record was created
Ans A. In the Chatter feed of the user who created the record
B. In the feed for the record on which the new record was created
D. As the first entry in the feed for the new record
Q57 You can create global actions to let users create which of the following records? (choose three)
A. Question
B. Chatter Posts
C. Event (without invitees)
D. Opportunity
E. Users
Ans A. Question
C. Event (without invitees)
D. Opportunity
Q58 A salesperson at AW Computing only see's the Social Contact's link for Twitter and not Facebook on his records. Why would this be happening?
A. Facebook is no longer supported by Social Contacts
B. The administrator hasn't enabled Social Contacts for Facebook
C. The salesperson's login with Facebook has expired
D. None of his Facebook contacts have confirmed the nature of their relationship
ANs B. The administrator hasn't enabled Social Contacts for Facebook
Q59 A developer has completed work in the sandbox and is ready to send it to a related org, what deployment tool should be used?
A. Change Sets
B. Force.com IDE
C. Unmanaged Packages
D. Force.com Migration Tool
Ans A. Change Sets
Q60 When running an Apex test, which type of Apex syntax in tested code is counted in the code coverage calculation?
A. A blank line.
B. A System.debug() statement.
C. A variable assignment.
D. A comment.
Ans C. A variable assignment.
Q61 What is a capability of the Developer Console?
A. Execute Anonymous Apex code, Run REST API, create/Edit code.
B. Execute Anonymous Apex code, Create/Edit code, view Debug Logs.
C. Execute Anonymous Apex code, Create/Edit code, Deploy code changes.
D. Execute Anonymous Apex code, Run REST API, deploy code changes.
Ans B. Execute Anonymous Apex code, Create/Edit code, view Debug Logs.
Q62 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.
Ans D. To create an additional set of governor limits during the execution of a single test class.
Q63 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.
Ans B. the Opportunity StandardController for pre -built functionality.
Q64 A developer uses a before insert trigger on the 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 Data Loader to insert 10,000 Lead records. The developer has the following code block:
Line-01: for (Lead l : Trigger.new){
Line-02: if (l.PostalCode != null) {
Line-03: List<Territory__c> terrList = [SELECT Id FROM Territory__c WHERE PostalCode__c = :l.PostalCode];
Line-04: if(terrList.size() > 0)
Line-05: l.Territory__c = terrList[0].Id;
Line-06: }
Line-07: }
Which line of code is causing the code block to fail?
A. Line-03: A SOQL query is located inside of the for loop code.
B. Line-01: Trigger:new is not valid in a before insert Trigger.
C. Line-02: A NullPointer exception is thrown if PostalCode is null.
D. Line-05: The Lead in a before insert trigger cannot be updated.
ANs A. Line-03: A SOQL query is located inside of the for loop code.
Q65 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.
Ans A. Create a process with Process Builder.
Q66 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.
Ans A. Create activities at multiple intervals.
B. Send an outbound message without Apex code.
Q67 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.
Ans 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.
Q68 Which component is available to deploy using Metadata API?Choose 2 answers
A. Case Layout
B. Account Layout
C. Case Feed Layout
D. ConsoleLayout
Ans A. Case Layout
B. Account Layout
Q69 In the code below, what type does Boolean inherit from?
Boolean b= true;
A. Enum
B. Object
C. String
D. Class
Ans B. Object
Q70 What is the preferred way to reference web content such as images, style sheets, 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.
Ans D. By uploading the content as a Static Resource.
Q71 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
Ans B. Lookup
Q72 A developer creates a Workflow Rule declaratively that updates a field on an object. An Apex update trigger exists for that object. What happens when a user updates a record?
A. No changes are made to the data.
B. Both the Apex Trigger and Workflow Rule are fired only once.
C. The Workflow Rule is fired more than once.
D. The Apex Trigger is fired more than once.
Ans D. The Apex Trigger is fired more than once.
Q73 What is true for a partial sandbox that is not true for a full sandbox? Choose 2 answers:
A. More frequent refreshes.
B. Only Includes necessary metadata.
C. Use of change sets.
D. Limited to 5 GB of data.
Ans A. More frequent refreshes.
D. Limited to 5 GB of data.
Q74 In which order does SalesForce execute events upon saving a record?
A. Before Triggers; Validation Rules; After Triggers; Assignment Rules; Workflow Rules; Commit
B. Validation Rules; Before Triggers; After Triggers; Workflow Rules; Assignment Rules; Commit
C. Before Triggers; Validation Rules; ilter Triggers; Workflow Rules; Assignment Rules; Commit
D. Validation Rules; Before Triggers; After Triggers; Assignment Rules; Workflow Rules; Commit
Ans A. Before Triggers; Validation Rules; After Triggers; Assignment Rules; Workflow Rules; Commit
Q75 public class customController {
public string cString { get; set;}
public string getStringMethod1(){
return cString;
}
public string getStringMethod2(){
if(cString == null)
cString = 'Method2';
return cString;
}
}
<apex:page controller="customController">
{!cString}, {!StringMethod1}, {!StringMethod2}, {!cString}
</apex:page>
What does the user see when accessing the custom page?
A. getMyString,
B. , , Method2,
C.Method2, getMyString
D. getMyString„ Method2, getMyString
Ans B. , , Method2,
Q76 What is a valid Apex statement?
A. Map conMap = (SELECT Name FROM Contact);
B. Account[] acctList = new List<Account>{new Account()}
C. Integer w, x, y = 123, z = 'abc',
D private static constant Double rate = 775;
Ans D.private static constant Double rate = 775;
Q77 String nextPage = controller.save().getUrl(); A developer has a single custom controller class that works with a Visualforce Wizard to support creating and editing multiple sObjects. The wizard accepts data from user inputs across multiple Visualforce pages and from a parameter on the initial URL
Which statement is unnecessary inside the unit test for the custom controller?
A. public ExtendedController (ApexPages.StandardController cntrl) { }
B. ApexPages.currentPage().getParameters().put('input', 'TestValue')
C. Test.setCurrentPage(pageRef),
D. String nextPage = controller.save().getUrl();
Ans B. Account[] acctList = new List<Account>{new Account()}
Q78 A developer wants to display all of the available record types for a Case object. The developer also wants to display the picklist values for the Case.Status field. The Case object and the Case Status field are on a custom visualforce page.
Which action can the developer perform to get the record types and picklist values in the controller? Choose 2 answers
A. Use Schema.PIcklistEntry returned by Case Status getDescribe().getPicklistValues().
B. Use Schema.RecordTypeinfo returned by Case.SObjectType getDescribe().getRecordTypelnfos()
C. Use SOQL to query Case records in the org to get all the RecordType values available for Case.
D. Use SOQL to query Case records in the org to get all value for the Status picklist field.
Ans A. Use Schema.PIcklistEntry returned by Case Status getDescribe().getPicklistValues().
B. Use Schema.RecordTypeinfo returned by Case.SObjectType.getDescribe().getRecordTypelnfos()
Ref:
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_class_Schema_RecordTypeInfo.htm#apex_class_Schema_RecordTypeInfo
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_class_Schema_PicklistEntry.htm%23apex_class_Schema_PicklistEntry
Q79 An sObject named Application_c has a lookup relationship to another sObject named Position_c. Both Application _c and Position_c have a picklist field named Status_c.
When the Status_c field on Position_c is updated, the Status_c field on Application_c needs to be populated automatically with the same value, and execute a workflow rule on Application_c.
How can a developer accomplish this?
A. By changing Application_c.Status_c into a roll -up summary field.
B. By changing Application_c.Status_c into a formula field.
C. By using an Apex trigger with a DML operation.
D. By configuring a cross-object field update with a workflow.
Ans B. By changing Application_c.Status_c into a formula field.
Q80 A developer wrote a workflow email alert on case creation so that an email is sent to the case owner manager when a case is
created?
When will the email be sent?
A. Before Trigger execution
B. After Committing to database.
C. Before Committing to database
D. After Trigger execution.
Ans B. After Committing to database.
No comments:
Post a Comment