






























Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!































Choose the correct definition for A: Standard Salesforce formatting, throws a specific message on a page B: Standard Salesforce formatting, shows all errors that occur on page. Can add more messages through the "ApexPages.addMessage" function C: A single message, without formatting, that can be associated with a specific component on the page D: No formatting; displays all errors on a page - correct answer ✅A: Standard Salesforce formatting, throws a specific message on a page
A: Standard Salesforce formatting, throws a specific message on a page B: Standard Salesforce formatting, shows all errors that occur on page. Can add more messages through the "ApexPages.addMessage" function C: A single message, without formatting, that can be associated with a specific component on the page
D: No formatting; displays all errors on a page - correct answer ✅B: Standard Salesforce formatting, shows all errors that occur on page. Can add more messages through the "ApexPages.addMessage" function Choose the correct definition for A: Standard Salesforce formatting, throws a specific message on a page B: Standard Salesforce formatting, shows all errors that occur on page. Can add more messages through the "ApexPages.addMessage" function C: A single message, without formatting, that can be associated with a specific component on the page D: No formatting; displays all errors on a page - correct answer ✅C: A single message, without formatting, that can be associated with a specific component on the page Choose the correct definition for A: Standard Salesforce formatting, throws a specific message on a page B: Standard Salesforce formatting, shows all errors that occur on page. Can add more messages through the "ApexPages.addMessage" function
Choose the correct definition for A: Allows for controller methods to be called directly from Javascript. Must be encapsulated in tags. Unlike actionSupport, these functions can be called directly from Javascript code B: Sends an AJAX request according to the time interval you specify. If this ever gets re-rendered, it resets C: Adds AJAX support to another component (e.g. onClick, onMouseUp, onFocus, etc.) D: Can be associated with an AJAX request (actionFunction/actionSupport/actionPoller) and shows content conditionally depending on the status of the request (in progress/complete). Use the "id" field to specify name; use "status" field on related components to connect them E: Signifies which components should be processed by the server when an AJAX request is generated - correct answer ✅B: Sends an AJAX request according to the time interval you specify. If this ever gets re-rendered, it resets Choose the correct definition for
A: Allows for controller methods to be called directly from Javascript. Must be encapsulated in tags. Unlike actionSupport, these functions can be called directly from Javascript code B: Sends an AJAX request according to the time interval you specify. If this ever gets re-rendered, it resets C: Adds AJAX support to another component (e.g. onClick, onMouseUp, onFocus, etc.) D: Can be associated with an AJAX request (actionFunction/actionSupport/actionPoller) and shows content conditionally depending on the status of the request (in progress/complete). Use the "id" field to specify name; use "status" field on related components to connect them E: Signifies which components should be processed by the server when an AJAX request is generated - correct answer ✅C: Adds AJAX support to another component (e.g. onClick, onMouseUp, onFocus, etc.) Choose the correct definition for A: Allows for controller methods to be called directly from Javascript. Must be encapsulated in tags. Unlike actionSupport, these functions can be called directly from Javascript code B: Sends an AJAX request according to the time interval you specify. If this ever gets re-rendered, it resets
D: Can be associated with an AJAX request (actionFunction/actionSupport/actionPoller) and shows content conditionally depending on the status of the request (in progress/complete). Use the "id" field to specify name; use "status" field on related components to connect them E: Signifies which components should be processed by the server when an AJAX request is generated - correct answer ✅E: Signifies which components should be processed by the server when an AJAX request is generated What is tag used for? - correct answer ✅Predefined areas of content that certain components have (i.e. For dataTables, the header and footer are examples of facets) BONUS: This allows for more easily formatted content What is tag used for? - correct answer ✅Used in templating BONUS: Define a VF page for template, add to define sections (in order), and on a new page, declare and use to add in content to the template's sections what is used for? - correct answer ✅General purpose tag; use to get input on a controller field that does not correspond to a field on an SObject
BONUS: All similar tags except inputField function identically What is the correct order of execution for Visualforce Page "get" requests (initial page visit) A: 1) Evaluate constructors on controller and extensions
C: If PageReference points to the same controller and subset of extensions, postback request, otherwise get request - correct answer ✅A: Get request If the "PageReference.setRedirect" Apex function is set to False, what type of request is made? A: Get request B: Postback request C: If PageReference points to the same controller and subset of extensions, postback request, otherwise get request - correct answer ✅C: If PageReference points to the same controller and subset of extensions, postback request, otherwise get request When should you use the "transient" property on variables? A: Variables that you want transmitted as part of the view state. Static variables also don't get transmitted B: Variables that you don't want transmitted as part of the view state. Static variables also don't get transmitted C: Static variables that you want transmitted as part of the view state to save space
D: Custom Controller - correct answer ✅B: Standard List/Set Controller BONUS: Use "recordSetVar" attribute to define variable name for the list/set By using the "{!next}" and "!{previous}" functions, and a list holding component (e.g. dataList), you can paginate through records Which type of controller is best suited when you want to add custom functionality to a standard controller page, or when you want reusable functionality throughout pages? A: Standard Controller B: Standard List/Set Controller C: Controller Extensions D: Custom Controller - correct answer ✅C: Controller Extensions BONUS: Constructor takes in either a ApexPages.StandardController or "CustomControllerName" parameter
What would you include to render the page as a pdf? - correct answer ✅Add the renderAs="pdf" attribute to the main page component Within the System.Limit class, what would you call to get the number of calls made in your transaction? A: get[typeOfLimit] --> (Ex. getDMLStatements()) B: getLimit[typeOfLimit] --> (Ex. getLimitDMLStatements()) - correct answer ✅A: get[typeOfLimit] --> (Ex. getDMLStatements()) Within the System.Limit class, what would you call to get the total limit you can call in a single transaction? A: get[typeOfLimit] --> (Ex. getDMLStatements()) B: getLimit[typeOfLimit] --> (Ex. getLimitDMLStatements()) - correct answer ✅B: getLimit[typeOfLimit] --> (Ex. getLimitDMLStatements()) What is the transaction limit for SOQL queries? A: 20 (synchronous), 200 (async) B: 150 (synchronous), 20 (async)
E: There is no limit - correct answer ✅B: 50,000, "Scope" parameter in "executeBatch" can be set up to 2,000 records What is the transaction limit for the number of SOSL queries? A: 20 B: 2, C: 100 (synchronous), 200 (async) D: 200 (synchronous), 100 (async) E: There is no limit - correct answer ✅A: 20 What is the transaction limit for the number of records for SOSL?
C: 100 (synchronous), 200 (async) D: 200 (synchronous), 100 (async) E: There is no limit - correct answer ✅B: 2, What is the transaction limit for the number of DML statements allowed? A: 20 B: 2, C: 100 (synchronous), 200 (async) D: 200 (synchronous), 100 (async) E: 150 - correct answer ✅E: 150
E: There is no limit - correct answer ✅C: 50 What is the transaction limit on the number of "sendEmail" method calls? A: 20 B: 10 C: 50 D: 100 E: There is no limit - correct answer ✅B: 10 BONUS: The reserveEmailCapacity methods let you declare how many emails you want to send prior to actually sending, allowing you to handle limit errors prematurely What is the transaction limit on the max Salesforce CPU time? A: 100 seconds