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

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)
  • True

Answer : False

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


Options are :

  • None of the above
  • IdeaStandardController Class (Correct)
  • StandardControllerIdeas Class
  • IdeaCustomController Class
  • IdeaStandard Class
  • StandardIdeasController Class

Answer : IdeaStandardController Class

This integration resource provides generic access to any organization, and exposes standard
objects and fields through the SOAP interface.


Options are :

  • Partner WSDL (Correct)
  • None of the above
  • System WSDL
  • Enterprise WSDL
  • Custom WSDL
  • Portal WSDL

Answer : Partner WSDL

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


Options are :

  • None of the above
  • Component.Cookie Class
  • ApexPages.Cookie Class
  • Cookie Class (Correct)
  • PageReference.Cookie Class
  • Visualforce.Cookie Class

Answer : Cookie Class

What provides access to data that should be displayed in a Visualforce page, and can modify
Visualforce component behavior?


Options are :

  • Apex controller
  • Force.com IDE
  • None of the above
  • MVC controller class
  • Validation rules
  • Visualforce controller (Correct)

Answer : Visualforce controller

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 :

  • None of these
  • with permissions
  • with roles
  • with defaults
  • with sharing (Correct)
  • with security

Answer : with sharing

Good Apex tests should....
A.
Exercise bulk trigger functionality—use at least 20 records in your tests.
B.
Only test code using the Standard User profile.
C.
Access live organization data to validate SOQL queries and DML operations.
D.
Use the isTest annotation. Classes defined with the isTest annotation do not count against your
organization limit of 3 MB for all Apex code. See IsTest Annotation.
E.
Use the runAs method to test your application in different user contexts.
F.
None of these


Options are :

  • A,C,E
  • A,D,E (Correct)
  • F
  • A,B,E

Answer : A,D,E

Objects of this Apex class specify one of the possible values for a Visualforce selectCheckboxes,
selectList, or selectRadio component.


Options are :

  • InputSelection Class
  • SelectOption Class (Correct)
  • Select Class
  • OptionSelection Class
  • None of the above
  • InputOption Class

Answer : SelectOption Class

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 :

  • Enterprise WSDL (Correct)
  • None of the above
  • Custom WSDL
  • System WSDL
  • Partner WSDL
  • Portal WSDL

Answer : Enterprise WSDL

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

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.
}
~|~
(Select all that apply)

A.
Make calls to methods using both valid and invalid inputs.
B.
In the case of conditional logic (including ternary operators), execute each branch of code logic.
C.
Only test code using the System Administrator profile.
D.
Focus solely on test coverage percentage score.
E.
Complete successfully without throwing any exceptions, unless those errors are expected and
caught in a try...catch block.
F.
None of these



Options are :

  • F
  • A,B,D
  • A,B,E (Correct)
  • A,B,C

Answer : A,B,E

A ____________ is a class written in Apex that implements all of a page's logic, without leveraging
a standard controller.


Options are :

  • Controller Extension
  • Custom Controller (Correct)
  • Validation Extension
  • Visualforce Component
  • Visualforce Plugin

Answer : Custom Controller

This Apex class allows developers to reference an instantiation of a page.


Options are :

  • PageURLReference Class
  • URLReference Class
  • PageReference Class (Correct)
  • ExistingPage Class
  • VisualforcePage Class
  • None of the above

Answer : PageReference Class

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


Options are :

  • None of the above
  • ArticleExtensionStandard Class
  • KnowledgeVersionStandardController Class
  • StandardKnowledgeContainer Class
  • KnowledgeArticleVersionStandardController Class (Correct)
  • StandardKnowledgeController Class

Answer : KnowledgeArticleVersionStandardController Class

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


Options are :

  • 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.
  • Throws a DMLException with the ILLEGAL_QUERY status.
  • Truncates the collection so that only the Id and Name fields.
  • Transforms the SOQL to an in-place SOSL query and returns the FIND results.
  • None of these

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

Objects of this Apex class allow developers to create list controllers similar to, or as extensions of,
the pre-built Visualforce list controllers provided by Salesforce.


Options are :

  • VisualforceControllerClass
  • StandardSetController Class (Correct)
  • None of the above
  • Controller Class
  • StandardController Class
  • VisualforceSetController Class

Answer : StandardSetController Class

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


Options are :

  • A Custom List Doctype
  • A Standard List Controller
  • A Standard Controller (Correct)
  • None of the above
  • An Apex class
  • An Apex Recordset

Answer : A Standard Controller

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


Options are :

  • Exception Class
  • None of the above
  • Message Class (Correct)
  • Debug Class
  • Validation Class
  • Messaging Class

Answer : Message Class

Under what circumstances is it appropriate for a developer to add functionality to their application
via the SOAP API? (Select all that apply)
A.
When consumers of the desired functionality have no experience with Force.com development.
B.
When the desired functionality processes only one type of record at a time.
C.
When the organization chooses not to share its Enterprise WSDL.
D.
When the desired functionality does not require any transactional control.
E.
None of these


Options are :

  • E
  • A,D
  • C,D
  • B,D (Correct)

Answer : B,D

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

Objects of this Apex class reference the pre-built Visualforce controllers provided by
salesforce.com.


Options are :

  • StandardSetController Class
  • VisualforceSetController Class
  • Controller Class
  • StandardController Class (Correct)
  • None of the above
  • VisualforceController Class

Answer : StandardController Class

To aid ___________, each Visualforce page and custom component is saved with version settings
for the specified version of the API as well as the specific version of Visualforce


Options are :

  • portal development
  • Apex testing
  • bytecode compiles
  • backwards-compatibility (Correct)
  • exception handling
  • None of these

Answer : backwards-compatibility

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 :

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

Answer : System Mode

Developers can use Visualforce pages to: (Select all that apply)
A.
Override standard buttons
B.
Override tab overview pages

C.
Define custom tabs
D.
Embed components in detail page layouts
E.
Create dashboard components or custom help pages
F.
Create custom Console components.
G.
None of these



Options are :

  • G
  • A,B,C,D,E,F (Correct)

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

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


Options are :

  • Force.com IDE access
  • None of these
  • Visualforce development mode (Correct)
  • Show viewstate
  • Apex development mode
  • Visualforce system mode

Answer : Visualforce development mode

A Visualforce page consists of which primary elements? (Select all that apply)
A.
An Apex class
B.
A Visualforce controller
C.
A trigger.
D.
S-Controls
E.
Visualforce Markup
F.
None of the above


Options are :

  • A,E (Correct)
  • A,D
  • F
  • A,C

Answer : A,E

A/an _____________ is a class written in Apex that adds to or overrides behavior in a standard or
custom controller.


Options are :

  • None of these
  • Controller extension
  • Component extension
  • Apex extension
  • Custom component
  • Extended Controller (Correct)

Answer : Extended Controller

A Visualforce controller is a set of instructions that specify what happens when a user interacts
with the components specified in associated Visualforce markup, such as when a user clicks a
button or link. Controllers also provide access to the data that should be displayed in a page, and
can modify component behavior.


Options are :

  • True
  • False (Correct)

Answer : False

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


Options are :

  • True
  • False (Correct)

Answer : False

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... (Select all that apply)
A.
Any Web-enabled code

B.
Visualforce Tags
C.
Apex code
D.
HTML
E.
JavaScript
F.
C# Remoting Modules
G.
None of the above



Options are :

  • A,B,E,F
  • G
  • A,B,C,D
  • A,B,D,E (Correct)

Answer : A,B,D,E

Comment / Suggestion Section
Point our Mistakes and Post Your Suggestions