Question 36
There are user complaints about slow render times of a custom data table within a Visualforce page that loads thousands of Account records at once.
What can a developer do to help alleviate such issues?
What can a developer do to help alleviate such issues?
Question 37
A developer is trying to access org data from within a test class. Which sObject type requires the test class to have the (seeAllData=true) annotation?
Question 38
A developer is writing unit tests for the following method:
public static Boolean isFreezing(String celsiusTemp){ if(String.isNotBlank (celsiusTemp) && celsiusTemp.isNumeric()){ return Decimal.valueof(celsiusTemp) <
0; } return null; }
Which assertion would be used in a negative test case?
public static Boolean isFreezing(String celsiusTemp){ if(String.isNotBlank (celsiusTemp) && celsiusTemp.isNumeric()){ return Decimal.valueof(celsiusTemp) <
0; } return null; }
Which assertion would be used in a negative test case?
Question 39
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?
{ 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?
Question 40
How can a developer efficiently incorporate multiple JavaScript libraries, such as JQuery and MomenUS, in a Lightning Component?
