Official Bank 0/186

Apex and Visualforce Controllers Exam (DEV-501) - Salesforce Exam Questions

Last updated on June 20, 2026

97% Exam Compliance
186 Total Questions
1
Question
An HTML input element of type text. Use this component to get user input for a controller method that does not correspond to a field on a Salesforce object. This component does not use Salesforce styling. Also, since it does not correspond to a field, or any other data on an object, custom code is required to use the value the user inputs.
Options
A apex:dynamicComponent
B apex:messages
C apex:inputField
D apex:inputText
Discussion (0 comments)

to join the discussion

Community Discussion

No discussions yet. Be the first to ask!

2
Question
Which of the following statements identifies the block of code that can handle a particular exception?

• catch

• finally

• try

• throw
Options
A Ids
B 3 MB
C catch
D FALSE
Discussion (0 comments)

to join the discussion

Community Discussion

No discussions yet. Be the first to ask!

3
Question
A button that is rendered as an HTML input element with the type attribute set to submit, reset, or image, depending on the tag's specified values. The button executes an action defined by a controller, and then either refreshes the current page, or navigates to a different page based on the PageReference variable that is returned by the action. An component must always be a child of an component.

See also:
Options
A apex:flash
B apex:commandButton
C apex:actionRegion
D apex:emailPublisher
Discussion (0 comments)

to join the discussion

Community Discussion

No discussions yet. Be the first to ask!

4
Question
A set of buttons that are styled like standard Salesforce buttons. This component must be a child component of an .
Note that it is not necessary for the buttons themselves to be direct children of the component—buttons that are located at any level within an component are styled appropriately.
Options
A apex:commandButton
B apex:includeScript
C apex:form
D apex:pageBlockButtons
Discussion (0 comments)

to join the discussion

Community Discussion

No discussions yet. Be the first to ask!

5
Question
What are the two types of logs? (No Answer)
Options
A TRUE
B System, debug
C 3 MB
D On-demand
Discussion (0 comments)

to join the discussion

Community Discussion

No discussions yet. Be the first to ask!

Finish Practice?

Are you sure you want to finish? This will end your practice session.