¡GoConqr estrena diseño! Cuéntanos qué te parece.

Test

Salesforce Dev 1 Exam Practice

Jessica F 148 preguntas 5,0 (2 valoraciones)

Hacer el test

Preguntas del test (148)

  1. 1Why would a developer use Test.startTest() and Test.stopTest()?
    1. ATo avoid apex code coverage requirements for the code between the 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 set of a single test class.
  2. 2What must a controller for a VF page utilize to override the standard opportunity view button?
    1. AThe StandardSetController to support related lists for pagination.
    2. BThe Opportunity StandardController for pre-built functionality.
    3. CA callback constructor to reference the StandardController.
    4. DA constructor that initializes a private Opportunity variable.
  3. 3A developer Uses a before insert trigger on Lead object to fetch the Territory__c object, where the Territory__c.PostalCode__c matches the Lead.PostalCode. The code fails when the developer uses the Apex Data Loader to insert 10000 Lead records. The developer has the following code block:

    for(Lead l : Trigger.new){
    If(l.PostalCode != null){
    List<Territory__c> terrList = [Select Id from Territory__c where PostalCode__c =: l.PostalCode ];
    If(terrList.size() > 0){
    l.Territory__c = terrList[0].Id;
    }
    }
    }

    Which line of code is causing the code block to fail?
    1. A03: A SOQL query is located inside of the for loop code.
    2. B01: Trigger.new is not valid in a before insert Trigger.
    3. C02: A NullPointer exception is thrown if postalCode is null.
    4. D05: The Lead in a before insert trigger cannot be updated.
  4. 4What would a developer do to update a picklist field on related Opportunity records when a modification to the associated Account record is detected?

    1. ACreate a process with Process Builder.
    2. BCreate a workflow rule with a field update.
    3. CCreate a Lightning Component.
    4. DCreate a VF page.
  5. 5Which requirement needs to be implemented by using standard workflow instead of Process Builder? Choose 2 answers.

    1. ACreate activities at multiple intervals.
    2. BSend an outbound message without Apex Code.
    3. CCopy an account address to its contacts.
    4. DSubmit a contact for approval.
  6. 6In the code below, what type does Boolean Inherit from?
    Boolean b = true;
    1. AEnum
    2. BObject
    3. CString
    4. DClass
  7. 7An org has different Apex Classes that provide Account-related functionality. After a new validation rule is added to the Account object, many of the test methods fail.
    What can be done to resolve the failures and reduce the number of code changes needed for future validation rules? Choose 2 answers.
    1. ACreate a method that creates valid Account records, and call this method from within test methods.
    2. BCreate a method that loads valid Account records from a Static resource, and call this method within test methods.
    3. CCreate a method tha performs a callout for a valid Accounyt record, and call this method from within test methods.
    4. DCreate a method that queries for a valid Account records, and call this method from within test methods.
  8. 8Which component is available to deploy using Metadata API?
    Choose 2 answers
    1. ACase Layout
    2. BAccount Layout
    3. CCase Feed Layout
    4. DConsole Layout
  9. 9What is the preferred way to reference web content—such as images, stylessheet, Javascript, and other libraries – that is used in VF pages?
    1. ABy accessing the content from Chatter Files.
    2. BBy uploading the content in the Documents tab.
    3. CBy accessing the content from a thirty – party CDN.
    4. DBy uploading the content as a Static Resource.
  10. 10A company has a custom object named Warehouse. Each Warehouse record has a distinct record owner, and is related to a parent Account in Salesforce.
    Which kind of relationship would a developer use to relate the account to the Warehouse?
    1. AOne to Many
    2. BLookup
    3. CMaster – Detail
    4. DParent Child

Información

Descripción
Salesforce Salesforce Test sobre Salesforce Dev 1 Exam Practice, creado por Jessica F el 19/04/2017.
Idioma
English
Visitas
849
Etiquetas
salesforce
Valoración
5,0 de 5 · 2 valoraciones
Valora este test
Valora este test

Escríbenos

¿Sobre qué es tu mensaje?

¿Qué te parece el nuevo diseño?

¿Te gusta?