Test
Salesforce Certified Platform Developer I (1-85)
Este test tiene tiempo límite, así que se abre en el reproductor de siempre.
Preguntas del test (85)
1Why would a developer use Test. startTest( ) and Test.stopTest( )?
- ATo avoid Apex code coverage requirements for the code between these lines
- BTo start and stop anonymous block execution when executing anonymous
- CTo indicate test code so that it does not Impact Apex line count governor limits.
- DTo create an additional set of governor limits during the execution of a single test class.
2What must the Controller for a Visualforce page utilize to override the Standard Opportunity view button?
- AThe StandardSetController to support related lists for pagination.
- Bthe Opportunity StandardController for pre -built functionality.
- CA callback constructor to reference the StandardController.
- DA constructor that intrializes a private Opportunity variable.
3A 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:
Line-01: for (Lead l : Trigger.new){
Line-02: if (l.PostalCode != null) {
Line-03: List<Territory__c> terrList = [SELECT Id FROM Territory__c WHERE PostalCode__c = :l.PostalCode];
Line-04: if(terrList.size() > 0)
Line-05: l.Territory__c = terrList[0].Id;
Line-06: }
Line-07: }
Which line of code is causing the code block to fail?- ALine-03: A SOQL query is located inside of the for loop code.
- BLine-01: Trigger:new is not valid in a before insert Trigger.
- CLine-02: A NullPointer exception is thrown if PostalCode is null.
- DLine-05: The Lead in a before insert trigger cannot be updated.
4What would a developer do to update a picklist field on related Opportunity records when a modification to the associated Account record is detected?
- ACreate a process with Process Builder.
- BCreate a workflow rule with a field update.
- CCreate a Lightning Component.
- DCreate a Visualforce page.
5Which requirement needs to be implemented by using standard workflow instead of Process Builder?
Choose 2 answers- ASend an outbound message without Apex code.
- BCreate activities at multiple intervals.
- CCopy an account address to its contacts.
- DSubmit a contract for approval.
6An org has different Apex Classes that provide Account -related functionality.
After a new validation rule is added to the object, many of the test methods fail.
What can be done to resolve the failures and reduce the number of code changes needed for future validation rules?
Choose 2 answers:- ACreate a method that creates valid Account records, and call this method from within test methods.
- BCreate a method that loads valid Account records from a Static Resource, and call this method within test methods.
- CCreate a method that performs a callout for a valid Account record, and call this method from within test methods.
- DCreate a method that queries for valid Account records, and call this method from within test methods.
7Which component is available to deploy using Metadata API?
Choose 2 answers- ACase Layout
- BAccount Layout
- CCase Feed Layout
- DConsoleLayout
8In the code below, what type does Boolean inherit from?
Boolean b= true;- AEnum
- BObject
- CString
- DClass
9What is the preferred way to reference web content such as images, style sheets, JavaScript, and other libraries that is used in Visualforce pages?
- ABy accessing the content from Chatter Files.
- BBy uploading the content in the Documents tab.
- CBy accessing the content from a third -party CON.
- DBy uploading the content as a Static Resource.
10A company has a custom object named Warehouse. Each Warehouse record has a distinct record owner, and is related to a parent Account in Salesforce.
Which kind of relationship would a developer use to relate the Account to the Warehouse?- AOne -to -Many
- BLookup
- CMaster -Detail
- DParent -Child
11A developer creates a Workflow Rule declaratively that updates a field on an object. An Apex update trigger exists for that object.
What happens when a user updates a record?- ANo changes are made to the data.
- BBoth the Apex Trigger and Workflow Rule are fired only once.
- CThe Workflow Rule is fired more than once.
- DThe Apex Trigger is fired more than once.
1213. In which order does SalesForce execute events upon saving a record?
- ABefore Triggers; Validation Rules; After Triggers; Assignment Rules; Workflow Rules; Commit
- BValidation Rules; Before Triggers; After Triggers; Workflow Rules; Assignment Rules; Commit
- CBefore Triggers; Validation Rules; ilter Triggers; Workflow Rules; Assignment Rules; Commit
- DValidation Rules; Before Triggers; After Triggers; Assignment Rules; Workflow Rules; Commit
13When loading data into an organization, what can a developer do to match records to update existing records?
Choose 2 answers- AMatch an external Id Text field to a column in the imported file.
- BMatch the Id field to a column in the Imported file.
- CMatch the Name field to a column in the imported file.
- DMatch an auto -generated Number field to a column in the imported file.
14In an organization that has enabled multiple currencies, a developer needs to aggregate the sum of the Estimated_value__c currency field from the CampaignMember object using a roll-up summary field called Total_estimated_value__c on Campaign.
How is the currency of the Total_estimated_value__c roll-up summary field determined?- AThe values in Campaignmember.Estimated_value__c are converted into the currency of the Campaign record and the sum is displayed using the currency on the Campaign record.
- BThe values in CampaignMember.Estimated_value__c are converted into the currency on the majority of the CampaignMember records and the sum is displayed using that currency.
- CThe values in CampaignMember.Estimated_value__c are summed up and the resulting Total_estimated_value__c field is displayed as a numeric field on the Campaign record.
- DThe values In CampaignMember.Estimated_value__c are converted into the currency of the current user, and the sum is displayed using the currency on the Campaign record.
15A candidate may apply to multiple jobs at the company Universal Containers by submitting a single application per job posting, that application cannot be modified to be resubmitted to a different job posting.
What can the administrator do to associate an application with each job posting in the schema for the organization?- ACreate a lookup relationship on both objects to a junction object called Job Posting Applications.
- BCreate a master-detail relationship in the Job Postings custom object to the Applications custom object.
- CCreate a master-detail relationship in the Application custom object to the Job Postings custom object.
- DCreate a lookup relationship in the Applications custom object to the Job Postings custom object.
16What is a characteristic of the Lightning Component Framework?
Choose 2 answers:- AIt has an event-driven architecture.
- BIt works with existing Visualforce pages.
- CIt includes responsive components.
- DIt uses XML as its data format.
17What is a capability of cross-object formula fields?
Choose 3 answers- AFormula fields can reference fields from master-detail or lookup parent relationships.
- BFormula fields can expose data the user does not have access to in a record.
- CFormula fields can be used in three roll-up summaries per object.
- DFormula fields can reference fields in a collect of records from a child relationship.
- EFormula fields can reference fields from objects that are up to 10 relationships away.
18A developer has a block of code that omits any statements that indicate whether the code block should execute with or without sharing.
What will automatically obey the organization-wide defaults and sharing settings for the user who executes the code in the Salesforce organization?- AApex Triggers
- BHTTP Callouts
- CApex Controllers
- DAnonymous Blocks
19A developer created an Apex trigger using the Developer Console and now wants to debug code
How can the developer accomplish this in the Developer Console?- ASelect the Override Log Triggers checkbox for the trigger
- BAdd the user name in the Log Inspector.
- COpen the Progress tab in the Developer Console.
- DOpen the logs tab in the Developer Console.
20Which data structure is returned to a developer when performing a SOSL search?
- AA list of lists of sObjects.
- BA map of sObject types to a list of sObjects
- CA map of sObject types to a list oflists of sobjects
- DA list of sObjects.
21How can a developer avoid exceeding governor limits when using an Apex Trigger?
choose 2 answers- ABy using a helper class that can be invoked from multiple triggers.
- BBy using the Database class to handle DML transactions.
- CBy using Maps to hold data from query results.
- DBy performing DML transactions on lists of SObjects.
22What is a correct pattern to follow when programming in Apex on a Multi-tenant platform?
- AApex code is created in a separate environment from schema to reduce deployment errors.
- BDML is performed on one record at a time to avoid possible data concurrency issues.
- CQueries select the fewest fields and records possible to avoid exceeding governor limits.
- DApex classes use the ''with sharing" keyword to prevent access from other server tenants.
23What should a developer working in a sandbox use to exercise a new test Class before the developer deploys that test production?
Choose 2 answers- AThe REST API and ApexTestRun method
- BThe Apex Test Execution page in Salesforce Setup.
- CThe Test menu in the Developer Console.
- DThe Run Tests page in Salesforce Setup.
24A company that uses a Custom object to track candidates would like to send candidate information automatically to a third -party human resource system when a candidate is hired.
What can a developer do to accomplish this task?- ACreate an escalation rule to the hiring manager.
- BCreate an auto response rule to the candidate.
- CCreate a Process Builder with an outbound message action.
- DCreate a workflow rule with an outbound message action.
25A developer is creating an application to track engines and their parts. An individual part can be used in different types of engines.
What data model should be used to track the data and to prevent orphan records.- ACreate a junction object to relate many engines to many parts though a master -detail relationship.
- BCreate a master -detail relationship to represent the one -to -many model of engines to parts
- CCreate a lookup relationship to represent how each part relates to the parent engine object.
- DCreate a junction object to relate many engines to many parts through a lookup relationship.
26What is the accurate statement about with sharing keyword?
choose 2 answers- AInner class donot inherit the sharing setting from the container class
- BBoth inner and outer class can be declared as with sharing
- CEither inner class or outer classes can be declared as with sharing but not both
- DInner class inherit the sharing setting from the conatiner class
27How can a developer refer to, or instantiate a PageReference in Apex?
Choose 2 answers- ABy using a PageReference with a partial or full URL.
- BBy using the Page object and a Visualforce page name.
- CBy using the ApexPages.Page() method with a Visualforce page name.
- DBy using the PageReference.Page() method with a partial or full URL.
28Which standard field needs to be populated when a developer inserts new Contact records programmatically?
- AAccountld
- BName
- CLastName
- DFirstName
29A developer creates a new Visualforce page and Apex extension, and writes test classes that exercise 95% coverage of the new Apex extension.
Change set deployment to production fails with the test coverage warning: "Average test coverage across all Apex classes and triggers is 74%, at least 75% test coverage is required."
What can the developer do to successfully deploy the new Visualforce page and extension?- ACreate test classes to exercise the Visualforce page markup.
- BSelect "Disable Parallel Apex Testing" to run all the tests.
- CAdd test methods to existing test classes from previous deployments.
- DSelect "Fast Deployment'' to bypass running all the tests.
30What is the minimum log level needed to see user generated debug statements?
- ADEBUG
- BFINE
- CINFO
- DWARN
31Developer needs to automatically populate the ReportsTo field in a Contact record based on the values of the related Account and Department fields in the Contact record.
Which type of trigger would the developer create?
Choose 2 answers- Abefore update
- Bafter insert
- Cbefore insert
- Dafter update
32To which primitive data type in Apex is a currency field atomically assigned?
- AInteger
- BDecimal
- CDouble
- DCurrency
33Which resource can be included in a Lightning Component bundle?
Choose 2 answers- AApex class
- BAdobe Flash
- CJavaScript
- DDocumentation
34A custom exception "RecordNotFoundException" is defined by the following code of block.
public class RecordNotFoundException extends Exception()
which statement can a developer use to throw a custom exception?
choose 2 answers- Athrow new RecordNotFoundException("problem occured");
- Bthrow new RecordNotFoundException();
- Cthrow RecordNotFoundException("problem occured");
- Dthrow RecordNotFoundException();
35When creating unit tests in Apex, which statement is accurate?
- AUnit tests with multiple methods result in all methods failing every time one method fails.
- BIncreased test coverage requires large test classes with many lines of code in one method.
- CTriggers do not require any unit tests in order to deploy them from sandbox to production.
- DSystem Assert statements that do not Increase code coverage contribute important feedback in unit tests
36public class customController {
public string cString { get; set;}
public string getStringMethod1(){
return cString;
}
public string getStringMethod2(){
if(cString == null)
cString = 'Method2';
return cString;
}
}
<apex:page controller="customController">
{!cString}, {!StringMethod1}, {!StringMethod2}, {!cString}
</apex:page>
What does the user see when accessing the custom page?- AgetMyString,
- B, , Method2,
- CMethod2, getMyString
- DgetMyString„ Method2, getMyString
37What is a valid Apex statement?
- AMap conMap = (SELECT Name FROM Contact);
- BAccount[] acctList = new List<Account>{new Account()}
- CInteger w, x, y = 123, z = 'abc',
- Dprivate static constant Double rate = 775;
38A developer has a single custom controller class that works with a Visualforce Wizard to support creating and editing multiple sObjects. The wizard accepts data from user inputs across multiple Visualforce pages and from a parameter on the initial URL
Which statement is unnecessary inside the unit test for the custom controller?- Apublic ExtendedController (ApexPages.StandardController cntrl) { }
- BApexPages.currentPage().getParameters().put('input', 'TestValue')
- CTest.setCurrentPage(pageRef),
- DString nextPage = controller.save().getUrl();
39A developer wants to display all of the available record types for a Case object. The developer also wants to display the picklist values for the Case.Status field. The Case object and the Case Status field are on a custom visualforce page.
Which action can the developer perform to get the record types and picklist values in the controller?
Choose 2 answers- AUse Schema.PIcklistEntry returned by Case Status getDescribe().getPicklistValues().
- BUse Schema.RecordTypeinfo returned by Case.SObjectType getDescribe().getRecordTypelnfos()
- CUse SOQL to query Case records in the org to get all the RecordType values available for Case.
- DUse SOQL to query Case records in the org to get all value for the Status picklist field.
40What is true for a partial sandbox that is not true for a full sandbox?
Choose 2 answers:- AMore frequent refreshes.
- BOnly Includes necessary metadata.
- CUse of change sets.
- DLimited to 5 GB of data.
41An sObject named Application_c has a lookup relationship to another sObject named Position_c. Both Application _c and Position_c have a picklist field named Status_c.
When the Status_c field on Position_c is updated, the Status_c field on Application_c needs to be populated automatically with the same value, and execute a workflow rule on Application_c.
How can a developer accomplish this?- ABy changing Application_c.Status_c into a roll -up summary field.
- BBy changing Application_c.Status_c into a formula field
- CBy using an Apex trigger with a DML operation
- DBy configuring a cross-object field update with a workflow.
42A developer wrote a workflow email alert on case creation so that an email is sent to the case owner manager when a case is created?
- ABefore Trigger execution
- BAfter Committing to database.
- CBefore Committing to database
- DAfter Trigger execution.
43Which code represents the Controller in MVC architecture on the Force.com platform.
Choose 2 answers- AJavaScript that is used to make a menu item display itself.
- BStandardController system methods that are referenced by Visualforce.
- CCustom Apex and JavaScript code that is used to manipulate data.
- DA static resource that contains CSS and Images.
44A 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- ADownload a Managed Package from the AppExchange that provides a custom Visualforce page to modify.
- BCreate a new Visualforce page and an Apex controller to provide Product data entry.
- CCopy the standard page and then make a Visualforce page for product data entry.
- DDownload an Unmanaged Package from the AppExchange that provides a custom Visualforce page to modify.
45A developer writes a before insert trigger.
How can the developer access the incoming records in the trigger body?- ABy accessing the Trigger.new context variable.
- BBy accessing the Trigger.newRecords context variable.
- CBy accessing the Trigger.newMap context variable.
- DBy accessing the Tripper.newList context variable.
46A developer in a Salesforce org with 100 Accounts executes the following code using the Developer console:
Account myAccount = new Account(Name = 'MyAccount');
Insert myAccount;
For (Integer x = 0; x < 250; x++)
Account newAccount = new Account (Name='MyAccount' + x);
try {
Insert newAccount;
}
catch (Exception ex) {
System.debug (ex) ;
}
insert new Account (Name='myAccount');
How many accounts are in the org after this code is run?- A101
- B100
- C102
- D252
47The Review_c object have a lookup relationship to the job_Application_c object. The job_Application_c object has a master detail relationship up to the position_c object. The relationship is based on the auto populated defaults?
What is the recommended way to display field data from the related Review _C records a Visualforce page for a single Position_c record?
Select one of the following:- AUtilize the Standard Controller for Position_c and cross-object Formula Fields on the Job_Application_c object to display Review_c data.
- BUtilize the Standard Controller for Position_c and a Controller Extension to query for Review_c data.
- CUtilize the Standard Controller for Position_c and expression syntax in the Page to display related Review_c through the Job_Applicacion_c inject.
- DUtilize the Standard Controller for Position_c and cross-object Formula Fields on the Review_c object to display Review_c data.
48What is a capability of the Force.com IDE?
Choose 2 answers- ARoll back deployments.
- BRun Apex tests.
- CDownload debug logs.
- DEdit metadata components.
49Which code segment can be used to control when the dowork() method is called?
- Afor (Trigger.isRunning t: Trigger.new)
{
dowork();
} - Bif(Trigger.isRunning)
dowork(); - Cfor (Trigger.isInsert t: Trigger.new)
{
dowork();
} - Dif(Trigger.isInsert)
dowork();
- Afor (Trigger.isRunning t: Trigger.new)
50When would a developer use a custom controller instead of a controller extension?
Choose 2 answers:- AWhen a Visualforce page needs to replace the functionality of a standard controller.
- BWhen a Visualforce page does not reference a single primary object.
- CWhen a Visualforce page should not enforce permissions or field-level security.
- DWhen a Visualforce page needs to add new actions to a standard controller.
51What is a valid statement about Apex classes and interfaces?
Choose 2 answers:- AThe default modifier for a class is private.
- BException classes must end with the word exception.
- CA class can have multiple levels of inner classes.
- DThe default modifier for an interface is private.
52A developer has the following trigger that fires after insert and creates 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?- AMultiple child cases are created for each parent case in Trigger.new.
- Bchild case is created for each parent case in Trigger.new.
- CThe trigger enters an infinite loop and eventually fails.
- DThe trigger fails if the Subject field on the parent is blank.
53A Developer wants to create a custom object to track Customer Invoices.
How should Invoices and Accounts be related to ensure that all Invoices are visible to everyone with access to Account?- AThe Account should have a Lookup relationship to the Invoice.
- BThe Invoice should have a Master -Detail relationship to the Account.
- CThe Account should have a Master -Detail relationship to the Invoice.
- DThe Invoice should have a Lookup relationship to the Account.
54What is a valid source and destination pair that can send or receive change sets?
Choose 2 answers:- ASandbox to production.
- BDeveloper edition to sandbox.
- CDeveloper edition to production.
- DSandbox to sandbox.
55A developer needs to create records for the object Property__c .The developer creates the following code block:
01 List<Property__c> propertiesToCreate =helperClass.CreateProperties();
02 try {
03
04 } catch (Exception exp) {
05 //Exception handling
06 }
Which line of code would the developer insert at line 03 to ensure that at least some records are created, even if a record have errors and fails to be created?- ADatabase.insert(propertiesToCreate, System.ALLOW_PARTIAL);
- Binsert propertiesToCreate,
- CDatabase.insert(propertiesToCreate, false);
- DDatabase.insert(propertiesToCreate)
56When the number of record in a recordset is unknown, which control statement should a developer use to implement a set of code that executes for every record in the recordset, without performing a .size() or .length() method call?
- AFor (init_stmt, exit_condition; increment_stmt) { }
- BDo { } While (Condition)
- CFor (variable : list_or_set) { }
- DWhile (Condition) { ... }
57What is the result when a Visualforce page calls an Apex controller, which calls another Apex class, which then results in hitting a governor limit?
- AAny changes up to the error are saved.
- BAny changes up to the error are rolled back.
- CAll changes before a savepoint are saved.
- DAll changes are saved in the first Apex class.
58A 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 * XXXXXXXXXXX;
}
To calculate the productTax, which code segment would a developer insert at the XXXXXXXXXXX to make the value the class variable SalesTax accessible within the trigger?- ASalesTax
- BPayTax.SalesTax
- CPaymentTax.SalesTax
- DOpportunityLineItemTngger.SalesTax
59On a Visualforce page with a custom controller, how should a developer retrieve a record by using an ID that is passed on the URL?
- AUse the constructor method for the controller.
- BUse the $Action.View method in the Visualforce page.
- CCreate a new PageReference object with the Id.
- DUse the <apex:detail> tag in the Visualforce page.
60A developer wrote a workflow email alert on case creation so that an email is sent to the case owner manager when a case is created.
When will the email be sent?- AAfter Committing to database.
- BBefore Committing to database. Calculator
- CBefore Trigger execution.
- DAfter Trigger execution.
61A 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?- ABy using ApexMessage.Message() to display an error message after the number of DML statements is exce€
- BBy using Messaging.SendEmail() to continue the transaction and send an alert to the user after the number umL statements is exceed.
- CBy using PageReference.setRedirect() to redirect the user to a custom Visualforce page before the number DML statements is exceeded.
- DBy using Limits.getDMLRows() and then displaying an error message before the number of DML statements exceeded.
62Which user can edit a record after it has been locked for approval?
Choose 2 answers- AAn administrator.
- BAny user who approved the record previously.
- CA user who is assigned as the current approver.
- DAny user- with a higher role in the hierarchy.
63Which type of information is provided by the Checkpoints tab in the Developer Console?
Choose 2 answers- AException
- BDebug Statement
- CNamespace
- DTime
64What is the proper process for an Apex Unit Test?
- AQuery for test datapsing SeeAllData=true. Call the method being tested. Verify that the results are correct
- BCreate data for testing. Execute runAllTests(). Verify that the results are correct.
- CCreate data for testing. Call the method being tested. Verify that the results are correct.
- DQuery for test data using SeeAllData=true. Execute runAllTests(). Verify that the results are correct.
65Which declarative method helps ensure quality data?
Choose 3 answers- AException handling
- BWorkflow alerts
- CValidation rules
- DLookup filters
- EPage layouts
66What is an accurate constructor for a custom controller named "MyController"?
- Apublic MyController() {
account = new Account();
} - Bpublic MyController(SObject obj) {
account = (Account) obj;
} - Cpublic MyController(List<SObject> objects) {
accounts = (List<Account>)objects;
} - Dpublic MyController(ApexPages.StandardController stdController) {
account = (Account)stdController.getRecord();
}
- Apublic MyController() {
67A company wants a recruiting app that models candidates and interviews; displays the total number of interviews each candidate record; and defines security on interview records that is independent from the security on candidate records.
What would a developer do to accomplish this task?
Choose 2 answers- ACreate a roll -up summary field on the Candidate object that counts Interview records.
- BCreate a master -detail relationship between the Candidate and Interview objects.
- CCreate a lookup relationship between the Candidate and Interview objects.
- DCreate a trigger on the Interview object that updates a field on the Candidate object.
68What is a good practice for a developer to follow when writing a trigger?
Choose 2 answers- Ausing the Map data structure to hold query results by ID.
- BUsing @future methods to perform DML operations.
- CUsing the set data structure to ensure distinct records.
- DUsing synchronous callouts to call external systems.
69Which code block returns the ListView of an Account object using the following debug statement?
system. debug (controller. getListViewOptions ( ) ) ;- AApexPages.StandardSetController controller = new
ApexPages.StandardSetController([SELECT Id FROM Account LIMIT 1]); - BApexPages.StandardController controller = new
ApexPages.StandardController(Database.getQueryLocator('select Id from Account Limit 1'); - CApexPages.StandardController controller = new
ApexPages StandardController ( [SELECT Id FROM Account LIMIT 1)); - DApexPages.StandardSetController controller = new
ApexPages.StandardSetController(Database.getQueryLocator('select Id from Account Limit 1');
- AApexPages.StandardSetController controller = new
70Which data type or collection of data types can SOQL statements populate or evaluate to?
Choose 3 answers- AA Boolean
- BAn integer
- CA list of sObjects
- DA single sObject
- EA string
71Which action can a developer perform in a before update trigger?
Choose 2 answers- AUpdate the original object using an update DML operation.
- BDelete the original object using a delete DML operation.
- CChange field values using the Trigger.new context variable.
- DDisplay a custom error message in the application interface.
72Where can debug log filter settings be set?
Choose 2 answers- AThe Filters link by the monitored user's name within the web UI.
- BThe Show More link on the debug log's record.
- COn the monitored user's name.
- DThe Log Filters tab on a class or trigger detail page.
7373. What is the value of x after the code segment executes?
String x = 'A';
Integer i = 10;
if(i< 15 ){
i = 15;
x = 'B';
else if (i < 20 ){
x = 'C';
}
else {
x = 'D';
}- AB
- BC
- CD
- DA
74When can a developer use a custom Visualforce page in a Force.com application?
Choose 2 answers- ATo create components for dashboards and layouts.
- BTo deploy components between two organizations.
- CTo generate a PDF document with application data.
- DTo modify the page layout settings for a custom object.
75Which statement about the Lookup Relationship between a Custom Object and a Standard Object is correct?
- AThe Lookup Relationship on the Custom Object can prevent the deletion of the Standard Object.
- BThe Lookup Relationship cannot be marked as required on the page layout for the Custom Object.
- CThe Custom Object will be deleted when the referenced Standard Object is deleted.
- DThe Custom Object inherits security from the referenced Standard Objects.
76A reviewer is required to enter a reason in the comments field only when a candidate is recommended to be hired.
Which action can a developer take to enforce this requirement?- ACreate a required comments field.
- BCreate a formula field.
- CCreate a validation rule.
- DCreate a required Visualforce component.
77The Sales Management team hires a new intern. The intern is not allowed to view Opportunities, but needs to see the Most Recent Closed Date of all child Opportunities when viewing an Account record.
What would a developer do to meet this requirement?- ACreate a Workflow Rule on the Opportunity object that updates a field on the parent Account.
- BCreate a formula field on the Account object that performs a MAX on the Opportunity Close Date field.
- CCreate a roll-up summary field on the Account object that performs a MAX on the Opportunity Close Date field
- DCreate a trigger on the Account object that queries the Close Date of the most recent Opportunities.
78On which object can an administrator create a roll-up summary field?
- AAny object that is on the master side of a master-detail relationship.
- BAny object that is on the parent side of a lookup relationship.
- CAny object that is on the detail side of a master-detail relationship.
- DAny object that is on the child side of a lookup relationship.
79A 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?- ABy using SOQL on the Visualforce page to query for data from the parent record.
- BBy using merge field syntax to retrieve data from the parent record.
- CBy adding a second standard controller to the page for the parent record.
- DBy using a roll-up formula field on the child record to include data from the parent record.
80A developer needs to create a Visualforce page that will override standard Account edit button. The page will be used to validate the account's address using a SOQL query. The page will also allow the user to make edits to the address.
Where would the developer write the Account address verification logic?- AIn a Controller Extension.
- BIn a Custom Controller.
- CIn a Standard Controller.
- DIn a Standard Extension.
81What is a capability of a StandardSetController?
Choose 2 answers- AIt extends the functionality of a standard or custom controller
- BIt allows pages to perform mass updates of records.
- CIt allows pages to perform pagination with large record sets.
- DIt enforces field -level security when reading large record sets.
82A developer has the following code.
try
{
List<String> nameList;
Account a;
String s = a.Name;
nameList.add(s);
}
catch (ListException le)
{
System.debug('List Exception');
}
catch (NullPointerException npe)
{
System.debug('NullPointer Exception');
}
catch (Exception e)
{
System.debug('Generic Exception');
}
What message would be logged?- ANo message is logged
- BGeneric Exception
- CList Exception
- DNullPointer Exception
83A 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 Account record?
- ACreate an Account formula field that displays the Task information.
- BNothing. The Task is automatically displayed on the Account page.
- CCreate a Workflow Rule to relate the Task to the Contact's Account.
- DNothing. The Task cannot be related to an Account and a Contact.
84Which statement about change set deployments is accurate?
Choose 3 answers- AThey can be used only between related organizations.
- BThey require a deployment connection.
- CThey use an all or none deployment model.
- DThey can be used to transfer Contact records.
- EThey can be used to deploy custom settings data.
85How would a developer use Schema Builder to delete a custom field from the Account object that was required for prototyping but is no longer needed?
- ARemove all the references In the code and then the field will be removed from Schema Builder.
- BRemove all references from the code and then delete the custom field from Schema Builder.
- CMark the field for deletion in Schema Builder and then delete it from the declarative UI.
- DDelete the field from Schema Builder and then all references in the code will be removed.
Información
- Descripción
- Test sobre Salesforce Certified Platform Developer I (1-85), creado por Marco Calisti el 11/04/2017.
- Autor
- Marco Calisti
- Idioma
- English
- Visitas
- 3.484
- Etiquetas
- Valoración
- 3,0 de 5 · 1 valoración Valora este test