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

October 21, 2021 No Comments READ MORE +

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...

October 21, 2021 No Comments READ MORE +

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...

October 21, 2021 No Comments READ MORE +

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

October 21, 2021 No Comments READ MORE +

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

October 21, 2021 No Comments READ MORE +

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...

October 21, 2021 No Comments READ MORE +

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...

October 21, 2021 No Comments READ MORE +

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 ....

October 21, 2021 No Comments READ MORE +

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...

October 20, 2021 No Comments READ MORE +

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...

October 20, 2021 No Comments READ MORE +