Pass4itsure > Salesforce > Salesforce others > DEV-501 > DEV-501 Online Practice Questions and Answers

DEV-501 Online Practice Questions and Answers

Questions 4

If a change is made to an approval process, how can a developer determine the user that made the change? Choose 2 answers

A. By examining the setup audit trail

B. By checking the field history on the associated record

C. By looking at "Modified By" on the approval definition

D. By examining the Debug Log

Buy Now
Questions 5

What must a developer consider when inserting records using an API-based tool? Choose 2 answers

A. Required fields on page layouts are enforced.

B. Universally required field settings are respected.

C. Apex triggers are ignored.

D. Invalidation rules are respected.

Buy Now
Questions 6

Which form of dml operation allows execution to occur with subsequent records even if an error occurs with a single record? (No Answer)

A. Database class method

B. Public class MyNewClass

C. Standalone, database class methods

D. Apex classes

Buy Now
Questions 7

Which of the following statements are used to repeatedly execute a block of code until the exit condition is met?

do-while loops

if statements

for loops

if--Lhen

statements

A.

For loops

B.

FALSE

C.

Exceptions

D.

SOQL for loops

Buy Now
Questions 8

What is the list of steps to match regular expressions using the Pattern and Matcher classes?

A. A template from which objects are created

B. 1.Instantiate a pattern object from the expression you wish to match.

2.

Instantiate a matcher object from the pattern that contains the string you want to check.

3.

Use the matcher object to detect if the matcher matches the pattern.

C. HTTPRequest, HTTPResponse, HTTP

D. Primitive, sObject, Collections, Null

Buy Now
Questions 9

Although Trigger.new is a collection of records, when used as a bind variable in a SOQL query, Apex automatically....

A. Passes the collection to the query, as long as the calling class implements the Trigger.QueryBind class.

B. Transforms the list of records into a list of corresponding Ids.

C. Truncates the collection so that only the Id and Name fields.

D. Throws a DMLException with the ILLEGAL_QUERY status.

E. Transforms the SOQL to an in-place SOSL query and returns the FIND results.

F. None of these

Buy Now
Questions 10

A/an _____________ is a class written in Apex that adds to or overrides behavior in a standard or custom controller.

A. Custom component

B. Controller extension

C. Apex extension

D. Extended Controller

E. Component extension

F. None of these

Buy Now
Questions 11

A template component that provides content for an component defined in a Visualforce

template page.

See also: ,

A. apex:facet

B. apex:includeScript

C. apex:axis

D. apex:define

Buy Now
Questions 12

A placeholder for content that is rendered in a specific part of the parent component, such as the header or

footer of an .

An component 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 the

appearence of the parent component.

See for an example of facets.

Note: Although you can't represent an directly in Apex, you can specify it on a dynamic

component that has the facet. For example:

A. apex:logCallPublisher

B. apex:dataList

C. apex:inputField

D. apex:facet

Buy Now
Questions 13

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

Buy Now
Exam Code: DEV-501
Exam Name: Apex and Visualforce Controllers
Last Update: Apr 24, 2024
Questions: 239
10%OFF Coupon Code: SAVE10

PDF (Q&A)

$45.99

VCE

$49.99

PDF + VCE

$59.99