DON'T WANT TO MISS A THING?

Certification Exam Passing Tips

Latest exam news and discount info

Curated and up-to-date by our experts

Yes, send me the newsletter

Salesforce DEV-501 Exam Sample Questions | SPOTO

SPOTO's latest exam dumps on the homepage, with a 100% pass rate! SPOTO delivers authentic Cisco CCNA, CCNP study materials, CCIE Lab solutions, PMP, CISA, CISM, AWS, and Palo Alto exam dumps. Our comprehensive study materials are meticulously aligned with the latest exam objectives. With a proven track record, we have enabled thousands of candidates worldwide to pass their IT certifications on their first attempt. Over the past 20+ years, SPOTO has successfully placed numerous IT professionals in Fortune 500 companies.
Take other online exams

Question #1
A Flash movie, rendered with the HTML object and embed tags.
A. apex:actionStatus
B. apex:flash
C. apex:inputField
D. apex:pageBlockSectionItem
View answer
Correct Answer: B
Question #2
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 thecomponent--buttons that are located at any level within an component are styled appropriately.
A. apex:includeScript
B. apex:commandButton
C. apex:pageBlockButtons
D. apex:form
View answer
Correct Answer: C
Question #3
What is the maximum size of a SOAP request or response regulated by? (No Answer)
A. RETURNING
B. a governor limit
C. @ReadOnly
D. Trigger
View answer
Correct Answer: B
Question #4
This component provides inline editing support toand various container components.In order to support inline editing, this component must also be within antag. thecomponent can only be a descendant of the following tags:See also: the inlineEdit attribute of
A. apex:inlineEditSupport
B. apex:chartLabel
C. apex:page
D. apex:outputPanel
View answer
Correct Answer: A
Question #5
What trigger method is used to help prevent completion of a DML event?
A. addError
B. Ids
C. No
D. TRUE
View answer
Correct Answer: A
Question #6
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 ancomponent. You can have multipleandcomponents in a single chart.
A. apex:pageblockSection
B. apex:inputHidden
C. apex:lineSeries
D. apex:inputSecret
View answer
Correct Answer: C
Question #7
What components must be deployed manually to the production environment?
A. Queues, time triggers
B. Multi-tenant
C. Constructor
D. Dates, Ids, Numbers
View answer
Correct Answer: A
Question #8
If you use a standard controller on a page and the user doesn't have access to the object, the page will...
A. Throw an ACCESS_VIOLATION exception
B. Write an ACCESS_VIOLATION message to the debug log
C. Display an insufficient privileges error message
D. Redirect the user to their home page
E. Ask the user if they would like to upgrade permissions in order to view the object
F. None of the above
View answer
Correct Answer: C
Question #9
The markup defines the user interface components that should be included on the page, and the way they should appear.
A. True
B. False
View answer
Correct Answer: A
Question #10
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
View answer
Correct Answer: A
Question #11
A placeholder for content that is rendered in a specific part of the parent component, such as the header or footer of an. Ancomponent can only exist in the body of a parent component if the parent supports facets.The name of the facet component must match one of the pre-defined facet names on the parent component. This name determines where the content of the facet component is rendered. Consequently,The order in which a facet component is defined within the body of a parent component does not affect theap
A. apex:logCallPublisher
B. apex:dataList
C. apex:inputField
D. apex:facet
View answer
Correct Answer: D
Question #12
Defines an axis for a chart. Use this to set the units, scale, labeling, and other visual options for the axis. You can define up to four axes for a single chart, one for each edge. Note: This component must be enclosed within ancomponent. This component is only applicable to bar and line charts.
A. apex:emailPublisher
B. apex:messages
C. apex:image
D. apex:axis
View answer
Correct Answer: D
Question #13
If the error message contains HTML markup, the escaped markup displays as text and isn't rendered in the user interface. (Select all that apply)
A. Strongly Typed
B. Object Oriented
C. Uses Java-like syntax
D. Acts like database stored procedures
View answer
Correct Answer: ABCD
Question #14
A component that displays the status of an AJAX update request. An AJAX request can either be in progress or complete.
A. apex:actionPoller
B. apex:dynamicComponent
C. apex:inputCheckbox
D. apex:actionStatus
View answer
Correct Answer: D
Question #15
A single Visualforce page. All pages must be wrapped inside a single page component tag.
A. apex:insert
B. apex:page
C. apex:axis
D. apex:outputLabel
View answer
Correct Answer: B
Question #16
A definition of an attribute on a custom component. The attribute tag can only be a child of a component tag. Note that you cannot define attributes with names like id or rendered. These attributes are automatically created for all custom component definitions.
A. apex:attribute
B. apex:insert
C. apex:message
D. apex:include
View answer
Correct Answer: A
Question #17
Displays text on a Visualforce page. You can customize the appearance ofusing CSS styles, in which case the generated text is wrapped in an HTMLtag. You can also escape therendered text if it contains sensitive HTML and XML characters. This component does take localization into account. Use with nested param tags to format the text values, where {n} corresponds to the n-th nested param tag.The value attribute supports the same syntax as the MessageFormat class in Java. See theMessageFormat class JavaDocs fo
A. apex:message
B. apex:actionSupport
C. apex:column
D. apex:outputText
View answer
Correct Answer: D
Question #18
Good Apex tests should....
A. Exercise bulk trigger functionality--use at least 20 records in your tests
B. Only test code using the Standard User profile
C. Access live organization data to validate SOQL queries and DML operations
D. Use the isTest annotation
E. Use the runAs method to test your application in different user contexts
F. None of these
View answer
Correct Answer: ADE
Question #19
A link to a URL. This component is rendered in HTML as an anchor tag with an href attribute. Like its HTML equivalent, the body of anis the text or image that displays as the link. To add query string parameters to a link, use nestedcomponents.
A. apex:inputField
B. apex:outputLink
C. apex:lineSeries
D. apex:emailPublisher
View answer
Correct Answer: B
Question #20
Which environments can developers write code? (Select all that apply.) Developer edition production org Enterprise edition production org Enterprise edition sandbox org Professional edition sandbox org A. Salesforce-generated email address B. Apex code, Visualforce pages, and controllers C. Developer edition production org, Enterprise edition sandbox org D. Encapsulation principles
Which environments can developers write code? (Select all that apply. Developer edition production org Enterprise edition production org Enterprise edition sandbox org Professional edition sandbox org A
View answer
Correct Answer: C
Question #21
In what code is the webservice keyword not allowed to be used?
A. Class, trigger
B. Implicit invocation
C. Code contained in a trigger
D. Queues, time triggers
View answer
Correct Answer: C
Question #22
Apex code can be initiated in what ways? (Select all that apply)
A. Web service requests
B. Triggers on objects
C. More?? Is "Button Clicks" a valid choice?
View answer
Correct Answer: ABC
Question #23
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 component must always be a child of an component. To add request parameters to an , use nested components.
A. apex:dataList
B. apex:enhancedList
C. apex:commandLink
D. apex:include
View answer
Correct Answer: C
Question #24
A component that creates an inline frame within a Visualforce page. A frame allows you to keep some information visible while other information is scrolled or replaced.
A. apex:attribute
B. apex:chartLabel
C. apex:iframe
D. apex:include
View answer
Correct Answer: C
Question #25
__________ enables you to create Visualforce pages that can display or act on a set of records.
A. A Standard Controller
B. A Standard List Controller
C. An Apex Recordset
D. A Custom List Doctype
E. An Apex class
F. None of the above
View answer
Correct Answer: A
Question #26
This integration resource provides generic access to any organization, and exposes standard objects and fields through the SOAP interface.
A. System WSDL
B. Partner WSDL
C. Custom WSDL
D. Enterprise WSDL
E. Portal WSDL
F. None of the above
View answer
Correct Answer: B
Question #27
One of the best ways to build Visualforce pages and code is by enabling ___________.
A. Visualforce development mode
B. Apex development mode
C. Force
D. Show viewstate
E. Visualforce system mode
F. None of these
View answer
Correct Answer: A
Question #28
What is the this keyword used to represent?
A. Salesforce ui, force
B. Methods and attributes of the current instance of a class
C. A template from which objects are created
D. HTTPRequest, HTTPResponse, HTTP
View answer
Correct Answer: B
Question #29
This tag allows a custom component author to define a location where a user can insert content into the custom component. This is especially useful for generating custom iteration components. This component is valid only within antag, and only a single definition per custom component is allowed.
A. apex:facet
B. apex:chart
C. apex:include
D. apex:componentBody
View answer
Correct Answer: D
Question #30
A single piece of data in anthat takes up one column in one row. Ancomponent can include up to two child components. If no content is specified, the column is rendered as an empty space. If one child component is specified, the content spans both cells of the column. If two child components are specified, the content of the first is rendered in the left, "label" cell of the column, while the content of the second is rendered in the right, "data" cell of the column. Note that if you include anor ancomponent
A. apex:flash
B. apex:pageBlockSectionItem
C. apex:outputField
D. apex:componentBody
View answer
Correct Answer: B

View The Updated Salesforce Exam Questions

SPOTO Provides 100% Real Salesforce Exam Questions for You to Pass Your Salesforce Exam!

View Answers after Submission

Please submit your email and WhatsApp to get the answers of questions.

Note: Please make sure your email ID and Whatsapp are valid so that you can get the correct exam results.

Email:
Whatsapp/phone number: