In order to override a standard action with a visualforce page, which attribute must be defined in the
A. Pagereference
B. Override
C. Standardcontroller
D. Controller
A developer uses a test setup method to create an account named 'test'. The first method deletes the account record. What must be done in the second test method to use the account?
A. Use select id from account where name='test'
B. Restore the account using an undelete statement
C. Call the test setup method at the start of the test
D. The account cannot be used in the second method
What are three techniques that a developer can use to invoke an anonymous block of code? Choose 3 answers
A. Create a visualforce page that uses a controller class that is declared without sharing
B. Type code into the developer console and execute it directly
C. Type code into the execute anonymous tab in the force.com IDE and click execute
D. Use the SOAP API to make a call to execute anonymous code
E. Create and execute a test method that does not specify a runas() call
Which is a valid apex assignment?
A. Integer x=5 * 1,0
B. Integer = 5,0
C. Double x = 5
D. Float x = 5.0
Given the code below, which three statements can be used to create the controller variable? (Choose three.)
A. Apexpages.standardsetcontroller controller=new apexpages.standardsetcontroller(database.getquerylocator('select id from account'));
B. Apexpages.standardcontroller controller= new apexpages.standardcontroller([select id from account]);
C. Apexpages.standardcontroller controller= new apexpages.standardcontroller(database.getquerylocator('select id from account'));
D. Apexpages.standardsetcontroller controller = new apexpages.standardsetcontroller (database.query('select id from account'));
E. Apexpages.standardsetcontroller controller = new apexpages.standardsetcontroller (database.getquerylocator([select id from account]));
A developer created a visualforce page using a custom controller that calls an apex helper class. A method in the helper class hits a governor limit. what is the result of the transaction?
A. The helper class creates a savepoint and continues
B. All changes in the transaction are rolled back
C. All changes made by the custom controller are saved
D. The custom controller calls the helper class method ag
A developer is creating an enhancement to an application that will allow people to be related to their employer. Which data model provides the simplest solution to meet the requirements?
A. Create a lookup realtionship to indicate that a person has an employer
B. Create a master-detail relationship to indicate that a person has an employer
C. Create a junction object to relate many people to many through master-detail relationship
D. Create a junction object to relate many people to many through lookup relationship
What is the data type returned by the following SOSL search?
[FIND ‘Acme*’ IN NAME FIELDS RETURNING Account, Opportunity];
A. List,List
B. Map
C. Map
D. List>
How can a developer get all of the available record types for the current user on the case object?
A. Use SOQL to get all cases
B. Use describesobjectresult of the case object
C. Use case.getrecordtypes()
D. Use describefieldresult of the case.recordtype field
A developer is asked to create a custom visualforce page that will be used as a dashboard component. Which three are valid controller options for this page? Choose 3 answers
A. Use a custom controller
B. Use a custom controller with extensions
C. Use a standard controller with extensions
D. Do not specify a controller
E. Use a standard controller
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.