Exam Ng Pabebe Girls

106 Questions | Total Attempts: 1579

SettingsSettingsSettings
Please wait...
Exam Ng Pabebe Girls

.


Questions and Answers
  • 1. 
    In an organization that has enabled multiple currencies adeveloper needs to aggregate the sum of Estimated_Value__ccurrency field from the CampaignMember object using a roll-upsummary field Total_Estimated_Value__c on Campaign.How is the currency of the Total_Estimated_Value__c roll-upsummary field determined?
    • A. 

      The values in CampaignMember.Estimated_value__c are converted into the currency of the Campaign record, and the sum is displayed using the currency on the Campaign record.

    • B. 

      The values in CampaignMember.Estimated_value__c are converted into the currency on teh majority of the CampaignMember records and the sum is displayed using that currency.

    • C. 

      The values in CampaignMember.Estimated_value__c are summed up and the resulting Total_estimated_value__c field is displayed as a numeric field on the Campaign record.

    • D. 

      The values in CampaignMember.Estimated_value__c are converted into the currency of the current user, and the sum is displayed using the currency on the Campaign record

  • 2. 
    What is a capability of the Developer Console?
    • A. 

      Execute Anonymous Apex Code, Run REST API, Create/EDIT Code

    • B. 

      Execute Anonymous Apex Code, Create/Edit Code, View Debug Logs

    • C. 

      Execute Anonymous Apex Code, Run REST API, Deploy code changes

    • D. 

      Execute Anonymous Apex Code, Create/Edit Code, Deploy code changes

  • 3. 
    • A. 

      Integer w,x,y=123, z='abc';

    • B. 

      Map conMap = [SELECT Name FROM Contact];

    • C. 

      Private static constant Double rate = 7.75;

    • D. 

      Account[] acctList = new List {new Account()};

  • 4. 
    • A. 

      Parent-Child

    • B. 

      Lookup

    • C. 

      Master-detail

    • D. 

      One-to-Many

  • 5. 
    What would a developer do to update a picklist field on relatedOpportunity records when a modification to the associatedAccount record is detected?
    • A. 

      Create a workflow rule with a field update

    • B. 

      Create a Visualforce page

    • C. 

      Create a Lightning Component

    • D. 

      Create a process with Process Builder

  • 6. 
    On which object can an administrator create a roll-up summaryfield?
    • A. 

      Any object that is on the detail side of a master-detail relationship

    • B. 

      Any object that is on the child side of a lookup relationship

    • C. 

      Any object that is on the master side of a master-detail relationship

    • D. 

      Any object that is on the parent side of a lookup relationship

  • 7. 
    • A. 

      For(triggerIsRunning t : trigger.new){ doWork(); }

    • B. 

      If(trigger.IsRunning){ doWork(); }

    • C. 

      For (trigger.IsInsert t : trigger.new){ doWork(); }

    • D. 

      If(trigger.IsInsert){ doWork(); }

  • 8. 
    When would a developer use a custom controller instead of acontroller extension?Choose 2 answers
    • A. 

      When a Visualforce page needs to replace the functionality of a standard controller

    • B. 

      When a Visualforce page needs to add new actions to a standard controller

    • C. 

      When a Visualforce page should not enforce permissions or field-level security

    • D. 

      When a Visualforce page does not reference a single primary object

  • 9. 
    Why would a developer use Test.startTest() and Test.stopTest()?
    • A. 

      To start and stop anonymous block execution when execution when executing anonymous Apex Code

    • B. 

      To avoid Apex code coverage requirements for the code between these lines

    • C. 

      To create an additional set of governor limits during the execution of a single test class

    • D. 

      To indicate test code so that it does not impact Apex line count governor limits

  • 10. 
    When the number of record in a recordset is unknown, whichcontrol statement should a developer use to implement a set ofcode that executes for every record in the recordset withoutperforming a size() or .lenght() method call?
    • A. 

      While (Condition) {...}

    • B. 

      For (init_stmt; exit_condition; increment_stmt) {...}

    • C. 

      For(Variable : list_or_set){...}

    • D. 

      Do {...} While (Condition)

  • 11. 
    What must the Controller for a VisualForce page utilize to overridethe Standard Opportunity view button?
    • A. 

      The StandardSetController to support related lists for pagination.

    • B. 

      A callback constructor to reference the StandardController

    • C. 

      The Opportunity StandardController for pre-built functionality.

    • D. 

      A constructor that initializes a private Opportunity variable.

  • 12. 
    Which type of code represents the Controller in MVC architectureon the Force.com platform?Choose 2 answers
    • A. 

      Javascript that is used to make a menu item display itself

    • B. 

      A static resource that contains CSS and images

    • C. 

      StandardController system methods that are referenced by Visualforce

    • D. 

      Custom Apex and Javascript code that is used to manipulate data

  • 13. 
    An org has different Apex classes that provide Account-relatedfunctionality. After a new validation rule is added to the Accountobject, many of the test methods fail.What can be done to resolve the failures and reduce the numberof code changes needed for future validation rules?Choose 2 answers.
    • A. 

      Create a method that loads valid Account records from a Static Resource, and call this method within test methods.

    • B. 

      Create a method that queries for a valid Account records, and call this method from within test methods

    • C. 

      Create a method that creates valid Account records, and call this method from within test methods

    • D. 

      Create a method that performs a callout for a valid Account record, and call this method within test methods

  • 14. 
    • A. 

      Before update

    • B. 

      After update

    • C. 

      Before insert

    • D. 

      After insert

  • 15. 
    What is a capability of cross-object formulas fields?Choose 3 answers.
    • A. 

      Formula fields can expose data the user does not have access to in a record

    • B. 

      Formula fields can reference fields from Master-Detail or lookup parent relationships

    • C. 

      Formula fields can reference fields from objects that are up to 10 relationships away

    • D. 

      Formula fields can reference fields in a collection of records from a child relationship

    • E. 

      Formula fields can be use in three roll-up summaries per object

  • 16. 
    What is the result when a Visualforce page calls an Apexcontroller, which calls another Apex class, which then results inhitting a governor limit?
    • A. 

      Any changes up to the error are saved

    • B. 

      All changes before a savepoint are saved

    • C. 

      Any changes up to the error are rolled back

    • D. 

      All changes are saved in the first Apex Class

  • 17. 
    A developer has the following code block:Public class PaymentTax {Public static decimal salesTax = 0.0875;}Trigger OpportunityLineItemTrigger on OpportunityLineItem(before insert, before update){PaymentTax PayTax = new PaymentTax();Decimal ProductTax = ProductCost = XXXXXXXXXXXXX;}To calculate the productTax wich code segment would adeveloper insert at the XXXXXXXX to make the value of the classvariable SalesTax accessible within the trigger?
    • A. 

      PayTax.SalesTax

    • B. 

      SalesTax

    • C. 

      PaymentTax.SalesTax

    • D. 

      OpportunityLineItemTrigger.SalesTax

  • 18. 
    Which data structure is returned to a developer when performinga SOSL search?
    • A. 

      A map of sObject types to a list of sObjects

    • B. 

      A list of SObjects

    • C. 

      A map of SObject types to a list of lists of Sobjects.

    • D. 

      A list of lists of SObjects.

  • 19. 
    Which standard field needs to be populated when a developerinserts new Contact records programmatically?
    • A. 

      AccountId

    • B. 

      LastName

    • C. 

      FirstName

    • D. 

      Name

  • 20. 
    A developer creates a new Visualforce page and Apex extension,and writes test classes that exercise 95% coverage of the newApex extension.Change set deployment to production fails with the test coveragewarning : * Average test coverage across all apex classes andtriggers is 74% at least 75% test coverage is required.What can the developer do to successfully deploy the newVisualforce page and extension?
    • A. 

      Select *Disable Parallel Apex testing * to run all the test

    • B. 

      Select *fast Deployment* to bypass running all the tests.

    • C. 

      Create test classes to exercise the visualforce page markup

    • D. 

      Add test methods to existing test classes from previous deployments. *

  • 21. 
    To Which primitive data type in Apex is a currency fieldautomatically assigned?
    • A. 

      Currency

    • B. 

      Integer

    • C. 

      Decimal

    • D. 

      Double

  • 22. 
    • A. 

      By changing Application__c.Status__c into a roll-up summary field

    • B. 

      By using an Apex trigger with a DML operation

    • C. 

      By changing Application__c.Status__c into a formula field

    • D. 

      By Configuring a cross-object field update with a workflow

  • 23. 
    A company that uses a custom object to track candidates wouldlike to send candidate information automatically to a third-partyhuman resources system when a candidate is hired. What can adeveloper do to accomplish this task?
    • A. 

      Create an escalation rule to the hiring manager.

    • B. 

      Create a process builder with an outbound message action.

    • C. 

      Create a workflow rule with an outbound message action.

    • D. 

      Create an auto response rule to the candidate.

  • 24. 
    A developer needs to provide a Visualforce page that lets usersenter Product-specific details during a Sales cycle. How can this beaccomplished?Choose 2 answers
    • A. 

      Download and Unmanaged Package from the AppExchange that provides a Custom Visualforce

    • B. 

      Copy the standard page and then make a new Visualforce page for product data entry

    • C. 

      Create a new Visualforce page and an Apex controller to provide Product data entry

    • D. 

      Download a Managed Package from the AppExchange that provides a custom Visualforce

  • 25. 
    A developer runs the following anonymous code block:List<Account> acc = [SELECT Id FROM Account LIMIT 10]Delete acc;Database.emptyRecycleBin(acc);system.debug(Limits.getDMLStatements()+' , '+Limits.getLimitDMLStatements());What is the result?
    • A. 

      11, 150

    • B. 

      150, 2

    • C. 

      150 ,11

    • D. 

      2 , 150