Salesforce DEV-501 Certified Advanced Developer PracticeTest Set 6

A component that displays the status of an AJAX update request. An AJAX request can
either be in progress or complete.


Options are :

  • apex:actionStatus (Correct)
  • apex:inputCheckbox
  • apex:actionPoller
  • apex:dynamicComponent

Answer : apex:actionStatus

A section of a Visualforce page that allows users to enter input and then submit it with an
<apex:commandButton> or <apex:commandLink>. The body of the form determines the
data that is displayed and the way it is processed. It's a best practice to verify that pages
and custom components use at most one <apex:form> tag.
As of API version 18.0, this tag can't be a child component of <apex:repeat>.


Options are :

  • apex:form (Correct)
  • apex:chart
  • apex:actionRegion
  • apex:insert

Answer : apex:form

This Apex class offers Ideas-specific functionality in addition to what is provided by the
StandardController class.


Options are :

  • IdeaCustomController Class
  • IdeaStandard Class
  • StandardControllerIdeas Class
  • IdeaStandardController Class (Correct)

Answer : IdeaStandardController Class

What email addresses can emails be sent to out of Salesforce? 


Options are :

  • Plural name plus__r
  • Static and final
  • Schema Explorer
  • Internal and external (Correct)

Answer : Internal and external

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


Options are :

  • apex:inputText
  • apex:actionStatus
  • apex:inputText
  • apex:listViews (Correct)

Answer : apex:listViews

What two forms of dml operations can be used in apex?


Options are :

  • Traditional for loops
  • SOQL statements
  • Standalone, database class methods (Correct)
  • Failure response settings

Answer : Standalone, database class methods

A graphic image, rendered with the HTML <img> tag.


Options are :

  • apex:image (Correct)
  • apex:componentBody
  • apex:actionStatus
  • apex:composition

Answer : apex:image

What is the this keyword used to represent?


Options are :

  • Methods and attributes of the current instance of a class (Correct)
  • FALSE, they must be static
  • Encapsulation principles
  • A template from which objects are created

Answer : Methods and attributes of the current instance of a class

Defines how labels are displayed. Depending on what component wraps it,
<apex:chartLabel> gives you options for affecting labels for bar and line series labels, pie
chart segments, and axes labels.
Note: This component must be enclosed by a data series component (<apex:barSeries>,
<apex:lineSeries>, or <apex:pieSeries>) or an <apex:axis> component.


Options are :

  • apex:chart
  • apex:include
  • apex:messages
  • apex:chartLabel (Correct)

Answer : apex:chartLabel

____________ is a placeholder for content that is rendered in a specific part of the parent
component, such as the header or footer of an <apex:dataTable>.


Options are :

  • (Correct)

Answer :

A developer needs to support multiple currencies for a custom object in an application. The
multi-currency feature has been enabled for the organization.
What does the developer need to know in order to successfully support this application?


Options are :

  • Roll-up summary fields on a parent record will calculate incorrectly if the child records have multiple currencies.
  • none
  • Administrators can add additional currencies after the application has been built.
  • The multi-currency feature will automatically track historical exchange rates. (Correct)

Answer : The multi-currency feature will automatically track historical exchange rates.

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

  • apex:iframe (Correct)
  • apex:attribute
  • apex:iframe
  • apex:include

Answer : apex:iframe

What term indicates that Salesforce is a platform which allows clients to share hardware,
storage and other infrastructure?


Options are :

  • On-demand
  • Multi-tenant (Correct)
  • TRUE
  • System

Answer : Multi-tenant

A set of content that is grouped together, rendered with an HTML <span> tag, <div> tag, or
neither. Use an <apex:outputPanel> to group components together for AJAX refreshes.


Options are :

  • apex:outputPanel (Correct)
  • apex:lineSeries
  • apex:includeScript
  • apex:chartTips

Answer : apex:outputPanel

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

  • Cookie Collection
  • State Settings
  • View State (Correct)
  • Page Memory

Answer : View State

Apex is available in which Salesforce Editions? 


Options are :

  • Professional Edition (Correct)
  • Enterprise Edition
  • Unlimited Edition
  • Database.com

Answer : Professional Edition

What is the default return type of a sosl statement?


Options are :

  • List of List Objects (Correct)
  • SOQL for loops
  • Apex classes
  • Apex process classes

Answer : List of List Objects

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


Options are :

  • Throws a DMLException with the ILLEGAL_QUERY status.
  • Transforms the list of records into a list of corresponding Ids. (Correct)
  • Passes the collection to the query, as long as the calling class implements the Trigger.QueryBind class.
  • Truncates the collection so that only the Id and Name fields.

Answer : Transforms the list of records into a list of corresponding Ids.

The system method, System.runAs(), lets you write test methods that change user contexts
to either an existing user or a new user.


Options are :

  • False
  • True (Correct)
  • none

Answer : True

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


Options are :

  • declarative, programmatic
  • Implicit invocation (Correct)
  • SOQL for loops
  • Record level access

Answer : Implicit invocation

What trigger method is used to help prevent completion of a DML event?


Options are :

  • addError (Correct)
  • No
  • Ids
  • TRUE

Answer : addError

A link to a JavaScript library that can be used in the Visualforce page. When specified, this
component injects a script reference into the head element of the generated HTML page.
For performance reasons, you may simply want to use a JavaScript tag before your closing
<apex:page> tag, rather than this component.


Options are :

  • apex:outputField
  • apex:includeScript (Correct)
  • apex:attribute
  • apex:component

Answer : apex:includeScript

In a recruiting application, all users should be able to see positions with a status of Open. If
the status is anything other than Open, the position should be visible only to the record
owner.
How would a developer accomplish this? 


Options are :

  • Set the organization-wide default for positions to public read-only, then use a sharing rule to restrict access to closed positions. (Correct)
  • Specify view only access for open positions on users' profiles
  • Set the organization-wide default for positions to private, then use a criteria-based sharing rule to automatically share open positions.
  • Set the organization-wide default for positions to private, allowing owners to use manual sharing to add or remove access as positions change status.

Answer : Set the organization-wide default for positions to public read-only, then use a sharing rule to restrict access to closed positions.

In a master-detail relationship, what happens to the child records if the parent record is
deleted?


Options are :

  • A subset of the child records is deleted.
  • Child records are deleted. (Correct)
  • Child records are not deleted.
  • Parent record deletion fails.

Answer : Child records are deleted.

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


Options are :

  • apex:inputSecret
  • apex:composition (Correct)
  • apex:lineSeries
  • apex:pageblockSection

Answer : apex:composition

Which feature is available for custom objects


Options are :

  • Queues (Correct)
  • None
  • Assignment rules
  • Database class method

Answer : Queues

Which fields are returned by sosl by default?


Options are :

  • Ids (Correct)
  • 6
  • 1
  • 200

Answer : Ids

For objects where data access is granted through the role hierarchy, how is access
granted?


Options are :

  • Users are granted access to data accessible to users in the same role in the role hierarchy
  • Users are only granted read access to data owned by users above them in the role hierarchy.
  • Users are only granted access to data owned by users below them In the role hierarchy.
  • Users are granted access to data accessible by users below them in the role hierarchy. (Correct)

Answer : Users are granted access to data accessible by users below them in the role hierarchy.

Which statement is TRUE about field-level security?


Options are :

  • It determines the values displayed in a visible picklist field.
  • It is specified for each profile. (Correct)
  • It Is enforced in the SOAP API.

Answer : It is specified for each profile.

How are Apex triggers stored?


Options are :

  • As .trigger files in the /code directory of your organization's public files.
  • As compiled bytecode in the Salesforce platform Apex app server.
  • As static resources.
  • As metadata in the application, under the object with which they are associated. (Correct)

Answer : As metadata in the application, under the object with which they are associated.

Comment / Suggestion Section
Point our Mistakes and Post Your Suggestions