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

Quiz

SALESFORCE DEV-401 Certification Evaluation 1

Hawerth Castro 59 questions

Take the quiz

Questions in this quiz (59)

  1. 1A developer writes a before insert trigger. How can the developer access the incoming records in the trigger body?
    1. ABy accessing the Trigger.new context variable.
    2. BBy accessing the Trigger.newRecords context Variable.
    3. CBy accessing the Trigger.newMap context variable.
    4. DBy accessing the Trigger.newList context variable.
  2. 2In an organization that has enabled multiple currencies, a developer needs to aggregate the sum of the Estimated_value__c currency field from the campaignmember object a roll-up summary field called total_estimated_value__c on campaign.

    How is the currency of the total_Estimated_value__c roll-up summary field determined?
    1. AThe 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.
    2. BThe values in campaignMember.Estimated_value__c are converted into the currency on the majority of the campaignmember records and the sum is displayed using that currency.
    3. CThe values in campaignMember.Estimated_value__c are summed up and the resulting Total_Estimated_value__c field is diaplyed as a numeric field on the campaign record.
    4. DThe values in campaignMember.Estimated_value__c are converted into the currency of the currentuser, and the sum is displayed using the currency on the campaign record.
  3. 3When creating unit tests in apex, which statement is accurate?
    1. AUnit tests with multiple methods result in all methods failing every time one method fails.
    2. BIncreased test coverage requires large test classes with many lines of code in one method.
    3. CTriggers do not require any unit tests in order to deploy them from sandbox to production.
    4. DSystem assert statement that do not increase code coverage contribute important feedback in unit tests.
  4. 4An sObject named Application_c has a lookup relationship to another sObject named Position_c. Both Application_c and Position_c have a picklist field named Status_c.
    When the Status_c field on Position_c is updated, the Status_c field on Application_c needs to be populated automatically with the same value, and execute a workflow rule on Application_c.
    How can a developer accomplish this?
    1. ABy changing Application__c.Status__c into a roll-up summary field.
    2. BBy changing Application__c.Status__c into a formula field.
    3. CBy using an apex trigger with a DML operation.
    4. DBy configuring a cross-object field update with a workflow.
  5. 5A developer has the following trigger that fires after insert and creates a child case whenever a new case is created.

    List<case> childcases = new List<case>();

    for(case parent : trigger.new)

    {

    case child = new case(parentId = parent.Id, subject = parent.subject);

    childcases.add(child);

    }

    insert childcases;

    What happens after the code block executes?
    1. AMultiple child cases are created for each parent in trigger.new
    2. BTrigger enters infinite loop and eventually fails
    3. Ccase is created for each parent case in trigger.new
    4. DThe trigger fails if subject field on parent is blank
  6. 6How can a developer avoid exceeding governor limits when using an apex trigger?
    Choose 2.
    1. ABy using a helper class that can be invoked from multiple triggers.
    2. BBy using the database class to handle DML transactions.
    3. CBy using maps to hold data from query results.
    4. DBy performing DML transactions on lists of sobjects.
  7. 7Why would a developer use Test.starttest() and test.stoptest()?
    1. ATo avoid Apex code coverage requirements for the code between these lines.
    2. BTo start and stop anonymous block execution when executing anonymous Apex code.
    3. CTo indicate test code so that it does not impact apex line count governor limits.
    4. DTo create an additional set of governor limits during the execution of a single test class.
  8. 8In which order does salesforce execute events upon saving a record?
    1. ABefore Triggers; Validation Rules; After Triggers; Assignment Rules; Workflow Rules; Commit
    2. BValidation Rules; Before Triggers; After Triggers; Workflow Rules; Assignment Rules; Commit
    3. CBefore Triggers; Validation Rules; After Triggers; Workflow Rules; Assignment Rules; Commit
    4. DValidation Rules; Before Triggers; After Triggers; Assignment Rules; Workflow Rules; Commit
  9. 9When loading data into an organization, what can a developer do to match records to update existing records?
    Choose 2
    1. AMatch an external id text field to a column in the imported file.
    2. BMatch the id field to a column in the imported file.
    3. CMatch the name field to a column in the imported file.
    4. DMatch an auto-generated number field to a column in the imported file.
  10. 10How can a developer refer to, or instantiate, a pagereference in apex?
    Choose 2
    1. ABy using a pagereference with a partial or full URL.
    2. BBy using the page object and a Visualforce page name.
    3. CBy using the apexPage.page() method with a visualforce page name.
    4. DBy using the PageReference.page() method with a partial or full URL.

Information

Description
Salesforce DEV 401 Quizzes Dumps preparing certified
Language
Português
Views
512
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?