Salesforce dev-501 practice test

Apex and Visualforce Controllers

Last exam update: Nov 18 ,2025
Page 1 out of 13. Viewing questions 1-15 out of 186

Question 1

The email publisher lets support agents who use Case Feed compose and send email messages to
customers. You can customize this publisher to support email templates and attachments. This
component can only be used in organizations that have Case Feed and Email-to-Case enabled. Ext JS
versions less than 3 should not be included on pages that use this component.

  • A. apex:pageBlock
  • B. apex:define
  • C. apex:component
  • D. apex:emailPublisher
Mark Question:
Answer:

D

User Votes:
A
50%
B
50%
C
50%
D
50%
Discussions
vote your answer:
A
B
C
D
0 / 1000

Question 2

An area of a Visualforce page that demarcates which components should be processed by the
Force.com server when an AJAX request is generated. Only the components in the body of the
<apex:actionRegion> are processed by the server, thereby increasing the performance of the page.

  • A. apex:outputLabel
  • B. apex:actionRegion
  • C. apex:facet
  • D. apex:emailPublisher
Mark Question:
Answer:

B

User Votes:
A
50%
B
50%
C
50%
D
50%
Discussions
vote your answer:
A
B
C
D
0 / 1000

Question 3

A link that 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
<apex:commandLink> component must always be a child of an <apex:form> component.
To add request parameters to an <apex:commandLink>, use nested <apex:param> components.

  • A. apex:dataList
  • B. apex:enhancedList
  • C. apex:commandLink
  • D. apex:include
Mark Question:
Answer:

C

User Votes:
A
50%
B
50%
C
50%
D
50%
Discussions
vote your answer:
A
B
C
D
0 / 1000

Question 4

A timer that sends an AJAX update request to the server according to a time interval that you specify.
The update request can then result in a full or partial page update. You should avoid using this
component with enhanced lists.

  • A. apex:dataList
  • B. apex:actionPoller
  • C. apex:inlineEditSupport
  • D. apex:image
Mark Question:
Answer:

B

User Votes:
A
50%
B
50%
C
50%
D
50%
Discussions
vote your answer:
A
B
C
D
0 / 1000

Question 5

A single column in a table. An <apex:column> component must always be a child of an
<apex:dataTable> or <apex:pageBlockTable> component.
Note that if you specify an sObject field as the value attribute for an <apex:column>, the associated
label for that field is used as the column header by default. To override this behavior, use the
headerValue attribute on the column, or the column's header facet.

  • A. apex:inputField
  • B. apex:column
  • C. apex:inputText
  • D. apex:insert
Mark Question:
Answer:

B

User Votes:
A
50%
B
50%
C
50%
D
50%
Discussions
vote your answer:
A
B
C
D
0 / 1000

Question 6

An HTML input element of type hidden, that is, an input element that is invisible to the user. Use this
component to pass variables from page to page.

  • A. apex:inputHidden
  • B. apex:actionPoller
  • C. apex:pageBlockSectionItem
  • D. apex:enhancedList
Mark Question:
Answer:

A

User Votes:
A
50%
B
50%
C
50%
D
50%
Discussions
vote your answer:
A
B
C
D
0 / 1000

Question 7

This tag acts as a placeholder for your dynamic Apex components. It has one required parameter—
component Value—which accepts the name of an Apex method that returns a dynamic component.
The following Visualforce components do not have dynamic Apex representations:
<apex:actionRegion>
<apex:attribute>
<apex:component>
<apex:componentBody>
<apex:composition>
<apex:define>
<apex:dynamicComponent>
<apex:flash>
<apex:inputFile>
<apex:include>
<apex:insert>
<apex:pageMessage>
<apex:pageMessages>
<apex:variable>
<apex:vote>
Any non-<apex:> tag, like <chatter:>, <flow:>, <ideas:>, <knowledge:>, <messaging:>, or <site:>

  • A. apex:dynamicComponent
  • B. apex:dataList
  • C. apex:actionSupport
  • D. apex:insert
Mark Question:
Answer:

A

User Votes:
A
50%
B
50%
C
50%
D
50%
Discussions
vote your answer:
A
B
C
D
0 / 1000

Question 8

A data series to be rendered as connected points in a Visualforce chart. At a minimum you must
specify the fields in the data collection to use as X and Y values for each point, as well as the X and Y
axes to scale against.
Note: This component must be enclosed within an <apex:chart> component. You can have multiple
<apex:barSeries> and <apex:lineSeries> components in a single chart.

  • A. apex:pageblockSection
  • B. apex:inputHidden
  • C. apex:lineSeries
  • D. apex:inputSecret
Mark Question:
Answer:

C

User Votes:
A
50%
B
50%
C
50%
D
50%
Discussions
vote your answer:
A
B
C
D
0 / 1000

Question 9

A template component that declares a named area that must be defined by an <apex:define>
component in another Visualforce page. Use this component with the <apex:composition> and
<apex:define> components to share data between multiple pages.

  • A. apex:outputText
  • B. apex:barSeries
  • C. apex:insert
  • D. apex:inputFile
Mark Question:
Answer:

C

User Votes:
A
50%
B
50%
C
50%
D
50%
Discussions
vote your answer:
A
B
C
D
0 / 1000

Question 10

Defines tooltips which appear on mouseover of data series elements. This component offers more
configuration options than the default tooltips displayed by setting the tips attribute of a data series
component to true.
Note: This component must be enclosed by a data series component (<apex:barSeries>,
<apex:lineSeries>, or <apex:pieSeries>).

  • A. apex:actionSupport
  • B. apex:componentBody
  • C. apex:actionFunction
  • D. apex:chartTips
Mark Question:
Answer:

D

User Votes:
A
50%
B
50%
C
50%
D
50%
Discussions
vote your answer:
A
B
C
D
0 / 1000

Question 11

A message for a specific component, such as a warning or error. If an <apex:message> or
<apex:messages> component is not included in a page, most warning and error messages are only
shown in the debug log.

  • A. apex:message
  • B. apex:flash
  • C. apex:detail
  • D. apex:listViews
Mark Question:
Answer:

A

User Votes:
A
50%
B
50%
C
50%
D
50%
Discussions
vote your answer:
A
B
C
D
0 / 1000

Question 12

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. apex:messages
  • B. apex:actionFunction
  • C. apex:insert
  • D. apex:outputField
Mark Question:
Answer:

B

User Votes:
A
50%
B
50%
C
50%
D
50%
Discussions
vote your answer:
A
B
C
D
0 / 1000

Question 13

An HTML input element of type checkbox. Use this component to get user input for a controller
method that does not correspond to a field on a Salesforce object.

  • A. apex:dataList
  • B. apex:inputCheckbox
  • C. apex:actionPoller
  • D. apex:componentBody
Mark Question:
Answer:

B

User Votes:
A
50%
B
50%
C
50%
D
50%
Discussions
vote your answer:
A
B
C
D
0 / 1000

Question 14

The list view picklist for an object, including its associated list of records for the currently selected
view. In standard Salesforce applications this component is displayed on the main tab for a particular
object.
See also: <apex:enhancedList>.

  • A. apex:actionStatus
  • B. apex:listViews
  • C. apex:inputText
  • D. apex:pageBlockButtons
Mark Question:
Answer:

B

User Votes:
A
50%
B
50%
C
50%
D
50%
Discussions
vote your answer:
A
B
C
D
0 / 1000

Question 15

A read-only display of a label and value for a field on a Salesforce object. An <apex:outputField>
component respects the attributes of the associated field, including how it should be displayed to the
user. For example, if the specified <apex:outputField> component is a currency field, the appropriate
currency symbol is displayed. Likewise, if the <apex:outputField> component is a lookup field or URL,
the value of the field is displayed as a link.
Note that if custom help is defined for the field in Setup, the field must be a child of an
<apex:pageBlock> or <apex:pageBlockSectionItem>, and the Salesforce page header must be
displayed for the custom help to appear on your Visualforce page. To override the display of custom
help, use the <apex:outputField> in the body of an <apex:pageBlockSectionItem>.
The Rich Text Area data type can only be used with this component on pages running Salesforce.com
API versions greater than 18.0.

  • A. apex:actionRegion
  • B. apex:actionSupport
  • C. apex:outputField
  • D. apex:pageBlock
Mark Question:
Answer:

C

User Votes:
A
50%
B
50%
C
50%
D
50%
Discussions
vote your answer:
A
B
C
D
0 / 1000
To page 2