What is a capability of the Force.com IDE? Choose 2 answers
A. Roll back deployments.
B. Run Apex tests.
C. Download debug logs.
D. Edit metadata components.
Which code segment can be used to control when the dowork() method is called?
A. For (Trigger.isRunning t: Trigger.new) { dowork(); }
B. If(Trigger.isRunning) dowork();
C. For (Trigger.isInsert t: Trigger.new) { dowork(); }
D. If(Trigger.isInsert) dowork();
When would a developer use a custom controller instead of a controller extension?
A. When a Visualforce page needs to replace the functionality of a standard controller
B. When a Visualforce page does not reference a single primary object
C. When a Visualforce page should not enforce permissions or field-level security
D. When a Visualforce page needs to add new actions to a standard controller
What is a valid statement about Apex classes and interfaces? Choose 2 answers:
A. The default modifier for a class is private.
B. Exception classes must end with the word exception.
C. A class can have multiple levels of inner classes.
D. The default modifier for an interface is private.
The 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:
A. Utilize the Standard Controller for Position_c and cross-object Formula Fields on the Job_Application_c object to display Review_c data.
B. Utilize the Standard Controller for Position_c and a Controller Extension to query for Review_c data.
C. Utilize the Standard Controller for Position_c and expression syntax in the Page to display related Review_c through the Job_Applicacion_c inject.
D. Utilize the Standard Controller for Position_c and cross-object Formula Fields on the Review_c object to display Review_c data.
A 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?
A. 101
B. 100
C. 102
D. 252
An 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?
A. By changing Application_c.Status_c into a roll -up summary field.
B. By changing Application_c.Status_c into a formula field.
C. By using an Apex trigger with a DML operation.
D. By configuring a cross-object field update with a workflow.
A developer writes a before insert trigger.How can the developer access the incoming records in the trigger body?
A. By accessing the Trigger.new context variable.
B. By accessing the Trigger.newRecords context variable.
C. By accessing the Trigger.newMap context variable.
D. By accessing the Tripper.newList context variable.
A 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
A. Use Schema.PicklistEntry returned by Case Status getDescribe().getPicklistValues().
B. Use Schema.RecordTypeinfo returned by Case.SObjectType getDescribe().getRecordTypelnfos()
C. Use SOQL to query Case records in the org to get all the RecordType values available for Case.
D. Use SOQL to query Case records in the org to get all value for the Status picklist field.
What is a valid Apex statement?
A. Map conMap = (SELECT Name FROM Contact);
B. Account[] acctList = new List{new Account()}
C. Integer w, x, y = 123, z = 'abc',
D. Private static constant Double rate = 775;
Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only Salesforce exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your PDI exam preparations and Salesforce certification application, do not hesitate to visit our Vcedump.com to find your solutions here.