GoConqr has a new look! Let us know what you think.

Quiz

Salesforce Develop Exam 1 (1-25)

Sean Kuo 25 questions

Take the quiz

Questions in this quiz (25)

  1. 1What is the result when a Visualforce page calls an APEX controller, which calls another Apex class, which then results in hitting a governor limit?
    1. AAny changes up to the error are saved
    2. BAll changes are saved in the first Apex class
    3. CAny changes up to the error are rolled back
    4. DAll changes before a savepoint are saved
  2. 2A developer created an Apex trigger using the Developer Console and now wants to debug code.
    How can the developer accomplish this in the Developer Console?
    1. AOpen de Logs tab in the Developer Console
    2. BOpen the Progress tab in the Developer Console
    3. CAdd the user name in the Log Inspector
    4. DSelect the Override Logs Triggers checkbox for the trigger
  3. 3Which data structure is returned to a developer when performing a SOSL search?
    1. AA map of sObjects types to a list of lists of sObjects
    2. BA list of lists of sObjects
    3. CA map of sObjects types to a list of sObjects
    4. DA list of sObjects
  4. 4A developer creates a new Visualforce page and Apex extension, and writes test classes that exercise 95% coverage of the new Apex extension. Change set deployment to production fails with the test coverage warning: “Average test coverage across all Apex classes and triggers is 74%, at least 75% test coverage is required”. What can the developer do to successfully deploy the new Visualforce page and extension?
    1. AAdd the test methods to existing test classes from previous
    2. BCreate test classes to exercise the Visualforce page markup
    3. CSelect “Fast Deployment” to bypass running all the tests
    4. DSelect “Disable Parallel Apex Testing” to run all the tests
  5. 5A developer needs to create records for the object Property__c. The developer creates the following code block: (image)

    Which line of code will the developer insert at line 03 to ensure that at least some records are created, even if a few records have errors and fall to be created?
    Image for question 5
    1. AInsert propertiesToCreate;
    2. BDatabase.Insert(PropertiesToCreate);
    3. CDatabase.insert(propertiesToCreate,false);
    4. DDatabase.Insert(PropertiesToCreate,System.ALLOW_PARTIAL);
  6. 6When creating unit tests in Apex, which statement is accurate?
    1. ATriggers do not require any unit tests in order to deploy them from sandbox to production
    2. BIncreased test coverage requires large test classes with many lines of code in one method
    3. CUnit tests with multiple methods result in all methods failing every time one method fails.
    4. DSystem Assert statements that do not increase code coverage
  7. 7When the number of records in a recordset is unknown, which control statement should a developer use to implement a set of code that executes for every record in the recordset, without performing a .size() or .lenght() method call?
    1. AFor (variable : list_or_set) { … }
    2. BDo { … } While (Condition)
    3. CWhile (Condition) { … }
    4. DFor (init_stmt^ exit_condition^ increment_stmt) { … }
  8. 8A developer has a block of code that omits any statements that indicates whether the code block should execute with or without sharing .
    What will automatically obey the organizationfwide defaults and sharing settings for the user who executes the code in the Salesforce organization?
    1. AHTTP Callouts
    2. BApex Triggers
    3. CAnonymous Blocks
    4. DApex Controllers
  9. 9When would a developer use a custom controller instead of a controller extension? Choose 2 answers
    1. AWhen a Visualforce page does not reference a single primary object
    2. BWhen a Visualforce page needs to replace the functionality of a standard controller
    3. CWhen a Visualforce page needs to add new actions to a standard controller
    4. DWhen a Visualforce page should not enforce permissions or field-level security
  10. 10Which standard field needs to be populated when a developer inserts new Contact records programmatically?
    1. AName
    2. BFirstName
    3. CAccountId
    4. DLastName

Information

Description
Quiz on Salesforce Develop Exam 1 (1-25), created by Sean Kuo on 01/11/2017.
Author
Sean Kuo
Language
English
Views
638
Rating
No ratings yet
Rate this quiz
Rate this quiz

Feedback

What is it about?

What do you think of the new look?

How do you like it?