
Salesforce Apex and Visualforce Controllers - DEV-501 Exam Questions
QUESTION NO: 1
Which of the following statements identifies the block of code that can handle a particular exception?
-catch -finally -try -throw
Which of the following statements identifies the block of code that can handle a particular exception?
-catch -finally -try -throw
Correct Answer: A
QUESTION NO: 2
By using the ____________ keyword in a class definition, a developer can create a custom controller or controller extension that respects OWD, role hierarchy, and sharing rules.
By using the ____________ keyword in a class definition, a developer can create a custom controller or controller extension that respects OWD, role hierarchy, and sharing rules.
Correct Answer: A
QUESTION NO: 3
How are static methods and attributes access?
How are static methods and attributes access?
Correct Answer: C
QUESTION NO: 4
How do you call Web Services from external sources? (No Answer)
How do you call Web Services from external sources? (No Answer)
Correct Answer: C
QUESTION NO: 5
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.
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.
Correct Answer: A
QUESTION NO: 6
What is the maximum size of a SOAP request or response regulated by? (No Answer)
What is the maximum size of a SOAP request or response regulated by? (No Answer)
Correct Answer: A
QUESTION NO: 7
By referring to a page in this way, the platform recognizes that this controller or controller extension is dependent on the existence of the specified page and will prevent the page from being deleted while the controller or extension exists.
By referring to a page in this way, the platform recognizes that this controller or controller extension is dependent on the existence of the specified page and will prevent the page from being deleted while the controller or extension exists.
Correct Answer: B
QUESTION NO: 8
Defines a chart legend. This component offers additional configuration options beyond the defaults used by the legend attribute of the <apex:chart> component.
Note: This component must be enclosed within an <apex:chart> component.
Defines a chart legend. This component offers additional configuration options beyond the defaults used by the legend attribute of the <apex:chart> component.
Note: This component must be enclosed within an <apex:chart> component.
Correct Answer: A
QUESTION NO: 9
A component that provides support for invoking controller action methods directly from JavaScript code using an AJAX request. An <apex:actionFunction> component must be a child of an <apex:form> component.
A component that provides support for invoking controller action methods directly from JavaScript code using an AJAX request. An <apex:actionFunction> component must be a child of an <apex:form> component.
Correct Answer: A
QUESTION NO: 10
What are the types of exception classes developers can choose between in Apex? (No Answer)
What are the types of exception classes developers can choose between in Apex? (No Answer)
Correct Answer: A
QUESTION NO: 11
What keyword is used to create custom Web Services from an apex method?
What keyword is used to create custom Web Services from an apex method?
Correct Answer: C




