Salesforce DEV-501 Certified Advanced Developer PracticeTest Set 3

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.


Options are :

  • apex:actionPoller
  • apex:pageBlockSectionItem
  • apex:enhancedList
  • apex:inputHidden (Correct)

Answer : apex:inputHidden

In the Universal Containers recruiting app, there is a master-detail relationship between the
Job Application and Review objects. Job Application is the master object.
If a Job Application record is deleted, what will happen to any associated Review records?


Options are :

  • The Review record is also deleted (Correct)
  • No change to the Review record
  • An error message is displayed
  • The owner of the Review record changes

Answer : The Review record is also deleted

What two methods of customization are available to create applications in salesforce?


Options are :

  • Database class method
  • A governor limit
  • Declarative, programmatic (Correct)
  • Dates, Ids, Numbers

Answer : Declarative, programmatic

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


Options are :

  • False
  • True (Correct)

Answer : True

What is the maximum size of a SOAP request or response regulated by? (


Options are :

  • RETURNING
  • a governor limit (Correct)
  • @ReadOnly
  • Trigger.old

Answer : a governor limit

What is a Junction object?


Options are :

  • A custom object with a master-detail relationship
  • A custom object with two master-detail relationships (Correct)
  • A standard object with two master-detail relationships
  • A standard object with a master-detail relationship

Answer : A custom object with two master-detail relationships

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.


Options are :

  • apex:dataList
  • apex:actionPoller (Correct)
  • apex:inlineEditSupport

Answer : apex:actionPoller

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

  • apex:inputField
  • apex:dynamicComponent
  • apex:messages
  • apex:inputText (Correct)

Answer : apex:inputText

Like other Apex classes, custom controllers execute entirely in ____________, in which the
object and field-level permissions of the current user are ignored.


Options are :

  • . OWD Mode
  • System Mode (Correct)
  • With-Sharing Mode
  • User Mode

Answer : System Mode

This integration resource is specific to an individual organization, and exposes all of the
standard objects, custom objects, and any custom fields through the SOAP interface.


Options are :

  • Partner WSDL
  • Enterprise WSDL (Correct)
  • Custom WSDL
  • System WSDL

Answer : Enterprise WSDL

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
? ifLhen statements


Options are :

  • For loops (Correct)
  • SOQL for loops
  • Exceptions
  • FALSE

Answer : For loops

Universal Containers tracks Positions as a custom object in a recruiting application. All
positions with a priority of critical should NOT be open for more than two weeks. If a
position remains open for more than 14 days, the priority should be re-examined.
How would a developer automate this process?


Options are :

  • Create a time-dependent workflow action that updates the position status to Closed 14 days after record creation
  • Create a validation rule that compares today's date and the record's creation date to determine if the difference is greater than 14 days
  • Recreate a time-dependent workflow action that sends an email to the recruiter if the position is still open 14 days after record creation (Correct)
  • Create a workflow action to clone the position, assigned to the owner of the position record, that is due 14 days after record creation

Answer : Recreate a time-dependent workflow action that sends an email to the recruiter if the position is still open 14 days after record creation

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


Options are :

  • apex:outputText
  • apex:insert (Correct)
  • apex:inputFile
  • apex:barSeries

Answer : apex:insert

Why might a reporting snapshot fail during a scheduled run? 


Options are :

  • The target object contains an Apex trigger (Correct)
  • The target object is a custom object.
  • The source report was not created by an Administrator.

Answer : The target object contains an Apex trigger

How are programmatic cusomizations done in Salesforce?


Options are :

  • Apex process classes
  • Apex classes
  • Dates, Ids, Numbers
  • Apex, Visualforce, and APIs (Correct)

Answer : Apex, Visualforce, and APIs

In a recruiting application, a Position custom object is related to a Salary custom object.
Sensitive information, such as current salary, is stored on the Salary object. All users
should be able to at least view position information. However, only select individuals should
be able to read salary records.
How should a developer accomplish this?


Options are :

  • Create a master-detail relationship between Position and Salary; set organization-wide defaults to Private for Position and Salary
  • Create a lookup relationship between Position and Salary; set organization-wide defaults to Private for Position and Salary
  • Create a lookup relationship between Position and Salary; set organization-wide defaults to Public Read-Only for Position and Private for Salary (Correct)
  • Create a master-detail relationship between Position and Salary; set organization-wide defaults to Public Read only for Position and Private for Salary

Answer : Create a lookup relationship between Position and Salary; set organization-wide defaults to Public Read-Only for Position and Private for Salary

A section of data within an <apex:pageBlock> component, similar to a section in a standard
Salesforce page layout definition.
An <apex:pageBlockSection> 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 <apex:pageBlockSection> 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 <apex:pageBlockSection>, use an
<apex:inputField> or <apex:outputField> 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 <apex:pageBlockSectionItem> component. Each
<apex:inputField>, <apex:outputField>, or <apex:pageBlockSectionItem> component
spans both cells of a single column.


Options are :

  • apex:actionPoller
  • apex:pageblockSection (Correct)
  • apex:outputLabel
  • apex:facet

Answer : apex:pageblockSection

Developers can use Visualforce pages to:


Options are :

  • None of these
  • all the done
  • Override standard buttons (Correct)

Answer : Override standard buttons

What are the types of exception classes developers can choose between in Apex


Options are :

  • static and final
  • System-defined, user-defined (Correct)
  • Webservice
  • Schema Explorer

Answer : System-defined, user-defined

A Flash movie, rendered with the HTML object and embed tags.


Options are :

  • apex:pageBlockSectionItem
  • apex:flash (Correct)
  • apex:actionStatus
  • apex:inputField

Answer : apex:flash

Universal Containers requires that all job applications have a unique code that is auto-
populated when records are created. The code must be different from the record ID.
What would a developer use to accomplish this declaratively?


Options are :

  • Custom lookup relationship field
  • Custom auto number field (Correct)
  • Custom master-detail field
  • Custom read-only number field

Answer : Custom auto number field

A business requirement can be met by using either a formula field or an Apex trigger. Why
would a developer use a formula field Instead of an Apex trigger?


Options are :

  • Formula fields can be created and deployed using only a browser. (Correct)
  • Formula fields allow greater control and flexibility than Apex triggers
  • none
  • Formula fields can aggregate data from child records.

Answer : Formula fields can be created and deployed using only a browser.

Identify the differences between Apex and the other programming languages. (Select all
that apply.)
? Apex runs in a multitenant environment.
? Apex performs uncontrolled program invocations.
? Apex is case-insensitive.
? Apex can be processed on any platform. 


Options are :

  • Apex runs in a multitenant environment. (Correct)
  • Encapsulation principles
  • A template from which objects are created
  • Salesforce ui, force.com ide, runTests web service

Answer : Apex runs in a multitenant environment.

__________ enables you to create Visualforce pages that can display or act on a set of
records.


Options are :

  • A Custom List Doctype
  • A Standard Controller (Correct)
  • A Standard List Controller
  • An Apex Recordset

Answer : A Standard Controller

The method used to create an object out of a class definition is called a:


Options are :

  • TRUE
  • Webservice
  • For loops
  • constructor (Correct)

Answer : constructor

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>).


Options are :

  • apex:actionSupport
  • apex:actionFunction
  • apex:componentBody
  • . apex:chartTips (Correct)

Answer : . apex:chartTips

How should one prevent soql injection when using dynamic soql? 


Options are :

  • Messaging.InboundEmailHandler
  • with sharing keyword
  • Utilize the String.escapeSingleQuotes(string) method (Correct)
  • XMLStreanWriter, XMLStreamReader

Answer : Utilize the String.escapeSingleQuotes(string) method

What language is Apex similar to? 


Options are :

  • 1
  • Java (Correct)
  • TRUE
  • Catch

Answer : Java

In a recruiting application, a master-detail relationship has been defined between two
custom objects. Job Applications (master) and Reviews (detail).
Which statement is TRUE? 


Options are :

  • The master-detail relationship between Job Applications and Reviews is defined on the Job Application object.
  • Review records may exist without an associated job application.
  • Review records will inherit ownership from the associated job application. (Correct)

Answer : Review records will inherit ownership from the associated job application.

By using the ____________ keyword in a class definition, a developer can create a custom
controller or controller extension that respects OWD, role hierarchy, and sharing rules.


Options are :

  • with defaults
  • with security
  • with permissions
  • with sharing (Correct)

Answer : with sharing

Comment / Suggestion Section
Point our Mistakes and Post Your Suggestions