CRT-450 Exam Question 56
Which action can a developer take to reduce the execution time of the following code? List<account> allaccounts = [select id from account]; list<account> allcontacts = [select id, accountid from contact]; for (account a :allaccounts){ for (contact c:allcontacts){ if(c.accountid = a.id){ //do work }
} }
} }
CRT-450 Exam Question 57
Given the code below, which three statements can be used to create the controller variable? Public class accountlistcontroller{ public list<account>getaccounts(){ return controller.getrecords(); } } Choose 3 answers
CRT-450 Exam Question 58
When can a developer use a custom Visualforce page in a Force.com application? (Choose 2)
CRT-450 Exam Question 59
A developer created a Visualforce page with a custom controller to show a list of accounts. The page uses the
<apex:SelecList> component, with a variable called "selection", to show the valid values for Account.Type.
The page uses an <apex:pageBlockTable> component to display the list of accounts, where the iteration variable is "acct". The developer wants to ensure that when a user selects a type on the <apex : selectList> component, only accounts with that type are shown on the page. What should the developer do to accomplish this?
<apex:SelecList> component, with a variable called "selection", to show the valid values for Account.Type.
The page uses an <apex:pageBlockTable> component to display the list of accounts, where the iteration variable is "acct". The developer wants to ensure that when a user selects a type on the <apex : selectList> component, only accounts with that type are shown on the page. What should the developer do to accomplish this?
CRT-450 Exam Question 60
What are three ways for a developer to execute tests in an org? Choose 3.
