Platform 1e

40 Questions | Total Attempts: 365

SettingsSettingsSettings
Please wait...
Software Quizzes & Trivia

.


Questions and Answers
  • 1. 
    A developer wants to display all of the available record types for a Case object. The developer also wants to display the picklist values for the Case.Status field. The Case object and the Case.Status field are on a custom Visualforce page. Which action can the developer perform to get the record types and picklist values in the controller? Choose 2 answers 
    • A. 

      Use Schema.PicklistEntry returned by Case.Status.getDescribe().getPicklistValues()

    • B. 

      Use Schema.RecordTypeInfo returned by Case.SObjectType.getDescribe().getRecordTypeInfos()

    • C. 

      Use SOQL to query Case records in the org to get all the RecordType values available for Case

    • D. 

      Use SOQL to query Case records in the org to get all values for the Status picklist field

  • 2. 
    Universal containers has a custom object “service” which has a lookup relationship to Account. Universal containers wants to enhance Salesforce1 with an action that allows account managers to enter a new service to an Account while looking at the account:
    • A. 

      Enter an object specific action to Account and put it in the Account Layout

    • B. 

      Enter an object specific action to Service and put it in the Account Layout

    • C. 

      Enter an object specific action to Service and put it in the Service Layout

    • D. 

      Enter an object specific action to Account and put it in the Service Layout

  • 3. 
    How can a developer avoid exceeding governor limits when using an Apex trigger? Choose 2 answers
    • A. 

      By using a helper class that can be invoked from multiple triggers

    • B. 

      By performing DML transactions on lists of SObjects

    • C. 

      By using the Database class to handle DML transactions

    • D. 

      By using Maps to hold data from query results

  • 4. 
    What can a lightning component contain in its resource bundle? Choose two answers.
    • A. 

      CSS styles scoped to the component.

    • B. 

      Custom Client-side rendering behavior.

    • C. 

      Build scripts for minification.

    • D. 

      Properties files with global settings.

  • 5. 
    Which declarative method helps ensure quality data? Choose 3 answers
    • A. 

      Page layouts

    • B. 

      Lookup filters

    • C. 

      Validation rules

    • D. 

      Workflow alerts

    • E. 

      Exception handling

  • 6. 
    Universal Container want to store an area code and wants to be able to search for it in applications (apex). Which are possible fields to store the data (choose 2):
    • A. 

      Text

    • B. 

      Number

    • C. 

      Phone

    • D. 

      Email

    • E. 

      Multi Picklist

  • 7. 
    Which action can a developer perform in a before update trigger? Choose 2 answers
    • A. 

      Change field values using the Trigger.new context variable

    • B. 

      Update the original object using an update DML operation

    • C. 

      Display a custom error message in the application interface

    • D. 

      Delete the original object using a delete DML operation

  • 8. 
    • A. 

      Loading the standard Pricebook ID using a system method

    • B. 

      Executing methods as different users

    • C. 

      Executing methods for negative test scenarios

    • D. 

      Loading test data in place of user input for Flows

  • 9. 
    What happens when a workflow is re-evaluated? Pick 3
    • A. 

      Previous Workflows

    • B. 

      Cross-object sharing rules

    • C. 

      Other Workflow types

    • D. 

      Validation

  • 10. 
    Describe the ramifications of field updates and potential for recursion for the following scenario: If a field update for Rule1 triggers Rule2, and a field update for Rule2 triggers Rule1.
    • A. 

      The updates create a loop and the org limits for workflow time triggers per hour will likely be violated.

    • B. 

      Loop is allowed to run 25 times within one hour. If it does not end on its own the process will be stopped by R&D.

    • C. 

      The updates create a loop and the org be blocked until the admin resolves the issue

    • D. 

      When the second trigger is saved an Imminent Loop Error message will be displayed and the workflow rule update will not save.

  • 11. 
    A developer creates an Apex helper class to handle complex trigger logic. How can the helper class warn users when the trigger exceeds DML governor limits?
    • A. 

      By using ApexMessage.Message() to display an error message after the number of DML statements is exceeded

    • B. 

      By using PageReference.setRedirect() to redirect the user to a custom Visualforce page before the number of DML statements is exceeded

    • C. 

      By using Limits.getDMLRows() and then displaying an error message before the number of DML statements is exceeded

    • D. 

      By using Messaging.SendEmail() to continue the transaction and send an alert to the user after the number of DML statements is exceeded

  • 12. 
    What is a benefit of a Lightining Component framework?
    • A. 

      Better performance for custom Salesforce1 Mobile apps

    • B. 

      Better integration with Force.com sites

    • C. 

      More pre-built components to replicate the Salesforce look and feel

    • D. 

      More centralized control via server-side logic

  • 13. 
    In which order does Salesforce execute events upon saving a record?
    • A. 

      Validation Rules, Before Triggers, After Triggers, Assignment Rules, Workflow, Commit

    • B. 

      Before Triggers, Validation Rules, After Triggers, Assignment Rules, Workflow, Commit

    • C. 

      Validation Rules, Before Triggers, After Triggers, Workflow, Assignment Rules, Commit

    • D. 

      Before Triggers, Validation Rules, After Triggers, Workflow, Assignment Rules, Commit

  • 14. 
    Developer need to verify that the account trigger is working fine without changing Org data. What should the developer do to test the Account trigger?
    • A. 

      Use the test menu on developer console to run all test classes for the account trigger.

    • B. 

      Use Execute Anonymous feature on developer console

    • C. 

      Use New button on Account tab to create new record

    • D. 

      Use force.com IDE

  • 15. 
    • A. 

      Because roll-up summary fields are not displayed on edit pages, you can use them in validation rules but not as the error location for you validation.

    • B. 

      Validation errors can display when saving either the detail or master record.

    • C. 

      Once created, you cannot change the detail object selected or delete any field referenced in your roll-up summary definition.

    • D. 

      Advanced currency management has no affect on roll-up summary fields.

    • E. 

      Automatically derived fields, such as current date or current user, are allowed in a roll-up summary field.

  • 16. 
    Universal containers want an org for development which can be refreshed in every 5 days with all the configuration and some data. What org do you choose:
    • A. 

      Partial copy sandbox

    • B. 

      Full Sandbox

    • C. 

      Developer Sandbox

    • D. 

      Developer Pro Sandbox

  • 17. 
    Which type of code represents the Controller in the MVC architecture on the Force.com platform? Choose 2 answers"
    • A. 

      StandardController system methods that are referenced by Visualforce

    • B. 

      Custom Apex and JavaScript code that is used to manipulate data

    • C. 

      A static resource that contains CSS and images

    • D. 

      JavaScript that is used to make a menu item display itself

  • 18. 
    A developer needs to know if all tests currently pass in a Salesforce environment. Which feature can the developer use? Choose 2 answers
    • A. 

      Salesforce UI Apex Test Execution

    • B. 

      Developer Console

    • C. 

      Workbench Metadata Retrieval

    • D. 

      ANT Migration Tool

  • 19. 
    What is an accurate statement about variable scope? Choose 3 answers
    • A. 

      Sub-blocks cannot reuse a parent block's variable name

    • B. 

      Parallel blocks can use the same variable name

    • C. 

      A variable can be defined at any point in a block

    • D. 

      Sub-blocks can reuse a parent block's variable name if its value is null

    • E. 

      A static variable can restrict the scope to the current block if its value is null

  • 20. 
    • A. 

      Set

    • B. 

      An Sobject

    • C. 

      List

    • D. 

      Enum

  • 21. 
    A developer creates a method in an Apex class and needs to ensure that errors are handled properly. What would the developer use? Choose 3 answers.
    • A. 

      A custom exception

    • B. 

      AddError()

    • C. 

      A try/catch construct

    • D. 

      ApexPages.addErrorMessage()

    • E. 

      Database.handleException()

  • 22. 
    In the Lightning Component framework, where is client-side controller logic contained?
    • A. 

      JavaScript

    • B. 

      Apex

    • C. 

      Visualforce

    • D. 

      HTML

  • 23. 
    Field type conversion. Which of the following are true: (choose 2):
    • A. 

      Data can be lost when converting from autonumber to text

    • B. 

      Data can be lost when converting from number to currency (assuming that field lengths are identical)

    • C. 

      Data can be lost when converting from simple picklist to multi picklist

    • D. 

      Information can be lost when converting from text area (rich) to text area (long)

  • 24. 
    What is the correct way to describe how Model-View-Controller (MVC) architecture is implemented on the Salesforce platform?
    • A. 

      Model: Standard and Custom Objects; View: Visualforce Pages; Controller: Apex Code

    • B. 

      Model: Standard and Custom Objects; View: Visualforce Pages; Controller: s-Controls

    • C. 

      Model: Schema Builder; View: List Views; Controller: Setup Console

    • D. 

      Model: Apex Code; View: List Views; Controller: Setup Console

  • 25. 
     A developer needs to create a Visualforce page that will override the standard Account edit button. The page will be used to validate the account's address using a SOQL query. The page will also allow the user to make edits to the address. Where would the developer write the Account address verification logic?
    • A. 

      In a Controller Extension

    • B. 

      In a Custom Controller

    • C. 

      In a Standard Extension

    • D. 

      In a Standard Controller