Salesforce DEV-501 Certified Advanced Developer PracticeTest Set 7

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


Options are :

  • TRUE
  • Trigger.new (Correct)
  • Trigger.old
  • @ReadOnly

Answer : Trigger.new

Salesforce DEV-501 Apex Visualforce Controller Practice Exam Set 3

What can the Force.com IDE be used to create?


Options are :

  • Record level access
  • Apex code, Visualforce pages, and controllers (Correct)
  • Apex, Visualforce, and APIs
  • Standalone, database class methods

Answer : Apex code, Visualforce pages, and controllers

A developer can use optional catch statements for any exception type in a try-catch block.
However, the general exception type, 'Exception', must only be used by the last catch()
block.
EXAMPLE:
try{
// Some risky code.
catch(SomeExceptionType e){
// Handle one exception type.
catch(SomeOtherExceptionType e){
// Handle another exception type.
catch(Exception e){
// This must be the last catch block.


Options are :

  • None
  • Only test code using the System Administrator profile.
  • Focus solely on test coverage percentage score.
  • Make calls to methods using both valid and invalid inputs. (Correct)

Answer : Make calls to methods using both valid and invalid inputs.

This Apex class lets a developer create an action method that can be used in a Visualforce
custom controller or controller extension.


Options are :

  • Action Class
  • Apex.Action Class
  • ApexPages.Action Class (Correct)
  • Visualforce.Action Class

Answer : ApexPages.Action Class

Salesforce DEV-501 Certified Advanced Developer PracticeTest Set 4

This Apex class allows developers to collect and display errors when building custom
controllers or extensions.


Options are :

  • Message Class (Correct)
  • Exception Class
  • Debug Class
  • Validation Class

Answer : Message Class

This Apex class lets a developer access cookies for a Force.com site using Apex.


Options are :

  • PageReference.Cookie Class
  • ApexPages.Cookie Class
  • Component.Cookie Class
  • Cookie Class (Correct)

Answer : Cookie Class

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


Options are :

  • Developer edition production org, Enterprise edition sandbox org (Correct)
  • Apex code, Visualforce pages, and controllers
  • Encapsulation principles
  • Salesforce-generated email address

Answer : Developer edition production org, Enterprise edition sandbox org

Sales Force DEV-401 Building Applications with Force Test Set 6

Given a three tier model (UI layer, business logic layer, data layer), which feature of the
Force.com platform is associated with the data layer?


Options are :

  • Custom applications
  • Custom tabs
  • Custom relationships (Correct)
  • none

Answer : Custom relationships

Which developer tool can be used to create a data model?


Options are :

  • Application Data Model Wizard
  • Force.com IDE (Correct)
  • Force.com Data Loader
  • none

Answer : Force.com IDE

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 an <apex:outputLink> is the text or image
that displays as the link. To add query string parameters to a link, use nested
<apex:param> components.


Options are :

  • apex:inputField
  • apex:lineSeries
  • apex:outputLink (Correct)
  • apex:emailPublisher

Answer : apex:outputLink

Salesforce Sales-Cloud-Consultant Certification PracticeTest Set 1

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


Options are :

  • Database class method (Correct)
  • Apex classes
  • Public class MyNewClass
  • Standalone, database class methods

Answer : Database class method

The Log a Call publisher lets support agents who use Case Feed create logs for customer
calls. This component can only be used in organizations that have Case Feed, Chatter, and
feed tracking on cases enabled.


    Options are :

    • apex:inputHidden
    • apex:logCallPublisher (Correct)
    • apex:chartLabel
    • apex:iframe

    Answer : apex:logCallPublisher

    Universal Containers tracks Offers as an object in a recruiting application. Once an offer
    has been accepted by a candidate, there must be a value in a currency field called Actual
    Salary.
    How would a developer meet this requirement?


    Options are :

    • Create a field dependency between the Salary Amount and status of Accepted.
    • Create a workflow field update to set the property of the Actual Salary field to Required
    • Create a validation rule to make sure that the Actual Salary is not null whenever an offer is accepted. (Correct)

    Answer : Create a validation rule to make sure that the Actual Salary is not null whenever an offer is accepted.

    Sales Force DEV-501 Certified Force Advanced Developer Test Set 6

    Which dashboard component displays a grand total across a set of data? Choose 2
    answers


    Options are :

    • Chart
    • Table (Correct)
    • Metric
    • Pivot

    Answer : Table

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

    • False (Correct)
    • None
    • True

    Answer : False

    Displays text on a Visualforce page. You can customize the appearance of
    <apex:outputText> using CSS styles, in which case the generated text is wrapped in an
    HTML <span> tag. You can also escape the rendered 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 the MessageFormat class JavaDocs for more information.
    Warning:Encrypted custom fields that are embedded in the <apex:outputText> component
    display in clear text. The <apex:outputText> component doesn't respect the View
    Encrypted Data permission for users. To prevent showing sensitive information to
    unauthorized users, use the <apex:outputField> tag instead.


    Options are :

    • apex:outputText (Correct)
    • apex:message
    • apex:column
    • apex:actionSupport

    Answer : apex:outputText

    Salesforce DEV-501 Apex Visualforce Controller Practice Exam Set 1

    Under what profile do Webservice methods execute by default?


    Options are :

    • FALSE
    • System (Correct)
    • No
    • TRUE

    Answer : System

    A developer is loading data, in CSV format, into a custom application from a legacy system.
    The developer would like to load users into the user object, and positions and job
    applications owned by named users into related custom objects.
    Which obstacle will the developer encounter when using the import wizard?


    Options are :

    • The import wizards do not import files to specify record owner.
    • The import wizards do not support the User object. (Correct)
    • The import wizards do not support custom objects.
    • The import wizards cannot Import data from CSV files.

    Answer : The import wizards do not support the User object.

    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 <apex:chart> component. You can have
    multiple <apex:barSeries> and <apex:lineSeries> components in a single chart.


    Options are :

    • None
    • apex:outputLink
    • apex:barSeries (Correct)
    • apex:inputHidden

    Answer : apex:barSeries

    Salesforce Sales-Cloud-Consultant Certification PracticeTest Set 2

    Which type of custom field can be an external ID?


    Options are :

    • Custom field of any type
    • Text, Email, or Number fields only (Correct)
    • Text, Number, or Formula fields only
    • Phone Number, Email, URL and Text-based fields

    Answer : Text, Email, or Number fields only

    Comment / Suggestion Section
    Point our Mistakes and Post Your Suggestions