A developer has the following query: Contact c = [SELECT id, firstname, lastname, email FROM Contact WHERE lastname = 'Smith']; What does the query return if there is no Contact with the last name 'Smith'?
A. A contact initialized to null.
B. An error that no rows are found.
C. An empty List of Contacts.
D. A Contact with empty values.
What is a capability of the Developer Console?
A. Execute Anonymous Apex code, Create/Edit code, view Debug Logs.
B. Execute Anonymous Apex code, Run REST API, create/Edit code.
C. Execute Anonymous Apex code, Create/Edit code, Deploy code changes.
D. Execute Anonymous Apex code, Run REST API, deploy code changes.
What is an accurate statement about variable scope? (Choose 3)
A. Parallel blocks can use the same variable name.
B. A variable can be defined at any point in a block.
C. Sub-blocks cannot reuse a parent block's variable name.
D. Sub-blocks can reuse a parent block's variable name if it's value is null.
E. A static variable can restrict the scope to the current block of its value is null.
Which resource can be included in a Lightning Component bundle? Choose 2 answers
A. Apex class
B. Adobe Flash
C. JavaScript
D. Documentation
How can a developer determine, from the DescribeSObjectResult, if the current user will be able to create records for an object in Apex?
A. By using the isInsertable() method.
B. By using the isCreatable() method.
C. By using the hasAccess() method.
D. By using the canCreate() method.
What is an important consideration when developing in a multi-tenant environment?
A. Governor limits prevent tenants from impacting performance in multiple orgs on the same instance.
B. Unique domain names take the place of namespaces for code developed for multiple orgs on multiple instances.
C. Polyglot persistence provides support for a global, multilingual user base in multiple orgs on multiple instances.
D. Org-wide data security determines whether other tenants can see data in multiple orgs on the same instance.
What is an accurate constructor for a custom controller named "MyController"?
A. public MyController () { account = new Account () ; }
B. public MyController (sObject obj) { account = (Account) obj; }
C. public MyController (List objects) { accounts = (List ) objects; }
D. public MyController (ApexPages.StandardController stdController) { account = (Account) stdController.getRecord(); }
What is a valid source and destination pair that can send or receive change sets? (Choose 2)
A. Developer Edition to Sandbox
B. Sandbox to Production
C. Sandbox to Sandbox
D. Developer Edition to Production
What is a benefit of the lightning component framework?
A. Better integration with Force.com sites
B. Better performance for custom Salesforce1 Mobile Apps
C. More Centralized control via server-side logic
D. More pre-built components to replicate the salesforce look and feel
Which code block returns the ListView of an Account object using the following debug statement? system.debug(controller.getListViewOptions() );
A. ApexPages.StandardSetController controller = new ApexPages.StandardSetController( Database.getQueryLocator( 'SELECT Id FROM Account LIMIT 1'));
B. ApexPages.StandardController controller = new ApexPages.StandardController( [SELECT Id FROM Account LIMIT 1]);
C. ApexPages.StandardController controller = new ApexPages.StandardController( Database.getQueryLocator( 'SELECT Id FROM Account LIMIT 1'));
D. ApexPages.StandardController controller = new ApexPages.StandardController( [SELECT Id FROM
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.