Salesforce DEV-501 Apex Visualforce Controller Practice Exam Set 2

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. (No Answer)


Options are :

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

Answer : Apex runs in a multitenant environment.

Salesforce ADM-201: Administration Essentials Cert Set 6

List the HTTP classes available in Salesforce?


Options are :

  • GET, POST, PUT, DELETE
  • Queues, time triggers
  • HTTPRequest, HTTPResponse, HTTP (Correct)
  • Failure response settings

Answer : HTTPRequest, HTTPResponse, HTTP

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


Options are :

  • By examining the setup audit trail
  • By looking at "Modified By" on the approval definition (Correct)
  • By checking the field history on the associated record
  • By examining the Debug Log

Answer : By looking at "Modified By" on the approval definition

What are the types of exception classes developers can choose between in Apex? (No Answer)


Options are :

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

Answer : System-defined, user-defined

Salesforce Sales-Cloud-Consultant Certification PracticeTest Set 1

How can a wireless device user approve a record? Choose 3 answers


Options are :

  • via email from a wireless device
  • via voice recognition
  • B,D,E (Correct)
  • via Approvals in Chatter
  • via Salesforce1
  • via a text message

Answer : B,D,E

How are programmatic cusomizations done in Salesforce?


Options are :

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

Answer : Apex, Visualforce, and APIs

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? Choose 2 answers


Options are :

  • Formula fields allow greater control and flexibility than Apex triggers
  • Formula fields do not require test methods to deploy.
  • B,C (Correct)
  • Formula fields can aggregate data from child records.
  • Formula fields can be created and deployed using only a browser.

Answer : B,C

Salesforce Sales-Cloud-Consultant Certification PracticeTest Set 7

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:barSeries
  • apex:inputFile
  • apex:outputText
  • apex:insert (Correct)

Answer : apex:insert

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 Public Read only for Position and Private for 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 lookup relationship between Position and Salary; set
  • Create a master-detail relationship between Position and Salary; set organization-wide defaults to Private for Position and Salary

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

What can cross-object formulas reference?


Options are :

  • Child object records only
  • Other records of the same object
  • Both parent and child object records
  • Parent object records only (Correct)

Answer : Parent object records only

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

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


Options are :

  • System.impersonateUser()
  • System.runAsUser()
  • System.testAsUser
  • System.testAs()
  • None of these
  • System.runAs() (Correct)

Answer : System.runAs()

In what code is the webservice keyword not allowed to be used?


Options are :

  • Queues, time triggers
  • Class, trigger
  • Implicit invocation
  • Code contained in a trigger (Correct)

Answer : Code contained in a trigger

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? Choose 2 answers


Options are :

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

Answer : A,B

Salesforce DEV-501 Apex Visualforce Controller Practice Exam Set 3

Which property of a field can be edited within the page layout editor? Choose 2 answers


Options are :

  • Field Dependency
  • Required (Correct)
  • Always Displayed
  • Controller
  • Read-only

Answer : Required

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 permissions
  • None of these
  • with security
  • with sharing (Correct)
  • with defaults
  • with roles

Answer : with sharing

How should one prevent soql injection when using dynamic soql?


Options are :

  • code contained in a trigger
  • Utilize the String.escapeSingleQuotes(string) method (Correct)
  • with sharing keyword
  • Database class method

Answer : Utilize the String.escapeSingleQuotes(string) method

Salesforce DEV-501 Certified Advanced Developer PracticeTest Set 6

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 :

  • None of the above
  • System Mode (Correct)
  • OWD Mode
  • Anonymous Mode
  • User Mode
  • With-Sharing Mode

Answer : System Mode

Developers can use Visualforce pages to: (Select all that apply)


Options are :

  • Define custom tabs
  • Create dashboard components or custom help pages
  • Create custom Console components.
  • A,B,C,D,E,F (Correct)
  • None of these
  • Embed components in detail page layouts
  • Override tab overview pages
  • Override standard buttons

Answer : A,B,C,D,E,F

How should one prevent soql injection when using dynamic soql? (No Answer)


Options are :

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

Answer : Utilize the String.escapeSingleQuotes(string) method

Salesforce DEV-501 Certified Advanced Developer PracticeTest Set 3

Total number of test classes that can be queued per a 24-hour period (as of Spring'13):
The greater of 500 or 10 multiplied by the number of test classes in the organization


Options are :

  • True
  • False (Correct)

Answer : False

Which field is available as part of the translation workbench for a validation rule?


Options are :

  • Rule Criteria
  • Formula
  • Description
  • Error Message (Correct)

Answer : Error Message

Salesforce DEV-501 Certified Advanced Developer PracticeTest Set 5

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

  • A governor limit
  • Traditional for loops (Correct)
  • Static and final
  • SOQL for loops

Answer : Traditional for loops

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


Options are :

  • A,B,C (Correct)
  • Triggers on objects.
  • More?? Is "Button Clicks" a valid choice?
  • None of the above
  • Web service requests.

Answer : A,B,C

An ordered or un ordered list of values that is defined by iterating over a set of data. The body of the <apex:dataList> component specifies how a single item should appear in the list. The data set can include up to 1,000 items.


Options are :

  • apex:inputText
  • apex:lineSeries
  • apex:inputCheckbox
  • apex:dataList (Correct)

Answer : apex:dataList

Sales Force ADM-201 Administration Essentials for New Admin Set 9

One of the best ways to build Visualforce pages and code is by enabling ___________.


Options are :

  • Visual force system mode
  • Visual force development mode (Correct)
  • Show view state
  • Force.com IDE access
  • None of these
  • Apex development mode

Answer : Visual force development mode

What are two key tools to debug code in Salesforce?


Options are :

  • Debug logs, email logs
  • List of List Objects
  • Logs, anonymous blocks (Correct)
  • Dates, Ids, Numbers

Answer : Logs, anonymous blocks

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 Visual force page of your customizations via the "extensions" attribute of the <apex:page> tag.


Options are :

  • False (Correct)
  • True

Answer : False

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

What types of sharing are available to developers to share records? (No Answer)


Options are :

  • With sharing keyword
  • Manual sharing, apex sharing (Correct)
  • Batch apex, apex scheduler
  • Messaging, sendEmail

Answer : Manual sharing, apex sharing

Which invocation method occurs when triggers are called by the Force.com platform during the save process?? Explicit invocation? Implicit invocation? Explicit invocation using anonymous blocks? External API invocation


Options are :

  • Implicit invocation (Correct)
  • Primitive
  • RETURNING
  • SOQL for loops

Answer : Implicit invocation

When do users have the option to manually share records they own from the record detail page?


Options are :

  • When a developer adds the Sharing button to the page layout. (Correct)
  • When the organization wide default for the object is set to private or read-only.
  • When a developer grants the users the Share Records permission.
  • When the organization wide default for the object is set to public read/write.

Answer : When a developer adds the Sharing button to the page layout.

Salesforce Sales-Cloud-Consultant Certification PracticeTest Set 1

Comment / Suggestion Section
Point our Mistakes and Post Your Suggestions