New Year Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: 70percent

Salesforce DEV-501 Certified Force.com Advanced Developer Exam Practice Test

Demo: 35 questions
Total 239 questions

Certified Force.com Advanced Developer Questions and Answers

Question 1

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:commandButton

B.

apex:flash

C.

apex:emailPublisher

D.

apex:actionRegion

Question 2

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.

Options:

A.

True

B.

False

Question 3

Defines a chart legend. This component offers additional configuration options beyond the defaults used by the legend attribute of the component.

Note: This component must be enclosed within an component.

Options:

A.

apex:dataTable

B.

apex:legend

C.

apex:pageBlockSectionItem

D.

apex:inputSecret

Question 4

What three classes along with the Messaging.InboundEmailHandler are used to handle inbound email messages in Salesforce? (No Answer)

Options:

A.

Apex code, Visualforce pages, and controllers

B.

Messaging.InboundEmail, Messaging.InboundEmailResult, Messaging.InboundEnvelope

C.

Messaging.InboundEmailHandler

D.

Make calls to methods using both valid and invalid inputs.

Question 5

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

Options:

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

Question 6

What are all the datatypes that Salesforce supports? (No Answer)

Options:

A.

Primitive, sObject, Collections, Null

B.

SOAP Web Service Callouts

C.

List of List Objects

D.

GET, POST, PUT, DELETE

Question 7

Which trigger context variable cannot be deleted?

Options:

A.

addError

B.

System

C.

@ReadOnly

D.

Trigger.new

Question 8

To leverage functionality of Standard Controllers, while simultaneously adding custom logic, you must write a custom class that extends the standard controller. You notify the Visualforce page of your customizations via the "extensions" attribute of the tag.

Options:

A.

True

B.

False

Question 9

Which statement is true about an Apex class?

  • A class cannot be disabled for profiles.
  • An inner class can be nested at multiple levels.
  • Static methods can only be declared in a top-level class definition.
  • The default access modifier for methods in a class is public.

Options:

A.

Salesforce-generated email address

B.

Manual sharing, apex sharing

C.

Static methods can only be declared in a top-level class definition.

D.

Make calls to methods using both valid and invalid inputs.

Question 10

Apex code can be initiated in what ways? (Select all that apply)

Options:

A.

Web service requests.

B.

Triggers on objects.

C.

More?? Is "Button Clicks" a valid choice?

Question 11

Which trigger context variable allows you to modify field values before they are written to the database in the before trigger? (No Answer)

Options:

A.

Trigger.new

B.

Trigger.old

C.

@ReadOnly

D.

TRUE

Question 12

What are the two types of logs? (No Answer)

Options:

A.

System, debug

B.

TRUE

C.

On-demand

D.

3 MB

Question 13

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.

Options:

A.

apex:include

B.

apex:iframe

C.

apex:chartLabel

D.

apex:attribute

Question 14

What is the maximum size of a SOAP request or response? (No Answer)

Options:

A.

3 MB

B.

Ids

C.

10

D.

Java

Question 15

How are programmatic cusomizations done in Salesforce?

Options:

A.

Apex, Visualforce, and APIs

B.

Apex classes

C.

Apex process classes

D.

Dates, Ids, Numbers

Question 16

Objects of this Apex class allow developers to create list controllers similar to, or as extensions of, the pre-built Visualforce list controllers provided by Salesforce.

Options:

A.

StandardSetController Class

B.

StandardController Class

C.

Controller Class

D.

VisualforceSetController Class

E.

VisualforceControllerClass

F.

None of the above

Question 17

Which statement is true regarding Force.com Sites? Choose 3 answers

Options:

A.

Sites can leverage declarative page layouts as web pages.

B.

Sites enables developers to build public, unauthenticated websites.

C.

Sites are built with Visualforce pages.

D.

Sites leverage data and content in a Salesforce org.

Question 18

An area of a page that includes content from a second template page. Template pages are Visualforce pages that include one or more components. The component names the associated template, and provides body for the template's components with matching components. Any content outside of an component is not rendered.

Options:

A.

apex:inputSecret

B.

apex:composition

C.

apex:pageblockSection

D.

apex:lineSeries

Question 19

What can cross-object formulas reference?

Options:

A.

Both parent and child object records

B.

Parent object records only

C.

Child object records only

D.

Other records of the same object

Question 20

Which portion of the Model-View-Controller paradigm is represented in Force.com as a standard or custom object?

Options:

A.

Model

B.

Controller

C.

View

Question 21

What language is Apex similar to? (No Answer)

Options:

A.

Catch

B.

1

C.

TRUE

D.

Java

Question 22

How can the default profile under which Webservices execute be changed? (No Answer)

Options:

A.

with sharing keyword

B.

Webservice

C.

SOQL statements

D.

constructor

Question 23

A Visualforce chart. Defines general characteristics of the chart, including size and data binding.

Options:

A.

apex:actionSupport

B.

apex:inlineEditSupport

C.

apex:chart

D.

apex:enhancedList

Question 24

Which type of for loops are defined with the following syntax?

FOR(initstmt; exit_condition; increment stmt){

codeblock

}

  • Traditional for loops
  • List iteration for loops
  • Set iteration for loops
  • SOQLforloops(No Answer)

Options:

A.

Static and final

B.

A governor limit

C.

Traditional for loops

D.

SOQL for loops

Question 25

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

Options:

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

Question 26

What are two key tools to debug code in Salesforce?

Options:

A.

Dates, Ids, Numbers

B.

Logs, anonymous blocks

C.

Debug logs, email logs

D.

List of List Objects

Question 27

Which keywords do developers use to handle exceptions in Apex?

Options:

A.

Through class itself

B.

Throw, try, catch, finally

C.

Static and final

D.

GET, POST, PUT, DELETE

Question 28

A data series to be rendered as bars 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 bar, as well as the X and Y axes to scale against.

Note: This component must be enclosed within an component. You can have multiple and components in a single chart.

Options:

A.

apex:barSeries

B.

apex:inputHidden

C.

apex:outputLink

D.

apex:outputField

Question 29

What are all the datatypes that Salesforce supports?

Options:

A.

How many loopback connections to Salesforce are allowed by callouts?

B.

What two ways can classes be created in salesforce?

C.

What are some RESTful service callout HTTP verbs?

Question 30

How are static methods and attributes access?

Options:

A.

Map, List, Set

B.

Class, trigger

C.

Apex classes

D.

Through class itself

Question 31

What annotation can be used with Web Services to allow unrestricted queries when no DML operations are necessary? (No Answer)

Options:

A.

@ReadOnly

B.

For loops

C.

RETURNING

D.

TRUE

Question 32

A section of data within an component, similar to a section in a standard Salesforce page layout definition.

An component consists of one or more columns, each of which spans two cells: one for a field's label, and one for its value. Each component found in the body of an is placed into the next cell in a row until the number of columns is reached. At that point, the next component wraps to the next row and is placed in the first cell.

To add a field from a Salesforce object to an , use an or component. Each of these components automatically displays with the field's associated label. To add fields for variables or methods that are not based on Salesforce object fields, or to customize the format of Salesforce object field labels, use an component. Each , , or component spans both cells of a single column.

Options:

A.

apex:outputLabel

B.

apex:actionPoller

C.

apex:pageblockSection

D.

apex:facet

Question 33

What trigger method is used to correlate IDI-to-sObject maps? (No Answer)

Options:

A.

Trigger.newMap, Trigger.oldMap

B.

Internal and external

C.

Trigger.new

D.

Queues, time triggers

Question 34

The markup defines the user interface components that should be included on the page, and the way they should appear.

Options:

A.

True

B.

False

Question 35

The __________ of a Visualforce page is composed of all the data that's necessary to maintain the state of the controller during server requests (like sending or receiving data).

Options:

A.

Page Memory

B.

State Settings

C.

Cookie Collection

D.

View State

E.

Page Header

F.

None of these

Demo: 35 questions
Total 239 questions