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

December 3, 2020 No Comments READ MORE +

The Visualforce page should include which <apex:page> attribute(s) to correctly implement controller functionality?

A Visualforce page is required for displaying and editing Case records that includes both standard and custom functionality defined in an Apex class called myControllerExtension. The Visualforce page should include which <apex:page> attribute(s) to correctly implement controller functionality?A . controller=“Case” and extensions=“myControllerExtension”B . extensions=“myControllerExtension”C . controller=“myControllerExtension”D . standardController=“Case” and extensions=“myControllerExtension”View...

December 3, 2020 No Comments READ MORE +

Which approach should a developer take to automatically add a “Maintenance Plan” to each Opportunity that includes an “Annual Subscription” when an opportunity is closed?

Which approach should a developer take to automatically add a “Maintenance Plan” to each Opportunity that includes an “Annual Subscription” when an opportunity is closed?A . Build a OpportunityLineItem trigger that adds a PriceBookEntry record.B . Build an OpportunityLineItem trigger to add an OpportunityLineItem record.C . Build an Opportunity trigger...

December 3, 2020 No Comments READ MORE +

How can a developer determine, from the DescribeSObjectResult, if the current user will be able to create records for an object in Apex?

How can a developer determine, from the DescribeSObjectResult, if the current user will be able to create records for an object in Apex?A . By using the isInsertable() method.B . By using the isCreatable() method.C . By using the hasAccess() method.D . By using the canCreate() method.View AnswerAnswer: B

December 3, 2020 No Comments READ MORE +

What should a developer do to meet this requirement?

When viewing a Quote, the sales representative wants to easily see how many discounted items are included in the Quote Line Items. What should a developer do to meet this requirement?A . Create a trigger on the Quote object that queries the Quantity field on discounted Quote Line Items.B ....

December 3, 2020 No Comments READ MORE +

Which two methods should the developer use to avoid this error?

A developer encounters APEX heap limit errors in a trigger. Which two methods should the developer use to avoid this error? (Choose two.)A . Use the transient keyword when declaring variables.B . Query and store fields from the related object in a collection when updating related objects.C . Remove or...

December 3, 2020 No Comments READ MORE +

Which set of roll-up types are available when creating a roll-up summary field?

Which set of roll-up types are available when creating a roll-up summary field?A . COUNT, SUM, MIN, MAXB . AVERAGE, SUM, MIN, MAXC . SUM, MIN, MAXD . AVRAGE, COUNT, SUM, MIN, MAXView AnswerAnswer: A

December 2, 2020 No Comments READ MORE +

Why would a developer consider using a custom controller over a controller extension?

Why would a developer consider using a custom controller over a controller extension?A . To increase the SOQL query governor limits.B . To implement all of the logic for a page and bypass default Salesforce functionalityC . To leverage built-in functionality of a standard controllerD . To enforce user sharing...

December 2, 2020 No Comments READ MORE +

Which three tools can deploy metadata to production? (Choose three.)

Which three tools can deploy metadata to production? (Choose three.)A . Change Set from Developer OrgB . Force.com IDEC . Data LoaderD . Change Set from SandboxE . Metadata APIView AnswerAnswer: A,D,E

December 2, 2020 No Comments READ MORE +

Which two options allow the developer to dynamically determine the ID of the required Record Type by its name?

A Platform Developer needs to write an Apex method that will only perform an action if a record is assigned to a specific Record Type. Which two options allow the developer to dynamically determine the ID of the required Record Type by its name? (Choose two.)A . Make an outbound...

December 2, 2020 No Comments READ MORE +