Which approach should be used to provide test data for a test class?
Which approach should be used to provide test data for a test class?A . Query for existing records in the database.B . Execute anonymous code blocks that create data.C . Use a test data factory class to create test data.D . Access data in @TestVisible class variables.View AnswerAnswer: C
Which code block returns the ListView of an Account object using the following debug statement? system.debug(controller.getListViewOptions() );
Which code block returns the ListView of an Account object using the following debug statement? system.debug(controller.getListViewOptions() );A . ApexPages.StandardSetController controller = new ApexPages.StandardSetController( Database.getQueryLocator( 'SELECT Id FROM Account LIMIT 1'));B . ApexPages.StandardController controller = new ApexPages.StandardController( [SELECT Id FROM Account LIMIT 1]);C . ApexPages.StandardController controller = new ApexPages.StandardController( Database.getQueryLocator( 'SELECT...
Which action will allow the developer to relate records in the data model without knowing the Salesforce ID?
A developer needs to join data received from an integration with an external system with parent records in Salesforce. The data set does not contain the Salesforce IDs of the parent records, but it does have a foreign key attribute that can be used to identify the parent. Which action...
Which resource can be included in a Lightning Component bundle? Choose 2 answers
Which resource can be included in a Lightning Component bundle? Choose 2 answersA . Apex classB . Adobe FlashC . JavaScriptD . DocumentationView AnswerAnswer: C, D
Which user can edit a record after it has been locked for approval? (Choose 2)
Which user can edit a record after it has been locked for approval? (Choose 2)A . Any user with a higher role in the hierarchyB . A user who is assigned as the current approverC . Any user who approved the record previouslyD . An administratorView AnswerAnswer: B, D
How should the developer design the Apex classes?
A developer created a Lightning component to display a short text summary for an object and wants to use it with multiple Apex classes. How should the developer design the Apex classes?A . Have each class define method getObject() that returns the sObject that is controlled by the Apex class.B...
How can this be accomplished?
A developer needs to provide a Visualforce page that lets users enter Product-specific details during a Sales cycle. How can this be accomplished? (Choose 2)A . Download a Managed Package from the AppExhange that provides a custom Visualforce page to modify.B . Copy the standard page and then make a...
What is the value of x after the code segment executes?
What is the value of x after the code segment executes? String x = 'A’; Integer i = 10; if ( i < 15 ) {i = 15;x = 'B';} else if ( i < 20 ) {x = 'C';} else {x = 'D'; }A . DB . AC ....
Which action can a developer take to enforce this requirement?
A reviewer is required to enter a reason in the comments field only when a candidate is recommended to be hired. Which action can a developer take to enforce this requirement?A . Create a required Visualforce component.B . Create a formula field.C . Create a required comments field.D . Create...
How should the Developer overcome this problem?
While writing a test class that covers an Opportunity LineItem trigger, a Developer is unable to create a standard PriceBook since one already exists in the org. How should the Developer overcome this problem?A . Use Test.getStandardPricebookId() to get the standard PriceBook IC . Use @IsTest(SeeAllData=true) and delete the existing...