Академический Документы
Профессиональный Документы
Культура Документы
1.
Discuss
o A.
o B.
o C.
o D.
2.
Discuss
o A.
o B.
Execute Anonymous Apex Code, Run REST API, Deploy code changes
o D.
3.
Discuss
o A.
o B.
o C.
o D.
4.
Discuss
o A.
Parent-Child
o B.
Lookup
o C.
Master-detail
o D.
One-to-Many
5.
Discuss
o A.
o B.
o C.
o D.
6.
Discu-ss
o A.
o B.
o C.
o D.
Any object that is on the parent side of a lookup relationship
7.
Which code segment can be used to control when the dowork()method is called?
Discuss
o A.
o B.
If(trigger.IsRunning){ doWork(); }
o C.
o D.
If(trigger.IsInsert){ doWork(); }
8.
Discuss
o A.
o B.
o C.
o D.
9.
Why would a developer use Test.startTest() and Test.stopTest()?
Discuss
o A.
To start and stop anonymous block execution when execution when executing anonymous
Apex Code
o B.
To avoid Apex code coverage requirements for the code between these lines
o C.
To create an additional set of governor limits during the execution of a single test class
o D.
To indicate test code so that it does not impact Apex line count governor limits
10.
Discuss
o A.
o B.
o C.
For(Variable : list_or_set){...}
o D.
11.
What must the Controller for a VisualForce page utilize to overridethe Standard
Opportunity view button?
Discuss
o A.
o B.
o C.
o D.
12.
Discuss
o A.
o B.
o C.
o D.
13.
Discuss
o A.
Create a method that loads valid Account records from a Static Resource, and call this
method within test methods.
o B.
Create a method that queries for a valid Account records, and call this method from within
test methods
o C.
Create a method that creates valid Account records, and call this method from within test
methods
o D.
Create a method that performs a callout for a valid Account record, and call this method
within test methods
14.
Discuss
o A.
Before update
o B.
After update
o C.
Before insert
o D.
After insert
15.
Discuss
o A.
Formula fields can expose data the user does not have access to in a record
o B.
Formula fields can reference fields from Master-Detail or lookup parent relationships
o C.
Formula fields can reference fields from objects that are up to 10 relationships away
o D.
Formula fields can reference fields in a collection of records from a child relationship
o E.
16.
What is the result when a Visualforce page calls an Apexcontroller, which calls
another Apex class, which then results inhitting a governor limit?
Discuss
o A.
o B.
o C.
o D.
All changes are saved in the first Apex Class
17.
A developer has the following code block:Public class PaymentTax {Public static
decimal salesTax = 0.0875;}Trigger OpportunityLineItemTrigger on
OpportunityLineItem(before insert, before update){PaymentTax PayTax = new
PaymentTax();Decimal ProductTax = ProductCost = XXXXXXXXXXXXX;}To
calculate the productTax wich code segment would adeveloper insert at the
XXXXXXXX to make the value of the classvariable SalesTax accessible within the
trigger?
Discuss
o A.
PayTax.SalesTax
o B.
SalesTax
o C.
PaymentTax.SalesTax
o D.
OpportunityLineItemTrigger.SalesTax
18.
Discuss
o A.
o B.
A list of SObjects
o C.
19.
Discuss
o A.
AccountId
o B.
LastName
o C.
FirstName
o D.
Name
20.
A developer creates a new Visualforce page and Apex extension,and writes test
classes that exercise 95% coverage of the newApex extension.Change set
deployment to production fails with the test coveragewarning : * Average test
coverage across all apex classes andtriggers is 74% at least 75% test coverage is
required.What can the developer do to successfully deploy the newVisualforce
page and extension?
Discuss
o A.
o B.
o C.
Create test classes to exercise the visualforce page markup
o D.
21.
Discuss
o A.
Currency
o B.
Integer
o C.
Decimal
o D.
Double
22.
Discuss
o A.
o B.
o C.
By changing Application__c.Status__c into a formula field
o D.
23.
Discuss
o A.
o B.
o C.
o D.
24.
Discuss
o A.
Download and Unmanaged Package from the AppExchange that provides a Custom
Visualforce
o B.
Copy the standard page and then make a new Visualforce page for product data entry
o C.
Create a new Visualforce page and an Apex controller to provide Product data entry
o D.
Download a Managed Package from the AppExchange that provides a custom Visualforce
25.
Discuss
o A.
11, 150
o B.
150, 2
o C.
150 ,11
o D.
2 , 150
26.
A developer wrote a workflow email alert on case creation so thatan email is sent
to the case owner manager when is created.When will the email be sent?
Discuss
o A.
o B.
o C.
Before Committing to database
o D.
27.
Discuss
o A.
Account Layout
o B.
o C.
Case Layout
o D.
Console Layout
28.
Discuss
o A.
o B.
Inner classes do not inherit the sharing setting from the container class
o C.
Inner classes inherit the sharing setting from the container class
o D.
Either inner or outer classes can be declared as with sharing, but no both
29.
Discuss
o A.
o B.
o C.
o D.
30.
A developer needs to create records for the object Property__c .The developer
creates the following code block:List<Property__c> propertiesToCreate
=helperClass.CreateProperties();Try{O3}Catch (Exception exp){ }Which line of
code would the developer insert at line 03 to ensurethat at least some records are
created, even if a few records haveerrors and fail to be created?
Discuss
o A.
Datebase.insert(propertiesToCreate,System.ALLOW_PARTIAL);
o B.
Insert propertiesToCreate;
o C.
Database.insert(propertiesToCreate,false);
o D.
Databas.insert(propertiesToCreate);
31.
Discuss
o A.
o B.
o D.
32.
Discuss
o A.
o B.
o C.
o D.
Discuss
o A.
o B.
o C.
o D.
34.
What is valid source and destination pair that can send or receivechange sets?
Choose 2 Answer
o A.
Sandbox to Sandbox.
o B.
o C.
o D.
Sandbox to production.
35.
How would a developer use Schema Builder to delete a customfield from the
Account object that was required for prototypingbut is no longer needed?
Discuss
o A.
Delete the field from Schema Builder and then all references in the code will be removed.
o B.
Mark the field for deletion in Schema Builder and then delete it from the declarative UI.
o C.
Remove all references from the code and then delete the custom field from Schema
Builder
o D.
Remove all the references in the code and then the field will be removed from Schema
Builder
36.
How Can a developer avoid exceeding governor limits when usingan apex
Trigger?Choose 2 answers.
Discuss
o A.
o B.
o C.
o D.
37.
o A.
o B.
o C.
o D.
38.
When loading data into an organization, what can a developer doto match records
to update existing records? Choose 2 answer
Discuss
o A.
o B.
o C.
o D.
39.
Discuss
o A.
Utilize the Standard Controller for position__c and a Controller Extension to query for
Review__c data.
o B.
Utilize the Standard Controller for Position__c and cross-object Formula fields on the
job_Application__c object to display Review__c data.
o C.
Utilize the Standard Controller for Position__c corss-object Formula fields on the
Review__c object to display Review__c data.
o D.
Utilize the Standard Controller for position__c and expression syntax in the page to display
related Review__c data through the job_Application__c object.
40.
A developer has a block of code that omits any statements thatindicate whether
the code block should execute with or withoutsharing.What will automatically obey
the organization wide defaults andsharing settings for the user who executes the
code in thesalesforce organization?
Discuss
o A.
Anonymous Blocks
o B.
HTTP Callouts
o C.
Apex Triggers
o D.
Apex Controllers
41.
Discuss
o A.
Validation rules, Before Triggers, After Triggers, Workflow Rules, Assignment Rules,
Commit
o B.
Before Triggers, Validation rules, After Triggers, Assignment Rules, Workflow Rules,
Commit
o C.
Validation rules, Before Triggers, After Triggers, Assignment Rules, Workflow Rules,
Commit
o D.
Before Triggers, Validation rules, After Triggers, Workflow Rules, Assignment Rules,
Commit
42.
Discuss
o A.
Javascript
Helper
o B.
Apex class
o C.
Adobe Flash
o D.
Documentation
43.
In the code below what types does boolean inherit from?boolean b = true
Discuss
o A.
Class
o B.
Enum
o C.
Object
o D.
String
44.
Discuss
o A.
Queries select the fewest fields and records possible to avoid exceeding governor limits
o B.
Apex classes use the "with sharing" Keyword to prevent access from other server tenants
o C.
DML is performed on one record at a time to avoid possible data concurrency issues
o D.
A developer writes a before insert trigger.How can the developer access the
incoming records in the triggerbody?
Discuss
o A.
o B.
o C.
o D.
46.
What is the preferred way to reference web content- such asimages, stylesheets,
JavaScript, and other libraries that is used inVisualforce pages?
o A.
o B.
o C.
o D.
47.
Discuss
o A.
o B.
GetMyString, , ,
o C.
, , Method2, getMyString
o D.
, , Method2,
48.
Discuss
o A.
o B.
Both the Apex Trigger and Workflow Rule are fired only once
o C.
o D.
A developer wants to display all of the available record types for aCase object .
The developer the picklist values for the Case statusfield. The Case object and the
Case Status field ....Which action can the developer perform to get the record
typesand picklist values in the controller?Choose 2 answers.
Discuss
o A.
o B.
o C.
Use SOQL to query Case records in the org to get all values for the Status picklis field
o D.
Use SOQL to query Case records in the org to get all the RecordType values available for
Case
50.
Which statement about the Lookup Relationship between aCustom object and a
Standard Object is correct?
Discuss
o A.
The Custom Object will be deleted when the referenced Standard Object is deleted
o B.
The lookup Relationship cannot be marked as required on the page layout for the Custom
Object
o C.
The custom Object inherits security from the referenced Standard Object
o D.
The Lookup relationship on the Custom Object can prevent the deletion of the Standard
Object
51.
What is the minimum log level needed to see user generateddebug statements?
Discuss
o A.
DEBUG
o B.
FINE
o C.
WARN
o D.
INFO
52.
Discuss
o A.
Increased test coverage requires large test classes with many lines of code in one method
o B.
System Assert statements that do not increase code coverage contribute important
feedback in unit
o C.
Unit tests with multiple methods result in all methods failing every time one method fails
o D.
Triggers do not require any unit tests in order to deploy them from sandbox to production
53.
A developer has a single custom controller class that works with aVisualforce to
support creating and editing multiple sObjects. Thewizard accepts data from user
inputs across multiple Visualforcepages and from a parameter on the initial
URL.Which statements is unnecessary inside the unit test for thecustom
controller?
Discuss
o A.
ApexPages.currentPage().getParameter.put(‘input’,’Testvalue’)
o B.
o C.
o D.
Test.setCurrentPage(PageRef)
54.
Discuss
o A.
o B.
o C.
Throw RecordNotFoundException();
o D.
Throw new RecordNotFoundException('Problem occurred')
55.
The sales management team requires that the Lead Source fieldof the Lead
record be populated when a Lead is converted. Whatwould a developer use to
ensure that a user populates the LeadSource field prior to converting to a Lead?
Discuss
o A.
Validation rule
o B.
Process builder
o C.
Formula Field
o D.
Workflow rule
56.
A developer has the following trigger that fires after insert andcreates a child Case
whenever a new Case is created.List<Case> childcases = new
List<Case>();for(Case parent: Trigger.new){Case child = new Case(ParentId =
parent.Id, Subject =parent.Subject);childCases.add(child);}insert childCases;What
happens after the code block executes?
Discuss
o A.
o B.
o C.
Multiple child cases are created for each parent case in Trigger.new
57.
What should a developer working in a sandbox use to exercisea new test class
before the developer deploys that test class toproduction? Choose 2 answer
Discuss
o A.
o B.
o C.
o D.
58.
A developer created an Apex trigger using the Developer Consoleand now wants
to debug code.How can the developer accomplish in the Developer Console?
Discuss
o A.
o B.
o C.
o D.
Open the Progress tab in the Developer Console.
59.
Discuss
o A.
o B.
o C.
o D.
60.
A developer uses a before insert trigger on the Lead object to fetch the
Territory__c object, where the Territory__c.PostalCode__c matches the
Lead.PostalCode. The code fails when the developer uses the Apex Data Loader
to insert 10,000 Lead records. The developer has the following code block:01
for(Lead l : Trigger.new){02 if(l.PostalCode != null){03 List TerrList = [select
Id FROM Territory__c WHERE PostalCode__c =:
l.PostalCode];04 if(terrList.size() >0){05 l.Territory__c =
terrList[0].Id;06 }07 }08 }Which line of code is causing the code block to fail?
Discuss
o A.
o B.
o C.
02: a NullPointer exception is thrown if PostalCode is null.
o D.
61.
Discuss
o A.
o B.
o C.
o D.
62.
Discuss
o A.
o B.
o C.
o D.
They use an all or none deployment model
o E.
63.
Discuss
o A.
o B.
o C.
o D.
A static variable can restrict the scope to the current block if its values is null
o E.
Sub-blocks can reuse a parent´s block variable name if its value is null
64.
A company wants a recruiting app that models candidates and interviews; displays
the total number of interviews oneach candidate record; and defines security on
interview records that is independent from the security on candidaterecords.What
would a developer do to accomplish this task?Choose 2 answers.
Discuss
o A.
Create a trigger on the Interview object that updates a field on the Candidate object
o B.
Create a roll-up summary field on the Candidate object that counts Interview records.
o C.
o D.
65.
Discuss
o A.
o B.
o C.
o D.
66.
How many times does 'str' is added to the list? List<String> strLst = new
List<String>(); for(Integer i=0;i<99;i++) { strLst.add('str'+i);} strLst.add('str'+'100');
Discuss
o A.
101
o B.
102
o C.
100
o D.
67.
Discuss
o A.
o B.
o C.
o D.
68.
Discuss
o A.
o B.
o C.
o D.
Using a <*link*> tag
69.
Discuss
o A.
o B.
o C.
o D.
70.
Discuss
o A.
o B.
o C.
o D.
Discuss
o A.
o B.
o C.
o D.
72.
A developer writes a SOQL query to find child records for a specific parent.How
many levels can be returned in a single query?
Discuss
o A.
o B.
o C.
o D.
73.
Where would a developer build a managed package?
Discuss
o A.
o B.
Developer Edition
o C.
Unlimited Edition
o D.
Developer Sandbox
74.
A developer creates an Apex helper class to handle complex trigger logic.How can
the helper class warn users when the trigger exceeds DML governor limits?
Discuss
o A.
By using Limits.getDMLRows() and then displaying an error message before the number
of DML statements is exceeded.
o B.
o C.
o D.
By using Messaging.SendEmail() to continue the transaction and send an alert to the user
after the number of DML statements is exceeded.
75.
What is a capability of formula fields?Choose 3 answers
Discuss
o A.
o B.
o C.
Display the previous value for a field using the PRIORVALUE funtion
o D.
Return and display a field value from another object using the VLOOKUP function
o E.
Generate a link using the HIPERLINK function to a specific record in a legacy system
76.
A developer needs to ensure there is sufficient test coverage for an Apex method
that interacts with Accounts. Thedeveloper needs to create test data.What is the
preferred way to load this test data into Salesforce?
Discuss
o A.
By using WebServiceTests
o B.
By using Documents
o C.
o D.
By using HttpCalloutMocks
77.
A developer wants to list all of the Tasks for each Account on the Account detail
page.When a Task is created for a Contact, what does the developer need to do to
display the Task on the related Accountrecord?
Discuss
o A.
o B.
o C.
o D.
78.
Discuss
o A.
o B.
o C.
o D.
Discuss
o A.
Create a lookup relationship in the Applications custom object to the Job Postings custom
object
o B.
Create a master-detail relationship in the Application custom object to the Job Postings
custom object.
o C.
Create a lookup relationship on both objects to a junction object called Job Posting
Applications.
o D.
Create a master-detail relationship in the Job Postings custom object to the Applications
custom object.
80.
A developer needs to create a Visualforce page that will override the Standard
Account edit button. The page will beused to validate the account´s address using
a SOQL query. The page will also allow the user to make edits to
theaddress.Where would the developer write the Account address verification
logic?
Discuss
o A.
In a Controller Extension
o B.
In a Standard Extension
o C.
In a Custom Controller
o D.
In a Standard Controller
81.
Discuss
o A.
o B.
o C.
o D.
82.
Which statement would a developer use when creating test data for products and
pricebooks?
Discuss
o A.
o B.
IsTest(SeeAllData=false)
o C.
Id pricebookId = Test.getStandardPricebookId();
o D.
83.
Discuss
o A.
Workflow alerts
o B.
Page layouts
o C.
Lookup filters
o D.
Validation rules
o E.
Exception handling
84.
A visualforce page has a standard controller for an object that has a lookup
relationship to a parent object.How can a developer display data from the parent
record on the page?
Discuss
o A.
By using merge field syntax to retrieve data from the parent record
o B.
By adding a second standard controller to the page for the parent record
o C.
By using SOQL on the Visualforce page to query for data from the parent record
o D.
By using a roll-up formula field on the child record to include data from the parent record
85.
o A.
o B.
o C.
Developer Console
o D.
86.
Discuss
o A.
{!$Setup.Url_Settings__c[$Profile.Id].URL__c}
o B.
{!$Setup.Url_Settings_c.Instance[Profile.Id].URL__c}
o C.
{!$Setup.Url_Settings__c[Profile.Id].URL__c}
o D.
{!$Setup.Url_Settings__c.URL__c}
87.
Discuss
o A.
Governor limits prevent tenants from impacting performance in multiple orgs on the same
instance
o B.
Unique domain names take the place of namespace for code developed for multiple orgs
on multiple instances.
o C.
Org-wide data security determines whether other tenants can see data in multiple orgs on
the same instance.
o D.
Polyglot persistence provides support for a global, multilingual user base in multiple orgs in
multiple instances
88.
Discuss
o A.
o B.
o C.
A contact initialized to null
o D.
89.
A developer creates an Apex class that includes private methods.What can the
developer do to ensure that the private methods can be accessed by the test
class?
Discuss
o A.
o B.
o C.
o D.
90.
Discuss
o A.
o B.
o C.
91.
Which user can edit a record after it has been loocked for approval?Choose 2
answers
Discuss
o A.
o B.
An administrator
o C.
o D.
92.
A developer has a block of code that omits any statements that indicate whether
the code block should execute with orwithout sharing.What will automatically obey
the organization-wide defaults and sharing settings for the user who executes the
code inthe Salesforce organization?
Discuss
o A.
HTTP Callouts
o B.
Anonymous Blocks
o C.
Apex Controllers
o D.
Apex Triggers
93.
Discuss
o A.
o B.
o C.
o D.
94.
A developer needs to provide a Visualforce page that lets users enter Product
specific details during a Sales cycle.How can this be accomplished?Choose 2
answers
Discuss
o A.
Copy the standard page and then make a new Visualforce page for Product data entry.
o B.
o C.
Create a new Visualforce page and an Apex controller to provide data entry.
o D.
Download a Managed Package from the AppExchange that provides a custom Visualforce
page to modify.
95.
Discuss
o A.
Namespace
o B.
Debug Statement
o C.
Time
o D.
Exception
96.
Discuss
o A.
o B.
o C.
o D.
Discuss
o A.
Create a junction object to relate many engines to many parts through a lookup
relationship
o B.
o C.
Create a lookup relationship to represent how each part relates to the parent engine
object.
o D.
Create a junction object to relate many engines to many parts through a master-detail
relationship
98.
The Sales Management team hires a new intern. The intern is not allowed to view
Opportunities, but needs to see theMost Recent Closed Date of all child
Opportunities when viewing an Account record.What would a developer do to
meet this requirement?
Discuss
o A.
Create a Workflow Rule on the Opportunity object that updates a field on the parent
Account.
o B.
Create a formula field on the Account object that performs a MAX on the Opportunity
Close Date field.
o C.
Create a trigger on the Account object that queries the Close Date of the most recent
Opportunities.
o D.
Create a roll-up summary field on the Account object that performs a MAX on the
Opportunity Close Date field.
99.
Discuss
o A.
List contacts = [select id, salutation, firstname, lastname, email from Contact where
accountId = :a.Id]
o B.
If(o.accountid = a.id)
o C.
Update contactList
o D.
100.
Which data type or collection of data types can SOQL statements populate or
evaluate to?Choose 3 answers
Discuss
o A.
An Integer
o B.
A single sObject
o C.
A Boolean
o D.
A string
o E.
A list of sObjects
101.
Which trigger event allows a developer to update fields in the Trigger.new list
without using an additional DMLstatement?Choose 2 answers
Discuss
o A.
After insert
o B.
Before insert
o C.
After update
o D.
Before update
102.
o A.
Query for test data using SeeAllData= true. Execute runAllTests(). Verify that the results
are correct.
o B.
Create data for testing. Execute runAllTests(). Verify that the results are correct.
o C.
Create data for testing. Call the method being tested. Verify that the results are correct.
o D.
Query for test data using SeeAllData= true. Call the method being tested. Verify that the
results are correct.
103.
Where can custom roll-up summary fields be created using Standard Object
relationships?Choose 3 answers
Discuss
o A.
o B.
o C.
o D.
o E.
104.
Which code block returns the ListView of an Account object using the following
debug statement?System.debug(Controller.getListViewOptions());
Discuss
o A.
o B.
ApexPages.StandardController controller = new
ApexPages.StandardController(Database.getQueryLocator('select Id from Account Limit
1'));
o C.
o D.
105.
Discuss
o A.
By querying CustomObject__share
o B.
o C.
o D.
106.
When the value of a field in an account record is updated, which method will
update the value of a custom field in allrelated opportunities?Choose 2 answers.
Discuss
o A.
o C.
o D.
An Apex trigger on the Account object.
107 (New).
o A.
o B.
o C.
o D.
108 (New)
What is a capability of the Force.com IDE? Choose 2 answers
o A.
o B.
o C.
o D.
109 (New)
o A.
The Filters link by the monitored user's name within the web Ui.
o B.
o C.
o D.
110 (New)
String x = 'A';
Integer i = 10;
if(i< 15 ){
i = 15;
x = 'B';
else
if < 20 ){
x = 'C';
else {
x = 'D';
o A.
o B.
o C.
o D.
111 (New)
try
List<String> nameList;
Account a;
String s = a.Name;
nameList.add( s );
catch ( ListException le )
System.debug('List Exception');
System.debug('NullPointer Exception');
catch ( Exception e )
System.debug('Generic Exception');
o A.
No message is logged
o B.
Generic Exception
o C.
List Exception
o D.
NullPointer Exception