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: A,D
How should a developer prevent a recursive trigger?
How should a developer prevent a recursive trigger?A . Use a “one trigger per object” pattern.B . Use a static Boolean variable.C . Use a trigger handler.D . Use a private Boolean variable.View AnswerAnswer: D
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
When is an Apex Trigger required instead of a Process Builder Process?
When is an Apex Trigger required instead of a Process Builder Process?A . When a record needs to be createdB . When multiple records related to the triggering record need to be updatedC . When a post to Chatter needs to be createdD . When an action needs to be...
Which two ways should a developer create this functionality?
A developer is asked to create a PDF quote document formatted using the company’s branding guidelines, and automatically save it to the Opportunity record. Which two ways should a developer create this functionality? (Choose two.)A . Install an application from the AppExchange to generate documents.B . Create a Visualforce page...
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: A,D
What is the requirement for a class to be used as a custom Visualforce controller?
What is the requirement for a class to be used as a custom Visualforce controller?A . Any top-level Apex class that has a constructor that returns a PageReferenceB . Any top-level Apex class that extends a PageReferenceC . Any top-level Apex class that has a default, no-argument constructorD . Any...
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?...
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
What is the end result?
Using the Schema Builder, a developer tries to change the API name of a field that is referenced in an Apex test class. What is the end result?A . The API name is not changed and there are no other impacts.B . The API name of the field and the...