Question: 1
What is a best practice when unit testing a controller? Choose 2 answers
Question: 2
Given the following code, what value Will be output in the logs by line #8? 1 Contact con = new Contact( LastName ='Smith', Department = 'Admin') 2 insert con; 3 Contact insertedContact=[select Name from Contact where id=zcon.Id]; 4 Savepoint sp_admin = Database.setSavepoint(); 5 con.Department = 'HR'; D} 6 update con; 7 Database.rollback(sp_admin); 8 console.log(Limits.getDmlStatements());
Question: 3
What is a recommended practice with regard to the Apex CPU limit? Choose 2 answers
Question: 4
A developer wants to create a Visualforce page that allows a user to search for a given account by Name. If the account is found, the account details should be populated on screen. If no account is found, an error message should be displayed to the user. How can this be accomplished? Choose 2 answers
Question: 5
A developer has built a multi-page wizard using a single Custom Controller to query and update dat
a. Users are complaining that the pages are loading slowly. What will improve performance? Choose 3 answers