Salesforce DEV-501 Certified Advanced Developer PracticeTest Set 4

A Visualforce page consists of which primary elements?


Options are :

  • A trigger
  • A Visualforce controller
  • An Apex class (Correct)
  • S-Controls

Answer : An Apex class

What two ways are available to customize and create applications in salesforce? 


Options are :

  • static and final
  • plural name plus__r
  • Encapsulation principles
  • declaratively, programmatically (Correct)

Answer : declaratively, programmatically

How should one prevent soql injection when using dynamic soql?


Options are :

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

Answer : Utilize the String.escapeSingleQuotes(string) method

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


Options are :

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

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

Which of the following statements identifies the block of code that can handle a particular
exception?
? catch
? finally
? try
? throw


Options are :

  • Ids
  • 3 MB
  • FALSE
  • catch (Correct)

Answer : catch

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


Options are :

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

Answer : Code contained in a trigger

A set of buttons that are styled like standard Salesforce buttons. This component must be a
child component of an <apex:pageBlock>.
Note that it is not necessary for the buttons themselves to be direct children of the
<apex:pageBlockButtons> componentbuttons that are located at any level within an
<apex:pageBlockButtons> component are styled appropriately.


Options are :

  • apex:pageBlockButtons (Correct)
  • apex:form
  • apex:includeScript
  • apex:commandButton

Answer : apex:pageBlockButtons

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 :

  • False (Correct)
  • True

Answer : False

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


Options are :

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

Answer : Read-only

How can a wireless device user approve a record?


Options are :

  • via voice recognition
  • via Approvals in Chatter (Correct)
  • via a text message

Answer : via Approvals in Chatter

Developers can use Visualforce to create a Visualforce page definition. A page definition
consists of two primary elements:
? Visualforce markup
? A Visualforce controller
Visualforce markup consists of...


Options are :

  • Apex code
  • Any Web-enabled cod (Correct)
  • None of the above
  • C# Remoting Modules

Answer : Any Web-enabled cod

Under what circumstances is it appropriate for a developer to add functionality to their
application via the SOAP API


Options are :

  • None of these
  • When consumers of the desired functionality have no experience with Force.com development.
  • When the desired functionality processes only one type of record at a time. (Correct)
  • When the organization chooses not to share its Enterprise WSDL.

Answer : When the desired functionality processes only one type of record at a time.

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


Options are :

  • Ids
  • 3 MB (Correct)
  • 10
  • Java

Answer : 3 MB

An HTML input element of type password. Use this component to get user input for a
controller method that does not correspond to a field on a Salesforce object, for a value
that is masked as the user types.


Options are :

  • apex:inputSecret (Correct)
  • apex:composition
  • apex:barSeries
  • apex:attribute

Answer : apex:inputSecret

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


Options are :

  • HTTPRequest, HTTPResponse, HTTP
  • A template from which objects are created
  • 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. (Correct)
  • Primitive, sObject, Collections, Null

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

Which action is available to a developer when objects are connected by a lookup
relationship?


Options are :

  • create a roll-up summary field on the parent object to count child records
  • None
  • create a custom report type that allows customization of fields displayed from both parent and child objects (Correct)
  • create a cross-object formula field on the parent object to reference fields on the child object

Answer : create a custom report type that allows customization of fields displayed from both parent and child objects

Which access modifier should u specify for a class containing the webService keword?
? Public
? Private
? Protected
? Global


Options are :

  • FALSE
  • 3 MB
  • Global (Correct)
  • 6

Answer : Global

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


Options are :

  • View
  • Model (Correct)
  • Controller

Answer : Model

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 :

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

Answer : Traditional for loops

What interface does the Apex email handler implement to setup and inbound email
service?


Options are :

  • Messaging.InboundEmailHandler (Correct)
  • Encapsulation principles
  • isSuccess, sendEmailError
  • Messaging.sendEmail

Answer : Messaging.InboundEmailHandler

Can apex code be created directly in the production environment?


Options are :

  • 1
  • Ids
  • no (Correct)
  • 10

Answer : no

This tag allows a custom component author to define a location where a user can insert
content into the custom component. This is especially useful for generating custom iteration
components. This component is valid only within an <apex:component> tag, and only a
single definition per custom component is allowed.


Options are :

  • apex:chart
  • apex:include
  • apex:componentBody (Correct)
  • apex:facet

Answer : apex:componentBody

What are two key tools to debug code in Salesforce?


Options are :

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

Answer : Logs, anonymous blocks

An ordered or unordered 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:dataList (Correct)
  • apex:inputCheckbox

Answer : apex:dataList

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


Options are :

  • apex:actionSupport
  • apex:inlineEditSupport
  • apex:chart (Correct)
  • apex:enhancedList

Answer : apex:chart

A component that inserts a second Visualforce page into the current page. The entire page
subtree is injected into the Visualforce DOM at the point of reference and the scope of the
included page is maintained.
If content should be stripped from the included page, use the <apex:composition>
component instead.


Options are :

  • apex:inputFile
  • apex:include (Correct)
  • apex:inputField
  • apex:iframe

Answer : apex:include

Apex code can be initiated in what ways?


Options are :

  • None
  • Web service requests. (Correct)
  • Web hosting
  • Web portal

Answer : Web service requests.

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


Options are :

  • When the organization wide default for the object is set to private or read-only.
  • When a developer adds the Sharing button to the page layout. (Correct)
  • 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.

What are two ways to invoke a custom web service?


Options are :

  • Ajax toolkit, client program (Correct)
  • Apex process classes
  • A governor limit
  • List of List Objects

Answer : Ajax toolkit, client program

How does the Email service process inbound emails?


Options are :

  • Apex classes (Correct)
  • catch
  • FALSE
  • Exceptions

Answer : Apex classes

Comment / Suggestion Section
Point our Mistakes and Post Your Suggestions