Salesforce DEV501 Exam
Apex & Visualforce Controllers (Page 4 )

Updated On: 1-Feb-2026

To leverage functionality of Standard Controllers, while simultaneously adding custom logic, you must write a custom class that extends the standard controller. You notify the Visualforce page of your customizations via the "extensions" attribute of the <apex:page> tag.

  1. True
  2. False

Answer(s): B



For example, if you use the standard Accounts controller, clicking a Save button in a Visualforce page results in the same behavior as clicking Save on a standard Account edit page. The same behavior holds true for Custom objects.

  1. True
  2. False

Answer(s): A



__________ enables you to create Visualforce pages that can display or act on a set of records.

  1. A Standard Controller
  2. A Standard List Controller
  3. An Apex Recordset
  4. A Custom List Doctype
  5. An Apex class
  6. None of the above

Answer(s): A



A developer can use optional catch statements for any exception type in a try-catch block. However, the general exception type, 'Exception', must only be used by the last catch() block.
EXAMPLE:
try{
// Some risky code.
}
catch(SomeExceptionType e){
// Handle one exception type.
}
catch(SomeOtherExceptionType e){
// Handle another exception type.
}
catch(Exception e){
// This must be the last catch block.
}
~|~
(Select all that apply)

  1. Make calls to methods using both valid and invalid inputs.
  2. In the case of conditional logic (including ternary operators), execute each branch of code logic.
  3. Only test code using the System Administrator profile.
  4. Focus solely on test coverage percentage score.
  5. Complete successfully without throwing any exceptions, unless those errors are expected and
    caught in a try...catch block.
  6. None of these

Answer(s): A,B,E



A ____________ is a class written in Apex that implements all of a page's logic, without leveraging a standard controller.

  1. Controller Extension
  2. Validation Extension
  3. Visualforce Component
  4. Visualforce Plugin
  5. Custom Controller
  6. None of the above

Answer(s): E



Viewing page 4 of 49
Viewing questions 16 - 20 out of 239 questions



Post your Comments and Discuss Salesforce DEV501 exam prep with other Community members:

Join the DEV501 Discussion