Which two strategies should a developer use to accomplish this?

Universal Containers wants Opportunities to be locked from editing when reaching the Closed/Won stage. Which two strategies should a developer use to accomplish this? (Choose two.)A . Use a Visual Workflow.B . Use a validation rule.C . Use the Process Automation Settings.D . Use a Trigger.View AnswerAnswer: BD

September 30, 2020 No Comments READ MORE +

What should the developer consider when working with triggers?

A newly hired developer discovers that there are multiple triggers on the case object. What should the developer consider when working with triggers?A . Developers must dictate the order of trigger execution.B . Trigger execution order is based on creation date and time.C . Unit tests must specify the trigger...

September 30, 2020 No Comments READ MORE +

Which SOQL query successfully returns the Accounts grouped by name?

Which SOQL query successfully returns the Accounts grouped by name?A . SELECT Type, Max(CreatedDate) FROM Account GROUP BY NameB . SELECT Name, Max(CreatedDate) FROM Account GROUP BY NameC . SELECT Id, Type, Max(CreatedDate) FROM Account GROUP BY NameD . SELECT Type, Name, Max(CreatedDate) FROM Account GROUP BY Name LIMIT 5View...

September 30, 2020 No Comments READ MORE +

What are three characteristics of static methods? (Choose three.)

What are three characteristics of static methods? (Choose three.)A . Initialized only when a class is loadedB . A static variable outside of the scope of an Apex transactionC . Allowed only in outer classesD . Allowed only in inner classesE . Excluded from the view state for a Visualforce...

September 30, 2020 No Comments READ MORE +

What is the result of the debug statement?

A developer writes the following code: What is the result of the debug statement?A . 1, 100B . 1, 150C . 2, 150D . 2, 200View AnswerAnswer: C

September 29, 2020 No Comments READ MORE +

Which three attributes need to be defined with values in the <apex:page> tag to accomplish this?

A platform developer at Universal Containers needs to create a custom button for the Account object that, when clicked, will perform a series of calculations and redirect the user to a custom Visualforce page. Which three attributes need to be defined with values in the <apex:page> tag to accomplish this?...

September 29, 2020 No Comments READ MORE +

How should a developer avoid hitting the governor limits in test methods?

How should a developer avoid hitting the governor limits in test methods?A . Use @TestVisibleon methods that create records.B . Use Test.loadData()to load data from a static resource.C . Use @IsTest (SeeAllData=true)to use existing data.D . Use Test.startTest()to reset governor limits.View AnswerAnswer: D

September 29, 2020 No Comments READ MORE +

What are two valid options for iterating through each Account in the collection List<Account> named AccountList? (Choose two.)

What are two valid options for iterating through each Account in the collection List<Account> named AccountList? (Choose two.)A . for (Account theAccount : AccountList) {…}B . for(AccountList) {…}C . for (List L : AccountList) {…}D . for (Integer i=0; i < AccountList.Size(); i++) {…}View AnswerAnswer: AD

September 29, 2020 No Comments READ MORE +

Which three options can be accomplished with formula fields? (Choose three.)

Which three options can be accomplished with formula fields? (Choose three.)A . Generate a link using the HYPERLINK function to a specific record.B . Display the previous value for a field using the PRIORVALUE function.C . Determine if a datetime field value has passed using the NOW function.D . Return...

September 29, 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...

September 29, 2020 No Comments READ MORE +