What are three valid Apex loop structures for iterating through items in the collection?
Given: Map<ID, Account> accountMap = new Map>ID, Account> ([SELECT Id, Name FROM Account]); What are three valid Apex loop structures for iterating through items in the collection? (Choose three.)A . for (ID accountID : accountMap.keySet()) {…}B . for (Account accountRecord : accountMap.values()) {…}C . for (Integer i=0; I < accountMap.size();...
Which approach should a developer use to add pagination to a Visualforce page?
Which approach should a developer use to add pagination to a Visualforce page?A . A StandardControllerB . The Action attribute for a pageC . The extensions attribute for a pageD . A StandardSetControllerView AnswerAnswer: D
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...
Which tool allows a developer to send requests to the Salesforce REST APIs and view the responses?
Which tool allows a developer to send requests to the Salesforce REST APIs and view the responses?A . REST resource path URLB . Workbench REST ExplorerC . Developer Console REST tabD . Force.com IDE REST Explorer tabView AnswerAnswer: B
Which two Apex data types can be used to reference a Salesforce record ID dynamically? (Choose two.)
Which two Apex data types can be used to reference a Salesforce record ID dynamically? (Choose two.)A . ENUMB . sObjectC . External IDD . StringView AnswerAnswer: A,D
Which feature can the developer use?
A developer needs to know if all tests currently pass in a Salesforce environment. Which feature can the developer use? (Choose 2)A . ANT Migration ToolB . Workbench Metadata RetrievalC . Salesforce UI Apex Test ExecutionD . Developer ConsoleView AnswerAnswer: C, D
What should the developer do to determine which object type (Account, Lead, or Contact, for example) to cast each sObject?
A method is passed a list of generic sObjects as a parameter. What should the developer do to determine which object type (Account, Lead, or Contact, for example) to cast each sObject?A . Use the first three characters of the sObject ID to determine the sObject type.B . Use the...
What is an important consideration when developing in a multi-tenant environment?
What is an important consideration when developing in a multi-tenant environment?A . Governor limits prevent tenants from impacting performance in multiple orgs on the same instance.B . Unique domain names take the place of namespaces for code developed for multiple orgs on multiple instances.C . Polyglot persistence provides support for...
What is a capability of the Developer Console?
What is a capability of the Developer Console?A . Execute Anonymous Apex code, Create/Edit code, view Debug Logs.B . Execute Anonymous Apex code, Run REST API, create/Edit code.C . Execute Anonymous Apex code, Create/Edit code, Deploy code changes.D . Execute Anonymous Apex code, Run REST API, deploy code changes.View AnswerAnswer:...
How many accounts are in the org after this code is run?
A developer in a Salesforce org with 100 Accounts executes the following code using the Developer console: Account myAccount = new Account (Name = 'MyAccount'); Insert myAccount; For (Integer x = 0; x < 150; x++) {Account newAccount = new Account (Name='MyAccount' + x); try {Insert newAccount;} catch (Exception ex)...