Question 1
Question
Universal Containers has built a recruiting application with two custom objects, Job Applications
and Reviews that have a master-detail relationship. Users should NOT be allowed to delete review
records after job application records have been approved.
Answer
-
Change the interviewer's profile to Read-only for the review object
-
Use workflow to change the page layout to Read-only
-
Remove the Delete button from the job application page layout
-
Use a validation rule in conjunction with a roll-up summary field
Question 2
Question
What can cross-object formulas reference?
Answer
-
Both parent and child object records
-
Parent object records only
-
Child object records only
-
Other records of the same object
Question 3
Question
Universal Containers requires that all job applications have a unique code that is auto-populated
when records are created. The code must be different from the record ID.
What would a developer use to accomplish this declaratively?
Answer
-
Custom auto number field
-
Custom master-detail field
-
Custom read-only number field
-
Custom lookup relationship field
Question 4
Question
Which is a valid formula return type for a custom formula field? Choose 3 answers
Answer
-
Date
-
Percent
-
Email
-
Phone
-
Currency
Question 5
Question
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
Answer
-
Formula fields can aggregate data from child records.
-
Formula fields can be created and deployed using only a browser.
-
Formula fields do not require test methods to deploy.
-
Formula fields allow greater control and flexibility than Apex triggers
Question 6
Question
What can be viewed using the process visualizer?
Answer
-
Approval processes
-
Support processes
-
Workflow rules
-
Sales processes
Question 7
Question
In the Universal Containers recruiting app, there is a master-detail relationship between the Job
Application and Review objects. Job Application is the master object.
If a Job Application record is deleted, what will happen to any associated Review records?
Answer
-
The Review record is also deleted
-
The owner of the Review record changes
-
No change to the Review record
-
An error message is displayed
Question 8
Question
A user can only see the fields A, B, and C on a record of Object X until the Stage field value on the
record changes from New to Working. Once the Stage field value is updated to Working and the
record is saved, the user should be able to see fields A, B, C, and D.
How would an application developer configure this?
Answer
-
Use workflow to change the field-level security
-
Use validation rules to expose the field
-
Use multiple Visualforce pages
-
Use workflow to change the record type
Question 9
Question
Which type of custom field can be an external ID?
Answer
-
Custom field of any type
-
Phone Number, Email, URL and Text-based fields
-
Text, Number, or Formula fields only
-
Text, Email, or Number fields only
Question 10
Question
Why might a reporting snapshot fail during a scheduled run? Choose 3 answers
Answer
-
The target object is a custom object.
-
The target object contains an Apex trigger.
-
The running user has been made inactive.
-
The source report has been resaved as a matrix report.
-
The source report was not created by an Administrator.
Question 11
Question
When do users have the option to manually share records they own from the record detail page?
Answer
-
When a developer adds the Sharing button to the page layout.
-
When a developer grants the users the Share Records permission.
-
When the organization wide default for the object is set to private or read-only.
-
When the organization wide default for the object is set to public read/write.
Question 12
Question
Which dashboard component displays a grand total across a set of data? Choose 2 answers
Question 13
Question
In which Salesforce environments will the Force.com record IDs be identical?
Answer
-
Production and Full Copy Sandbox only
-
Production and Developer Sandbox only
-
Production, Full Copy Sandbox, and Developer Sandbox
-
Force.com record IDs are never identical.
Question 14
Question
A developer would like to modify the contents of the hover details for a custom object called
Position. What would a developer customize to accomplish this?
Question 15
Question
Universal Containers tracks reviews as a custom object in a recruiting application. An interview
score is tracked on each review record and should be numerical, so that hiring managers can
perform score calculations. The scores should be restricted to Integer values l through 5 and
displayed as a set of radio buttons.
How can a developer meet this requirement?
Answer
-
Create the Interview Score field as a picklist, displayed as a radio button on the page layout
-
Create a formula field that displays the interview score as a set of radio buttons
-
Create a Visualforce component to display the interview score as a set of radio buttons
-
Create the Interview Score field with a data type of radio button
Question 16
Question
Which statement is TRUE about field-level security? Choose 2 answers
Answer
-
It is specified for each profile.
-
It can be controlled at the record level.
-
It Is enforced in the SOAP API.
-
It determines the values displayed in a visible picklist field.
Question 17
Question
If a change is made to an approval process, how can a developer determine the user that made
the change? Choose 2 answers
Answer
-
By examining the setup audit trail
-
By checking the field history on the associated record
-
By looking at "Modified By" on the approval definition
-
By examining the Debug Log
Question 18
Question
What is NOT a component of a custom Force.com application?
Answer
-
Data warehouse
-
Custom object
-
Custom tab
-
Default landing tab
Question 19
Question
In a recruiting application, a custom object called Position requires approval. When a position
record is submitted for approval, the requirements below must be met:
The hiring manager must approve the record
The approval must be forwarded to all members of the executive team, but only one executive
needs to approve the record
The VP of human resources must approve the record
How would a developer meet this requirement?
Answer
-
Create multiple approval processes, one for each executive team member, and utilize parallel
submission.
-
Create an approval process which utilizes parallel approvers, but does not require unanimous
approval.
-
Create parallel workflow rules, requiring at least one executive team member to complete their
assigned task.
-
Create an approval process with a step for each executive team member, allowing approval
steps to be skipped.
Question 20
Question
Which standard profile has the "View Encrypted Data" permission by default?
Question 21
Question
Which developer tool can be used to create a data model? Choose 2 answers
Question 22
Question
Which statement is TRUE about master-detail relationships in the Force.com platform? Choose 2
answers
Answer
-
The master-detail relationship field is required on the page layout of the detail record.
-
When defining a master-detail relationship, the custom object on which you are working is the
master.
-
The security settings for the master record control the detail record.
-
When a master record is deleted, the child records remain in the system without a master
record.
Question 23
Question
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? Choose 2 answers
Answer
-
Set the organization-wide default for positions to public read-only, then use a sharing rule to
restrict access to closed positions.
-
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.
Question 24
Question
What is Development?
Answer
-
tools and environments used to develop Force.com application
-
controls application's appearance
-
defines objects, fields and relationships
-
create tasks, assigns records, does time-based actions
Question 25
Answer
-
tools and environments used to develop Force.com application
-
controls application's appearance
-
defines objects, fields and relationships
-
create tasks, assigns records, does time-based actions
Question 26
Answer
-
tools and environments used to develop Force.com application
-
controls application's appearance
-
defines objects, fields and relationships
-
create tasks, assigns records, does time-based actions
Question 27
Answer
-
tools and environments used to develop Force.com application
-
controls application's appearance
-
defines objects, fields and relationships
-
create tasks, assigns records, does time-based actions
Question 28
Question
Positions is a custom object in a recruiting application built on the Force.com platform. Department
is a field on the Position object.
Which type of report should a developer create to show hiring managers the number of positions
grouped by department?
Answer
-
Summary
-
Pivot
-
Reporting Snapshot
-
Tabular
Question 29
Question
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?
Answer
-
The import wizards cannot Import data from CSV files.
-
The import wizards do not support custom objects.
-
The import wizards do not import files to specify record owner.
-
The import wizards do not support the User object.
Question 30
Question
What must a developer consider when inserting records using an API-based tool? Choose 2
answers
Answer
-
Required fields on page layouts are enforced.
-
Universally required field settings are respected.
-
Apex triggers are ignored.
-
Invalidation rules are respected.
Question 31
Question
A developer needs to support multiple currencies for a custom object in an application. The multicurrency
feature has been enabled for the organization.
What does the developer need to know in order to successfully support this application? Choose 2
answers
Answer
-
Administrators can add additional currencies after the application has been built.
-
Roll-up summary fields on a parent record will calculate incorrectly if the child records have
multiple currencies.
-
The multi-currency feature will automatically track historical exchange rates.
-
Currency ISO code will need to be supplied when inserting records in different currencies.
Question 32
Question
Which feature is available for custom objects? Choose 3 answers
Answer
-
Queues
-
Field history tracking
-
Assignment rules
-
Criteria-based sharing
Question 33
Question
In a bug tracking application. Universal Containers has created a time-based workflow action that
will execute 30 days after a Bug record is created. The developer would like to test to make sure
that rule is working the way that it should.
Which feature is available for testing? Choose 2 answers
Question 34
Question
Object B has a lookup relationship to Object A. Object C has a lookup relationship to Object B. A
developer needs to run a report on A records with C records.
How can the developer accomplish this?
Answer
-
Create a matrix report with A and B records as column headings and C records as row
headings
-
Create a custom report type that includes A with B with C
-
Create a summary report with a custom summary formula summarizing by A, then B, then C
-
Run a report using the standard report type: A with B with C
Question 35
Question
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?
Answer
-
Create a workflow field update to set the property of the Actual Salary field to Required
-
Create a field dependency between the Salary Amount and status of Accepted.
-
Create a validation rule to make sure that the Actual Salary is not null whenever an offer is
accepted.
-
Create a validation rule to make Actual Salary required each time the offer record is saved.
Question 36
Question
For objects where data access is granted through the role hierarchy, how is access granted?
Answer
-
Users are granted access to data accessible by users below them in the role hierarchy.
-
Users are only granted access to data owned by users below them In the role hierarchy.
-
Users are only granted read access to data owned by users above them in the role hierarchy.
-
Users are granted access to data accessible to users in the same role in the role hierarchy.
Question 37
Question
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?
Answer
-
Create a lookup relationship between Position and Salary; set organization-wide defaults to
Public Read-Only for Position and Private for Salary
-
Create a master-detail relationship between Position and Salary; set organization-wide defaults
to Private for Position and Salary
-
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
Private for Position and Salary
Question 38
Question
Which field is available as part of the translation workbench for a validation rule?
Answer
-
Formula
-
Description
-
Error Message
-
Rule Criteria
Question 39
Question
Which statement is true regarding Force.com Sites? Choose 3 answers
Answer
-
Sites can leverage declarative page layouts as web pages.
-
Sites enables developers to build public, unauthenticated websites.
-
Sites are built with Visualforce pages.
-
Sites leverage data and content in a Salesforce org.
Question 40
Question
Object X has a lookup field to Object Y. X needs to display a text value from a Text field on Y. To
ensure data Integrity, how would a developer implement this?
Answer
-
Create a roll-up summary field on Object X that retrieves the value from Y.
-
Create a text field on Object X and use a workflow rule to fill in the value upon the creation of X
-
Create a cross-object formula field on Object X that retrieves the value from Y.
-
Create a text field on Object X and use Apex to populate the value.
Question 41
Question
Which mechanism allows for authenticated access to a Force.com Site? Choose 2 answers
Answer
-
It is not possible to provide authentication for a Force.com Site
-
An active Customer Portal
-
An active Partner Portal
-
Setting restricted IP ranges for your site
Question 42
Question
Universal Containers requires that some employees are able to view and edit records of a custom
object called Positions, but no users can delete them.
How can Universal Containers accomplish this goal?
Answer
-
Assign the Read-only profile to all users
-
Set the organization wide default for positions to Read-only
-
Remove the Delete permission for positions from all profiles
-
Remove the Delete Access for positions from all user roles
Question 43
Question
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
Answer
-
Review records will inherit ownership from the associated job application.
-
Deleting a job application record will delete associated review records.
-
The master-detail relationship between Job Applications and Reviews is defined on the Job
Application object.
-
Review records may exist without an associated job application.
Question 44
Question
How can a wireless device user approve a record? Choose 3 answers
Question 45
Question
Which portion of the Model-View-Controller paradigm is represented in Force.com as a standard
or custom object?
Question 46
Question
In a master-detail relationship, what happens to the child records if the parent record is deleted?
Answer
-
Parent record deletion fails.
-
Child records are not deleted.
-
A subset of the child records is deleted.
-
Child records are deleted.
Question 47
Question
Which action is available to a developer when two objects are connected by a lookup relationship?
Choose 2 answers
Answer
-
create a roll-up summary field on the parent object to count child records
-
create a custom report type that allows customization of fields displayed from both parent and
child objects
-
create a cross-object formula field on the child object to reference fields on the parent object
-
create a cross-object formula field on the parent object to reference fields on the child object
Question 48
Question
Universal Containers tracks Positions as a custom object in a recruiting application. All positions
with a priority of critical should NOT be open for more than two weeks. If a position remains open
for more than 14 days, the priority should be re-examined.
How would a developer automate this process?
Answer
-
Create a workflow action to clone the position, assigned to the owner of the position record, that
is due 14 days after record creation
-
Create a validation rule that compares today's date and the record's creation date to determine
if the difference is greater than 14 days
-
Recreate a time-dependent workflow action that sends an email to the recruiter if the position is
still open 14 days after record creation
-
Create a time-dependent workflow action that updates the position status to Closed 14 days
after record creation
Question 49
Question
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? Choose 3 answers
Answer
-
Custom applications
-
Custom relationships
-
Custom fields
-
Custom objects
-
Custom tabs
Question 50
Question
What is a Junction object?
Answer
-
A standard object with a master-detail relationship
-
A custom object with two master-detail relationships
-
A standard object with two master-detail relationships
-
A custom object with a master-detail relationship
Question 51
Question
A developer would like to enable end users to filter the data displayed on the related list of an
object detail page. How could a developer accomplish this?
Answer
-
Enable Advanced Search on the object's related list
-
Customize the search filter fields layout for that object
-
Create a Visualforce page to replace the object detail view
-
Configure the object's related list to add a filter
Question 52
Question
Hiring managers at Universal Containers would like a visual mechanism for determining review
score outliers. Review scores are captured as a custom field on a custom Review object and can
range from l to 10. Any review score that is > 8 should be highlighted in green.
Any review score that is < 4 should be highlighted In red.
How would a developer accomplish this?
Question 53
Question
Users X and Y need to see the same candidate record. For security reasons, user Y should NOT
be able to view and report on the Email Address field on the record.
How would a developer meet this requirement?
Answer
-
Use a custom Visualforce page to make the email address visible to user X but not user Y
-
Use a sharing rule to make the email address only visible to user X
-
use page layouts to make the email address visible to user X but not user Y
-
Use field-level security to make the email address visible to user X but not user Y
Question 54
Question
Which type of tab can a developer create? Choose 3 answers.
Answer
-
Apex tabs
-
web tabs
-
standard object tabs
-
Visualforce tabs
-
custom object tabs
Question 55
Question
Which property of a field can be edited within the page layout editor? Choose 2 answers
Answer
-
Read-only
-
Controller
-
Always Displayed
-
Field Dependency
-
Required
Question 56
Question
A developer has added a custom object tab to an application. Which additional feature will become
available by default for the object in the application? Choose 3 answers
Question 57
Question
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. This component has additional attributes that can be specified, such as the
height and rows per page, as compared to <apex:listView>.
Note: When an <apex:enhancedList> is rerendered through another component's rerender
attribute, the <apex:enhancedList> must be inside of an <apex:outputPanel> component that has
its layout attribute set to "block". The <apex:enhancedList> component is not allowed on pages
that have the attribute showHeader set to false. You can only have five <apex:enhancedList>
components on a single page. Ext JS versions less than 3 should not be included on pages that
use this component.
Answer
-
apex:attribute
-
apex:enhancedList
-
apex:actionFunction
-
apex:inputCheckbox
Question 58
Question
Defines a chart legend. This component offers additional configuration options beyond the defaults
used by the legend attribute of the <apex:chart> component.
Note: This component must be enclosed within an <apex:chart> component.
Question 59
Question
An HTML table that is defined by iterating over a set of data, displaying information about one item
of data per row. The body of the <apex:dataTable> contains one or more column components that
specify what information should be displayed for each item of data. The data set can include up to
1,000 items.
Answer
-
apex:listViews
-
apex:dataTable
-
apex:define
-
apex:inputHidden
Question 60
Question
What three classes along with the Messaging.InboundEmailHandler are used to handle inbound
email messages in Salesforce? (No Answer)
Answer
-
Apex code, Visualforce pages, and controllers
-
Messaging.InboundEmail, Messaging.InboundEmailResult, Messaging.InboundEnvelope
-
Messaging.InboundEmailHandler
-
Make calls to methods using both valid and invalid inputs.
Question 61
Question
How can the default profile under which Webservices execute be changed? (No Answer)
Answer
-
with sharing keyword
-
Webservice
-
SOQL statements
-
constructor
Question 62
Question
What are some RESTful service callout HTTP verbs? (No Answer)
Answer
-
GET, POST, PUT, DELETE
-
System, debug
-
List of List Objects
-
Setup menu
Question 63
Question
What is the maximum size of a SOAP request or response regulated by? (No Answer)
Answer
-
@ReadOnly
-
RETURNING
-
Trigger.old
-
a governor limit
Question 64
Question
What trigger method is used to correlate IDI-to-sObject maps? (No Answer)
Question 65
Question
Which form of dml operation allows execution to occur with subsequent records even if an error
occurs with a single record? (No Answer)
Question 66
Question
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)
Answer
-
Static and final
-
A governor limit
-
Traditional for loops
-
SOQL for loops
Question 67
Question
What language is Apex similar to? (No Answer)
Question 68
Question
What does Apex provide to support programmatic control of the workflow? (No Answer)
Answer
-
Map, List, Set
-
Apex classes
-
Through class itself
-
Apex process classes
Question 69
Question
What are all the datatypes that Salesforce supports? (No Answer)
Answer
-
Primitive, sObject, Collections, Null
-
SOAP Web Service Callouts
-
List of List Objects
-
GET, POST, PUT, DELETE
Question 70
Question
How should one prevent soql injection when using dynamic soql? (No Answer)
Answer
-
XMLStreanWriter, XMLStreamReader
-
Messaging.InboundEmailHandler
-
with sharing keyword
-
Utilize the String.escapeSingleQuotes(string) method
Question 71
Question
How does the Email service process inbound emails? (No Answer)
Answer
-
Apex classes
-
Exceptions
-
FALSE
-
catch
Question 72
Question
What two ways are available to customize and create applications in salesforce? (No Answer)
Question 73
Question
What annotation can be used with Web Services to allow unrestricted queries when no DML
operations are necessary? (No Answer)
Answer
-
@ReadOnly
-
For loops
-
RETURNING
-
TRUE
Question 74
Question
What email addresses can emails be sent to out of Salesforce? (No Answer)
Answer
-
Schema Explorer
-
Plural name plus__r
-
Static and final
-
Internal and external
Question 75
Question
What is a class? (No Answer)
Answer
-
Apex, Visualforce, and APIs
-
Database class method
-
A template from which objects are created
-
Ajax toolkit, client program
Question 76
Question
Which of the following statements are true about components of dynamic Apex?
Schema describe is a way to program matically learn about the metadata of your data model
within Apex.
Dynamic SOQL refers to the creation of a SOQL string before runtime within an Apex script,
In dynamic SQQL, you use Sring.escapeSinqIeQuoLes (sLrng)to prevent SQQL injection.
You can use dynamic SOSL to create a tree structure of all the objects and fields in your
schema browser.
Answer
-
In, like, and, or, not, group by, order by, all rows, limit
-
Schema describe is a way to program magically learn about the metadata of your data model
within Apex.
-
Web service methods must be static, webservice methods cannot be overloaded
-
Create complex functionality declarative features cannot provide.
Question 77
Question
What can the Force.com IDE be used to create? (No Answer)
Answer
-
Apex code, Visualforce pages, and controllers
-
Standalone, database class methods
-
Record level access
-
Apex, Visualforce, and APIs
Question 78
Question
What are the types of exception classes developers can choose between in Apex? (No Answer)
Question 79
Question
Which trigger context variable cannot be deleted? (No Answer)
Answer
-
RETURNING
-
on-demand
-
Exceptions
-
Trigger.new
Question 80
Question
What is the this keyword used to represent? (No Answer)
Answer
-
A template from which objects are created
-
FALSE, they must be static
-
Methods and attributes of the current instance of a class
-
Encapsulation principles
Question 81
Question
What code is the webservice keyword not allowed to be used? (No Answer)
Question 82
Question
What is the total number of messages that all email services put together can process in a day?
(No Answer)
Question 83
Question
Which keywords should u specify to define a constant?
static and exception
static and final
static and private
exception and final(No Answer)
Answer
-
Setup menu
-
Multi-tenant
-
static and final
-
SOQL statements
Question 84
Question
Which syntax should you use to create a new public class named MyNewClass?
Public class MyNewClass {}
Class public MyNewClass {}
Class MyNewClass {} public
MyNewClass public {} class(No Answer)
Answer
-
Public class MyNewClass
-
Database class method
-
SOQL statements
-
Static and final
Question 85
Question
What are the stages of an application development process? (No Answer)
Answer
-
Declaratively, programmatically
-
Primitive, sObject, Collections, Null
-
Develop, integrate, stage, production/training
-
Manual sharing, apex sharing
Question 86
Question
What types of sharing are available to developers to share records? (No Answer)
Answer
-
Messaging, sendEmail
-
Manual sharing, apex sharing
-
Batch apex, apex scheduler
-
With sharing keyword
Question 87
Question
What does Apex use to record disruptions in code execution? (No Answer)
Answer
-
Exceptions
-
Ids
-
Primitive
-
addError
Question 88
Question
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)
Answer
-
Encapsulation principles
-
Salesforce ui, force.com ide, runTests web service
-
Apex runs in a multitenant environment.
-
A template from which objects are created
Question 89
Question
Which of the following are collection data types?
String
Map
List
Date
Set
Number
Salesforce DEV-501 Exam
Answer
-
For loops
-
FALSE
-
Primitive
-
Map, List, Set
Question 90
Question
Which of the following are collection data types Identify the classes that u can use to make HTTP
or RESTful callouts.
HTTP class
HTTPRequesL class
HTTPServerRequest. class
HTTPRsponse class
HTTPServerResponse class
Answer
-
HTTP class, HTTPRequesL class, HTTPRsponse class
-
Apex classes
-
Logs, anonymous blocks
-
Apex code, Visualforce pages, and controllers
Question 91
Question
What statements are used to retrieve records from an sObject in the Force.com database? (No
Answer)
Answer
-
SOQL statements
-
sObject
-
SOQL for loops
-
multi-tenant
Question 92
Question
What are all the datatypes that Salesforce supports?
Answer
-
How many loopback connections to Salesforce are allowed by callouts?
-
What two ways can classes be created in salesforce?
-
What are some RESTful service callout HTTP verbs?
Question 93
Question
Which statement is true about an Apex class?
A class cannot be disabled for profiles.
An inner class can be nested at multiple levels.
Static methods can only be declared in a top-level class definition.
The default access modifier for methods in a class is public.
Answer
-
Static methods can only be declared in a top-level class definition.
-
Utilize the String.escapeSingleQuotes(string) method
-
HTTP class, HTTPRequesL class, HTTPRsponse class
-
Database class method
Question 94
Question
What are the five types of Apex procedural loops? (No Answer)
Answer
-
Do-while loop, traditional for loop, list or set iteration loops, and soql for loops
-
Develop, integrate, stage, production/training
-
Create complex functionality declarative features cannot provide.
-
In, like, and, or, not, group by, order by, all rows, limit
Question 95
Question
Which of the following statements are used to repeatedly execute a block of code until the exit
condition is met?
do-while loops
if statements
for loops
if—Lhen statements
Answer
-
For loops
-
FALSE
-
Exceptions
-
SOQL for loops
Question 96
Question
Which of the following statements identifies the block of code that can handle a particular
exception?
catch
finally
try
throw
Question 97
Question
The method used to create an object out of a class definition is called a:
Answer
-
constructor
-
For loops
-
Webservice
-
TRUE
Question 98
Question
How do you call Web Services from external sources? (No Answer)
Question 99
Question
What does each email service have for which users can send messages? (No Answer)
Question 100
Question
What two ways can classes be created in salesforce? (No Answer)
Answer
-
isSuccess, sendEmailError
-
Apex, Visualforce, and APIs
-
Through UI, Force.com IDE project
-
Bounced, discarded, queued
Question 101
Question
What determines how the email service responds when an attempt to access the email service
fails? (No Answer)
Question 102
Question
What are access modifiers used to implement? (No Answer)
Answer
-
Traditional for loops
-
Encapsulation principles
-
Class, trigger
-
Static and final
Question 103
Question
What is the maximum size of a SOAP request or response? (No Answer)
Question 104
Question
What are the two types of logs? (No Answer)
Answer
-
System, debug
-
TRUE
-
On-demand
-
3 MB
Question 105
Question
Which of the following code will u use to instantiate a map called numbers that has integers as
keys and strings as values?
Map<SLrng, :nLeger> numbers = new Map<String, Integer>;
Map<ThLeyer, SLring> numbers = new Map<Integer, String>;
Map<nLeger> numbers = new Map<String>;
Map<Slring> numbers = new Map<Integer>;
Answer
-
Map<Integer, String> numbers = new Map<Integer, String>;
-
Code contained in a trigger
-
Failure response settings
-
Manual sharing, apex sharing
Question 106
Question
Which trigger context variable allows you to modify field values before they are written to the
database in the before trigger? (No Answer)
Answer
-
Trigger.new
-
Trigger.old
-
@ReadOnly
-
TRUE
Question 107
Question
What are the four ways to deploy Apex code? (No Answer)
Answer
-
Force.com IDE for developers, force.com migration tool, changesets, third-party tools
-
A template from which objects are created
-
Through UI, Force.com IDE project
-
Developer edition production org, Enterprise edition sandbox org
Question 108
Question
What datatype is used for standard or custom objects that store record data? (No Answer)
Question 109
Question
Which statement is true about an Apex class?
A class cannot be disabled for profiles.
An inner class can be nested at multiple levels.
Static methods can only be declared in a top-level class definition.
The default access modifier for methods in a class is public.
Answer
-
Salesforce-generated email address
-
Manual sharing, apex sharing
-
Static methods can only be declared in a top-level class definition.
-
Make calls to methods using both valid and invalid inputs.
Question 110
Question
Under what profile do Webservice methods execute by default?
Question 111
Question
What are the three ways to run unit tests?
Answer
-
Salesforce ui, force.com ide, runTests web service
-
Dates, Ids, Numbers
-
FALSE, they must be static
-
System-defined, user-defined
Question 112
Question
What is the default return type of a sosl statement?
Answer
-
Apex process classes
-
Apex classes
-
List of List Objects
-
SOQL for loops
Question 113
Question
Which trigger context variable allows you to modify field values before they are written to the
database in the before trigger?
Answer
-
@ReadOnly
-
RETURNING
-
Webservice
-
Trigger.new
Question 114
Question
How are static methods and attributes access?
Answer
-
Map, List, Set
-
Class, trigger
-
Apex classes
-
Through class itself
Question 115
Question
Which keywords do developers use to handle exceptions in Apex?
Question 116
Question
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
Answer
-
RETURNING
-
Implicit invocation
-
Primitive
-
SOQL for loops
Question 117
Question
What two methods of customization are available to create applications in salesforce?
Question 118
Question
How should one prevent soql injection when using dynamic soql?
Question 119
Question
What components of apex are available to improve the processing of data in Salesforce?
Question 120
Question
Which trigger context variable cannot be deleted?
Answer
-
addError
-
System
-
@ReadOnly
-
Trigger.new
Question 121
Question
What are two key tools to debug code in Salesforce?
Answer
-
Dates, Ids, Numbers
-
Logs, anonymous blocks
-
Debug logs, email logs
-
List of List Objects
Question 122
Question
Which trigger context variable is not saved in the after trigger and causes an exception to be
thrown?
Answer
-
Trigger.new
-
addError
-
Primitive
-
TRUE
Question 123
Question
What statements are used to retrieve records from an sObject in the Force.com database?
Answer
-
Exceptions
-
On-demand
-
Map, List, Set
-
SOQL statements
Question 124
Question
What is the size of the batches in which triggers execute?
Question 125
Question
What interface does the Apex email handler implement to setup and inbound email service?
Question 126
Question
Can apex code be created directly in the production environment?
Question 127
Question
What are two ways to invoke a custom web service?
Question 128
Question
What components must be deployed manually to the production environment?
Answer
-
Queues, time triggers
-
Multi-tenant
-
Constructor
-
Dates, Ids, Numbers
Question 129
Question
In what code is the webservice keyword not allowed to be used?
Question 130
Question
What types of sharing are available to developers to share records?
Answer
-
Failure response settings
-
Manual sharing, apex sharing
-
Dates, Ids, Numbers
-
Apex, Visualforce, and APIs
Question 131
Question
List the HTTP classes available in Salesforce?
Answer
-
GET, POST, PUT, DELETE
-
Failure response settings
-
Queues, time triggers
-
HTTPRequest, HTTPResponse, HTTP
Question 132
Question
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
Answer
-
Salesforce-generated email address
-
Apex code, Visualforce pages, and controllers
-
Developer edition production org, Enterprise edition sandbox org
-
Encapsulation principles
Question 133
Question
What is the list of steps to match regular expressions using the Pattern and Matcher classes?
Answer
-
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.
-
HTTPRequest, HTTPResponse, HTTP
-
Primitive, sObject, Collections, Null
Question 134
Question
What is the this keyword used to represent?
Answer
-
Salesforce ui, force.com ide, runTests web service
-
Methods and attributes of the current instance of a class
-
A template from which objects are created
-
HTTPRequest, HTTPResponse, HTTP
Question 135
Question
Which of the following guidelines are used for creating custom Web Services? (Select all that
apply.)
webservice methods must be static.
webservice methods cannot be overloaded.
A system-defined enum can be used anywhere in a webservice method.
All classes that contain methods defined with the webService keyword must be declared as
private.
Answer
-
FALSE, they must be static
-
Developer edition production org, Enterprise edition sandbox org
-
Static methods can only be declared in a top-level class definition.
-
webservice methods must be static, webservice methods cannot be overloaded
Question 136
Question
What does Apex use to record disruptions in code execution?
Answer
-
@ReadOnly
-
Catch
-
Webservice
-
Exceptions
Question 137
Question
What keyword is used to create custom Web Services from an apex method?
Answer
-
FALSE
-
TRUE
-
Trigger.new
-
Webservice
Question 138
Question
What two forms of dml operations can be used in apex?
Question 139
Question
Each setSavepoint() and rollback statement counts against the total number of DML statements.
Question 140
Question
What term indicates that Salesforce is a platform which allows clients to share hardware, storage
and other infrastructure?
Answer
-
System
-
On-demand
-
TRUE
-
Multi-tenant
Question 141
Question
What two methods of customization are available to create applications in salesforce?
Question 142
Question
Which fields are returned by sosl by default?
Question 143
Question
What name identifies datatypes such as Integer, Boolean, String and Enum in Salesforce?
Answer
-
Primitive
-
@ReadOnly
-
Trigger.new
-
FALSE
Question 144
Question
What trigger method is used to help prevent completion of a DML event?
Question 145
Question
How are programmatic cusomizations done in Salesforce?
Question 146
Question
Which access modifier should u specify for a class containing the webService keword?
Public
Private
Protected
Global
Question 147
Question
How are Apex triggers stored?
Answer
-
As static resources.
-
As metadata in the application, under the object with which they are associated.
-
As .trigger files in the /code directory of your organization's public files.
-
As compiled bytecode in the Salesforce platform Apex app server.
-
As resource files in the Developer Console.
-
None of these
Question 148
Question
If the error message contains HTML markup, the escaped markup displays as text and isn't
rendered in the user interface. (Select all that apply)
Question 149
Question
Apex code can be initiated in what ways? (Select all that apply)
Question 150
Question
Apex is available in which Salesforce Editions? (Select all that apply)
Question 151
Question
The system method, [blank_start]System.runAs()[blank_end], lets you write test methods that change user contexts to either
an existing user or a new user.
Question 152
Question
The system method, System.runAs(), lets you write test methods that change user contexts to
either an existing user or a new user.
Question 153
Question
The System.runAs() functionality can be used to test and verify proper data sharing and data
access. However, System.runAs() does NOT validate CRUD or Field Level Security permissions.
Question 154
Question
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)
Answer
-
Make calls to methods using both valid and invalid inputs.
-
In the case of conditional logic (including ternary operators), execute each branch of code logic.
-
Only test code using the System Administrator profile.
-
Focus solely on test coverage percentage score.
-
Complete successfully without throwing any exceptions, unless those errors are expected and
caught in a try...catch block.
-
None of these
Question 155
Question
Good Apex tests should....
Answer
-
Exercise bulk trigger functionality—use at least 20 records in your tests.
-
Only test code using the Standard User profile.
-
Access live organization data to validate SOQL queries and DML operations.
-
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.
-
Use the runAs method to test your application in different user contexts.
-
None of these
Question 156
Question
Although Trigger.new is a collection of records, when used as a bind variable in a SOQL query,
Apex automatically....
Answer
-
Passes the collection to the query, as long as the calling class implements the
Trigger.QueryBind class.
-
Transforms the list of records into a list of corresponding Ids.
-
Truncates the collection so that only the Id and Name fields.
-
Throws a DMLException with the ILLEGAL_QUERY status.
-
Transforms the SOQL to an in-place SOSL query and returns the FIND results.
-
None of these
Question 157
Question
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.
Question 158
Question
[blank_start]<apex:facet>[blank_end] 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>.
Question 159
Question
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.
Question 160
Question
A Visualforce page consists of which primary elements? (Select all that apply)
Answer
-
An Apex class
-
A Visualforce controller
-
A trigger.
-
S-Controls
-
Visualforce Markup
-
None of the above
Question 161
Question
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)
Answer
-
Any Web-enabled code
-
Visualforce Tags
-
Apex code
-
HTML
-
JavaScript
-
C# Remoting Modules
-
None of the above
Question 162
Question
The markup defines the user interface components that should be included on the page, and the
way they should appear.
Question 163
Question
What provides access to data that should be displayed in a Visualforce page, and can modify
Visualforce component behavior?
Answer
-
Validation rules
-
Apex controller
-
MVC controller class
-
Visualforce controller
-
Force.com IDE
-
None of the above
Question 164
Question
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.
Question 165
Question
For example, if you use the standard Accounts controller, clicking a Save button in a Visualforce
page results in the same behavior as clicking Save on a standard Account edit page. The same
behavior holds true for Custom objects.
Question 166
Question
[blank_start]A Standard Controller[blank_end] enables you to create Visualforce pages that can display or act on a set of records.
Question 167
Question
A [blank_start]Custom Controller[blank_end] is a class written in Apex that implements all of a page's logic, without leveraging
a standard controller.
Question 168
Question
Like other Apex classes, custom controllers execute entirely in [blank_start]System Mode[blank_end], in which the object
and field-level permissions of the current user are ignored.
Question 169
Question
If you use a standard controller on a page and the user doesn't have access to the object, the
page will...
Answer
-
Throw an ACCESS_VIOLATION exception.
-
Write an ACCESS_VIOLATION message to the debug log.
-
Display an insufficient privileges error message.
-
Redirect the user to their home page.
-
Ask the user if they would like to upgrade permissions in order to view the object.
-
None of the above
Question 170
Question
By using the [blank_start]with sharing[blank_end] keyword in a class definition, a developer can create a custom
controller or controller extension that respects OWD, role hierarchy, and sharing rules.
Question 171
Question
A/an [blank_start]Extended Controller[blank_end] is a class written in Apex that adds to or overrides behavior in a standard or
custom controller.
Question 172
Question
Developers can use Visualforce pages to: (Select all that apply)
Answer
-
Override standard buttons
-
Override tab overview pages
-
Define custom tabs
-
Embed components in detail page layouts
-
Create dashboard components or custom help pages
-
Create custom Console components.
-
None of these
Question 173
Question
Under what circumstances is it appropriate for a developer to add functionality to their application
via the SOAP API? (Select all that apply)
Answer
-
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.
-
When the organization chooses not to share its Enterprise WSDL.
-
When the desired functionality does not require any transactional control.
-
None of these
Question 174
Question
To aid [blank_start]backwards-compatibility[blank_end], 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.
Question 175
Question
One of the best ways to build Visualforce pages and code is by enabling [blank_start]Visualforce development mode[blank_end].
Question 176
Question
The[blank_start]View State[blank_end] 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).
Question 177
Question
This Apex class lets a developer create an action method that can be used in a Visualforce
custom controller or controller extension.
Answer
-
Apex.Action Class
-
ApexPages.Action Class
-
Action Class
-
Visualforce.Action Class
-
Component.Action Class
-
None of the above
Question 178
Question
This Apex class lets a developer access cookies for a Force.com site using Apex.
Question 179
Question
This Apex class offers Ideas-specific functionality in addition to what is provided by the
StandardController class.
Answer
-
StandardControllerIdeas Class
-
IdeaCustomController Class
-
IdeaStandard Class
-
IdeaStandardController Class
-
StandardIdeasController Class
-
None of the above
Question 180
Question
This Apex class offers article-specific functionality in addition to what is provided by the
StandardController Class.
Answer
-
ArticleExtensionStandard Class
-
StandardKnowledgeContainer Class
-
StandardKnowledgeController Class
-
KnowledgeVersionStandardController Class
-
KnowledgeArticleVersionStandardController Class
-
None of the above
Question 181
Question
This Apex class allows developers to collect and display errors when building custom controllers
or extensions.
Answer
-
Exception Class
-
Message Class
-
Debug Class
-
Validation Class
-
Messaging Class
-
None of the above
Question 182
Question
This Apex class allows developers to reference an instantiation of a page.
Answer
-
ExistingPage Class
-
VisualforcePage Class
-
PageReference Class
-
URLReference Class
-
PageURLReference Class
-
None of the above
Question 183
Question
Objects of this Apex class specify one of the possible values for a Visualforce selectCheckboxes,
selectList, or selectRadio component.
Answer
-
Select Class
-
SelectOption Class
-
OptionSelection Class
-
InputSelection Class
-
InputOption Class
-
None of the above
Question 184
Question
Objects of this Apex class reference the pre-built Visualforce controllers provided by
salesforce.com.
Answer
-
VisualforceSetController Class
-
VisualforceController Class
-
Controller Class
-
StandardSetController Class
-
StandardController Class
-
None of the above
Question 185
Question
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.
Answer
-
StandardSetController Class
-
StandardController Class
-
Controller Class
-
VisualforceSetController Class
-
VisualforceControllerClass
-
None of the above
Question 186
Question
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.
Answer
-
System WSDL
-
Partner WSDL
-
Custom WSDL
-
Enterprise WSDL
-
Portal WSDL
-
None of the above
Question 187
Question
This integration resource provides generic access to any organization, and exposes standard
objects and fields through the SOAP interface.
Answer
-
System WSDL
-
Partner WSDL
-
Custom WSDL
-
Enterprise WSDL
-
Portal WSDL
-
None of the above
Question 188
Question
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
Question 189
Question
Which exception type should be checked for when catching exceptions thrown when governor
limits are exceeded?
Answer
-
StackOverflowException
-
LimitException
-
GovernorException
-
PlatformLimitException
-
InvalidLimitException
-
None of these
Question 190
Question
This tag acts as a placeholder for your dynamic Apex components. It has one required
parameter—component Value—which accepts the name of an Apex method that returns a
dynamic component.
The following Visualforce components do not have dynamic Apex representations:
<apex:actionRegion>
<apex:attribute>
<apex:component>
<apex:componentBody>
<apex:composition>
<apex:define>
<apex:dynamicComponent>
<apex:flash>
<apex:inputFile>
<apex:include>
<apex:insert>
<apex:pageMessage>
<apex:pageMessages>
<apex:variable>
<apex:vote>
Any non-<apex:> tag, like <chatter:>, <flow:>, <ideas:>, <knowledge:>, <messaging:>, or <site:>
Answer
-
apex:dynamicComponent
-
apex:dataList
-
apex:actionSupport
-
apex:insert
Question 191
Question
A data series to be rendered as connected points 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 point, 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.
Answer
-
apex:pageblockSection
-
apex:inputHidden
-
apex:lineSeries
-
apex:inputSecret
Question 192
Question
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.
Answer
-
apex:outputText
-
apex:barSeries
-
apex:insert
-
apex:inputFile
Question 193
Question
Defines tooltips which appear on mouseover of data series elements. This component offers more
configuration options than the default tooltips displayed by setting the tips attribute of a data series
component to true.
Note: This component must be enclosed by a data series component (<apex:barSeries>,
<apex:lineSeries>, or <apex:pieSeries>).
Answer
-
apex:actionSupport
-
apex:componentBody
-
apex:actionFunction
-
apex:chartTips
Question 194
Question
A message for a specific component, such as a warning or error. If an <apex:message> or
<apex:messages> component is not included in a page, most warning and error messages are
only shown in the debug log.
Answer
-
apex:message
-
apex:flash
-
apex:detail
-
apex:listViews
Question 195
Question
A component that provides support for invoking controller action methods directly from JavaScript
code using an AJAX request. An <apex:actionFunction> component must be a child of an
<apex:form> component.
Answer
-
apex:messages
-
apex:actionFunction
-
apex:insert
-
apex:outputField
Question 196
Question
An HTML input element of type checkbox. Use this component to get user input for a controller
method that does not correspond to a field on a Salesforce object.
Answer
-
apex:dataList
-
apex:inputCheckbox
-
apex:actionPoller
-
apex:componentBody
Question 197
Question
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>.
Answer
-
apex:actionStatus
-
apex:listViews
-
apex:inputText
-
apex:pageBlockButtons
Question 198
Question
A read-only display of a label and value for a field on a Salesforce object. An <apex:outputField>
component respects the attributes of the associated field, including how it should be displayed to
the user. For example, if the specified <apex:outputField> component is a currency field, the
appropriate currency symbol is displayed. Likewise, if the <apex:outputField> component is a
lookup field or URL, the value of the field is displayed as a link.
Note that if custom help is defined for the field in Setup, the field must be a child of an
<apex:pageBlock> or <apex:pageBlockSectionItem>, and the Salesforce page header must be
displayed for the custom help to appear on your Visualforce page. To override the display of
custom help, use the <apex:outputField> in the body of an <apex:pageBlockSectionItem>.
The Rich Text Area data type can only be used with this component on pages running
Salesforce.com API versions greater than 18.0.
Answer
-
apex:actionRegion
-
apex:actionSupport
-
apex:outputField
-
apex:pageBlock
Question 199
Question
A component that creates an input field to upload a file.
Note: The maximum file size that can be uploaded via Visualforce is 10 MB.
Answer
-
apex:barSeries
-
apex:inputFile
-
apex:composition
-
apex:legend
Question 200
Question
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.
Answer
-
apex:facet
-
apex:chart
-
apex:include
-
apex:componentBody