Boolean odk;
Boolean odk; Integer x; if(abok=false;integer=x;){ X=1; }elseif(abok=true;integer=x;){ X=2; }elseif(abok!=null;integer=x;){ X=3; )elseif{ X=4;}A . X=4B . X=8C . X=9D . X=10View AnswerAnswer: A
Which two types of process automation can be used to calculate the shipping cost for an Order when the Order is placed and apply a percentage of the shipping cost of some of the related Order Products? Choose 2 answers
Which two types of process automation can be used to calculate the shipping cost for an Order when the Order is placed and apply a percentage of the shipping cost of some of the related Order Products? Choose 2 answersA . Workflow RuleB . Approval ProcessC . Process BuilderD ....
How should the developer prevent a cross site scripting vulnerability?
A developer has a Apex controller for a Visualforce page that takes an ID as a URL parameter. How should the developer prevent a cross site scripting vulnerability?A . ApexPages.currentPage() .getParameters() .get('url_param')B . ApexPages.currentPage() .getParameters() .get('url_param') .escapeHtml4()C . String.ValueOf(ApexPages.currentPage() .getParameters() .get('url_param'))D . String.escapeSingleQuotes(ApexPages.currentPage() .getParameters(). get('url_param'))View AnswerAnswer: B
What will be the output in the debug log in the event of a QueryExeption during a call to the @query method in the following Example?
What will be the output in the debug log in the event of a QueryExeption during a call to the @query method in the following Example? A . Querying Accounts. Query Exception.B . Querying Accounts. Custom Exception.C . Querying Accounts. Query Exception. DoneD . Querying Accounts. Custom Exception Done.View AnswerAnswer:...
Based on the object’s relationships, what is the most efficient statement to retrieve the list of contacts?
The Job_Application__c custom object has a field that is a Master-Detail relationship to the Contact object, where the Contact object is the Master. As part of a feature implementation, a developer needs to retrieve a list containing all Contact records where the related Account Industry is ‘Technology’ while also retrieving...
Which method allows access to the price book?
A developer wants to get access to the standard price book in the org while writing a test class that covers an OpportunityLineItem trigger. Which method allows access to the price book?A . Use Test.loadData ( )and a static resource to load a standard price bookB . Use @TestVisible to...
What two things should the developer consider while testing the trigger code?
The Account object in an organization has a master detail relationship to a child object called Branch. The following automations exist: • Rollup summary fields • Custom validation rules • Duplicate rules A developer created a trigger on the Account object. What two things should the developer consider while testing...
In which two ways can the developer declare the variables to ensure their value can only be assigned one time?
A developer is implementing an Apex class for a financial system. Within the class, the variables ‘creditAmount’ and ‘debtAmount’ should not be able to change once a value is assigned. In which two ways can the developer declare the variables to ensure their value can only be assigned one time?...
What should a developer do to check the code coverage of a class after running all tests?
What should a developer do to check the code coverage of a class after running all tests?A . View the Code Coverage column in the list view on the Apex Classes page.B . View the Class Test Percentage tab on the Apex Class fist view m Salesforce Setup.C . View...
What is the maximum number of SOQL queries used by the following code?
What is the maximum number of SOQL queries used by the following code? List<Account> aList = [SELECT Id FROM Account LIMIT 5]; for (Account a : aList){ List<Contact> cList = [SELECT Id FROM Contact WHERE AccountId = :a.Id); }A . 5B . 6C . 1D . 2View AnswerAnswer: B