Reference no: EM131095425
1. In a single record, a user selects multiple values from a multi-select picklist? How are the selected values represented in Apex?
a. as a list<string> with each value as a element in the list
b. as a set<string> with each value as a element in the set
c. as a string with each value separated by semicolon;
d. as a string with each value separated by coma
2. How can a developer avoid a exceeding governor limits when using apex trigger?
a. By Performing DML transactions on list of objects
b. By using the database class to handle Dml transations
c. By using a helper classthat can be invoked from multiple triggersd.
d. By using maps to hold data from query results
3. The Sales management team hires a new team, the team is not allowed to view opportunities but need to see the most recent closed date of all child opportunities when viewing a account record.
What would a developer do to meet this requirement.
a. Create a workflow rule on the opportunity object that updates a filed on the parent account.
b. Create a trigger on the account object that query the close date of the most recent opportunities.
c. Create a roll-up summary filed on the account object that performs max on the opportunity close date filed.
d. Create a formula filed on the account object that performs a Max on the opportunity close data filed.
4. when can a developer use a custom vf page in a force.com application?
a. To create components for dashboards and layouts
b. To modify the page layouts for custom object
c. To generate a pdf document with application data
d. To deploy components between two organizations
5. Which statement about change set deployments is accurate?
a. They can be used only between related organizations
b. They can be used to transfer contact records
c. They use an all or none deployment model
d. They require a deployment connection
e. They can be used to deploy custom setting data
6. How would a developer determine if a customobject__c record has been manually shared with the current user in apex?
A. Calling isshared() method
B. By calling profile settings of the current user
C. By query the role hierarchy
D. By query customobject__share
7. What is the capability of standardsetcontroller? Choose
a. It allows pages mass update of records
b. It extends the functionality of a standard or custom controller
c. It allow pages to perform pagination with large record sets
d. It enforces field level security when reading large record sets
8. Which type of code represents the Controller in MVC architecture on the Force.com platform'
A. Custom Apex and JavaScript code that is used to manipulate data.
B. A static resource that contains CSS and images
C. StandardController system methods that are referenced by Visualforce.
D. JavaScnpt that is used to make a menu item display itself
9. A 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 an Account?
A. The Account should have a Lookup relationship to the Invoice.
B. The Account should have a Master-Detail relationship to the Invoice
C. The Invoice should have a Master-Detail relationship to the Account.
D. The Invoice should have a Lookup relationship to the Account
A developer creates an apex helper class to handle complex trigger logic
10. How can the helper class warn users when the trigger exceeds DML governer limits
a. By using apex messages.message() to display an error message after the number of DML statements is exceeded
b. By using limits.getDMLRows() and then displaying an error message before the number of DML statements is exceeded
c. By using messaging.sendemail() to continue the transaction and send an alert to the user after the number of DML statements is exceeded
d. By using Pagerefernce.setredirct() to redirect the user to a custom visualforce page before the number of DML statements is exceeded.
11.What is an important consideration when developing in a multi -tenant environment?
a. Polyglot persistence provides support for global, multilingual user base inmultiple orgs on multiple instances.
b.Unique domain names take the place of namespaces for code developed for multiple orgs on multiple instances.
c. Governor limits prevent tenants from impacting performance in multiple orgson the same instance.
d. Org-wide data security determines whetherother tennats can see data in multiple orgs on the same instance.
12. what is a capability of formula fields?
a. Determine which of three different images to display using the IF function
b. Display the previous value for a field using the priorvalue function
c. Return and display a field value from another object using the vlookup function
d. Generate a link using the hyperlink function to a specific record in a legacy system
e. Determine if a date time field has passed using the now function
13. A Visulaforce page has a standard controller for an object that has a lookup relationship to a parent object. How can a developer display the data from the parent record on the page?
a. by using a rollup summary field on the child record to include data from the parent record.
b. By using merge field sytax to retrieve data from the parent record.
c. By adding a second standard controller to the page for the parent record.
d. By using SOQL on the vf page to query for data from the parent record.
14. which scenario is invalid for execution by unit tests?
A. Loading test data in place of user input for flows
B. Executing methods for negative test scenarios
C. Executing methods as different users
D. Loading the standard pricebook id using a system method
15. What is a good practice for a developer to follow when writing a trigger?
a. using the set data sturucture to ensure distinct records
b. using @future ,methods to perform DML operations
c. Using synchronous callouts to call external systems
d. Using the Map data structures to hold query results by ID.