<< Prev Question Next Question >>

Question 39/45

Global with sharing class MyRemoter { public String accountName { get; set; } public static Account account { get; set; } public AccountRemoter(} {} @RemoteAction global static Account getAccount (String acccuntName) { account = [SELECT Id, Name, NumberOfEmployees FROM Account WHERE Name = :accountName]; return account; } } Consider the Apex class above that defines a RemoteAction used on a Visualforce search page. Which code snippet will assert that the remote action returned the correct Account?

LEAVE A REPLY

Your email address will not be published. Required fields are marked *

Question List (45q)
Question 1: A company has many different unit test methods that create A...
Question 2: Universal Containers wants to use an external Web Service pr...
1 commentQuestion 3: An Apex trigger creates an Order__c record every time an Opp...
Question 4: A Visualforce page loads slowly due to the large amount of d...
Question 5: Line 1 public class AttributeTypes Line 2 { Line 3 private f...
Question 6: Consider the controller code above that is called from a Lig...
1 commentQuestion 7: A company has a web page that needs to get Account record in...
Question 8: A company wants to incorporate a third-party web service to ...
Question 9: A developer wants to call an Apex Server-side Controller fro...
Question 10: What are two benefits of using External IDs? Choose 2 answer...
Question 11: A developer is inserting, updating, and deleting multiple li...
4 commentQuestion 12: Users report that a button on a custom Lightning Web Compone...
Question 13: A developer has a test class that creates test data before m...
3 commentQuestion 14: How should a developer verify that a specific Account record...
Question 15: What is the optimal technique a developer should use to prog...
2 commentQuestion 16: A developer needs to implement a system audit feature that a...
Question 17: Which interface needs to be implemented by a Lightning Compo...
2 commentQuestion 18: Which statement is considered a best practice for writing bu...
Question 19: A user receives the generic "An internal server error has oc...
Question 20: A company represents their customers as Accounts that have a...
2 commentQuestion 21: What is a benefit of JavaScript remoting over Visualforce Re...
2 commentQuestion 22: A developer wants to use an Aura Component with a Custom Act...
Question 23: Recently a Salesforce org's integration failed because it ex...
2 commentQuestion 24: An Apex class does not achieve expected code coverage. The t...
Question 25: How should a developer assert that a trigger with an asynchr...
Question 26: A developer needs to send Account records to an external sys...
1 commentQuestion 27: A company uses a custom-built enterprise resource planning (...
3 commentQuestion 28: Given a list of Opportunity records named opportunityList, w...
Question 29: A company processes Orders within their Salesforce instance....
Question 30: Universal Containers wants to use a Customer Community with ...
1 commentQuestion 31: A company notices that their unit tests in a test class with...
Question 32: A company has a Request__c object that has a lookup to the O...
Question 33: A developer gets an error saying 'Maximum Trigger Depth Exce...
1 commentQuestion 34: A developer is trying to decide between creating a Visualfor...
Question 35: Lightning Aura Component (Exhibit) Given the code above, whi...
Question 36: What can be done to improve the performance of the insert tr...
Question 37: An org has a requirement that an Account must always have on...
Question 38: A developer is developing a reuseable Aura Component that wi...
Question 39: Global with sharing class MyRemoter { public String accountN...
1 commentQuestion 40: Consider the above trigger intended to assign the Account to...
Question 41: For compliance purposes, a company is required to track long...
Question 42: A developer receives an error when trying to call a global s...
Question 43: Universal Containers wants to be able to bring up an Account...
Question 44: The use of the transient keyword In Visualforce Page Control...
Question 45: A developer wrote an Apex class to make several callouts to ...