sbchowdary
Test por , creado hace más de 1 año

1 Salesforce Test sobre salesforce Developer 1, creado por sbchowdary el 20/05/2016.

1341
17
2
sbchowdary
Creado por sbchowdary hace alrededor de 8 años
Cerrar

salesforce Developer 1

Pregunta 1 de 60

1

When 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 .length() method call?

Selecciona una de las siguientes respuestas posibles:

  • for(int_stmt; exit_condition; increment_stmt) {...}

  • While (Condition) {...}

  • For (variable : list-or_set){...}

  • Do {...} while (condition)

Explicación

Pregunta 2 de 60

1

What is true of a partial sandbox that is not true of a full sandbox?
Choose 2 answers

Selecciona una o más de las siguientes respuestas posibles:

  • More frequent refreshes

  • Only includes necessary metadata

  • Limited to 5gb of data

  • Use of change sets

Explicación

Pregunta 3 de 60

1

Which code segment can be used to control when the dowork()method is called?

Selecciona una de las siguientes respuestas posibles:

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

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

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

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

Explicación

Pregunta 4 de 60

1

A developer needs to create records for the object Property__C. The developer creates the following code block:

01 List<Property__C> propertiesToCreate = helperClass.createProperties();
02 try{
03
04 } catch (Exception exp) {
05 //Exception handling
06 }

Which line of code would the developer insert at line 03 to ensure that at least some records are created, even if a few records have errors and fail to be created?

Selecciona una de las siguientes respuestas posibles:

  • Database.insert(propertiesToCreate, false);

  • Database.insert(propertiesToCreate, System.ALLOW_PARTIAL);

  • insert propertiesToCreate;

  • Database.insert(propertiesToCreate);

Explicación

Pregunta 5 de 60

1

A developer needs to automatically populate the ReportsTo field in a contact record based on the values of the related Account and Department fields in the Contact record.

Which type of trigger would the developer create?
Choose 2 answers

Selecciona una o más de las siguientes respuestas posibles:

  • after update

  • after insert

  • before update

  • before insert

Explicación

Pregunta 6 de 60

1

A developer writes a before insert trigger.
How can the developer access the incomming records in the trigger body?

Selecciona una de las siguientes respuestas posibles:

  • By accessing the Trigger.new context variable.

  • By accessing the Trigger.newMap context variable.

  • By accessing the Trigger.newRecords context variable.

  • By accessing the Trigger.newList context variable.

Explicación

Pregunta 7 de 60

1

What is an accurate statement about with sharing keyword?
Choose 2 answers

Selecciona una o más de las siguientes respuestas posibles:

  • Inner Classes inherit the sharing setting from the container class.

  • Both inner and outer classes can be declared as with shareing.

  • Either inner or outer classes can be declared as with sharing, but not both.

  • Inner classes do not inherit the sharing setting from the container class.

Explicación

Pregunta 8 de 60

1

Which Standard field needs to be populated when a developer inserts new Contact records programmatically?

Selecciona una de las siguientes respuestas posibles:

  • LastName

  • Accountid

  • Name

  • FirstName

Explicación

Pregunta 9 de 60

1

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?

Selecciona una de las siguientes respuestas posibles:

  • 2,150

  • 150, 2

  • 150, 11

  • 11, 150

Explicación

Pregunta 10 de 60

1

A developer wrote a workflow email alert on case creation so that an email is sent to the case owner manager when a case is created.
When will the email be sent?

Selecciona una de las siguientes respuestas posibles:

  • Before Trigger execution.

  • After Committing to database.

  • Before Committing to database.

  • After Trigger execution.

Explicación

Pregunta 11 de 60

1

A developer has a block of code that omits any statements that indicate whether the code block should execute with or without sharing. What will automatically obey the organization-wide defaults and sharing settings for the user who executes the code in the salesforce Organization?

Selecciona una de las siguientes respuestas posibles:

  • HTTP Callouts

  • Apex Controllers

  • Anonymous Blocks

  • Apex Triggers

Explicación

Pregunta 12 de 60

1

How can a developer avoid exceeding governor limits when using an Apex Trigger?
Choose 2 answers

Selecciona una o más de las siguientes respuestas posibles:

  • By using Maps to hold data from query results.

  • By using the Database class to handle DML transactions

  • By performing DML transactions on lists of sObjects

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

Explicación

Pregunta 13 de 60

1

A developer needs to provide a Visualforce page that lets users enter Product-specific details during a Sales cycle.
How can this be accomplished?
Choose 2 answers

Selecciona una o más de las siguientes respuestas posibles:

  • Copy the standard page and then make a new Visualforce page for Product data entry.

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

  • Download an unmanaged package from the appExchange that provides a custom Visualforce page to modify.

  • Download a Managed Package from the AppExchange that provides a custom Visualforce page to modify.

Explicación

Pregunta 14 de 60

1

Which component is available to deploy using Metadata API?
Choose 2 answers

Selecciona una o más de las siguientes respuestas posibles:

  • Account Layout

  • Console Layout

  • Case Layout

  • Case feed Layout

Explicación

Pregunta 15 de 60

1

What is a characterstic of the Lightning Component framework?
choose 2 answers

Selecciona una o más de las siguientes respuestas posibles:

  • It has an event-driven architecture.

  • It works with existing Visualforce pages.

  • It Includes responsive components.

  • It uses XML as its data format.

Explicación

Pregunta 16 de 60

1

What is a capability fo the Developer Console?

Selecciona una de las siguientes respuestas posibles:

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

  • Execute Anonymous Apex code, Create/Edit Code, view Debug Logs.

  • Execute Anonymous Apex code, Run REST API, Create/Edit code.

  • Execute Anonymous Apex code, Run Rest API, Deploy code changes.

Explicación

Pregunta 17 de 60

1

What must the Controller for a Visualforce page utilize to override a standard Opportunity view buttion?

Selecciona una de las siguientes respuestas posibles:

  • The StandardSetController to support related lists for pagination.

  • The Opportunity StandardController for pre-built functionality.

  • A callback constructor to reference the StandardController.

  • A constructor that initializes a private Opportunity variable.

Explicación

Pregunta 18 de 60

1

Which data structure is returned to a developer when performing a SOSL search?

Selecciona una de las siguientes respuestas posibles:

  • A list of SObjects.

  • A map of SObject types to a list of lists of SObjects.

  • A list of lists of sObjects.

  • A map of sObject types to a list of sObjects.

Explicación

Pregunta 19 de 60

1

What wouuld a developer do to update a picklist field on related Opportunity records when a modificaiton to the associated Account record is detected?

Selecciona una de las siguientes respuestas posibles:

  • Create a workflow rule with a field update.

  • Create a Lightning Component.

  • Create a process with Process Builder

  • Create a Visualforce page.

Explicación

Pregunta 20 de 60

1

What is the preferred way to reference web content - such as images, stylesheets, JavaScripts, and other libraries that is used in Visual force pages?

Selecciona una de las siguientes respuestas posibles:

  • By uploading the content as a Static Resource.

  • By uploading the content in the documents tab.

  • By accessing the content from a thrid-party CDN.

  • By accessing the content from Chatter files.

Explicación

Pregunta 21 de 60

1

What is a valid statement about Apex Classes and interfaces?
Choose 2 answers

Selecciona una o más de las siguientes respuestas posibles:

  • The default modifier for a class is private.

  • Exception classes must end with the word exception.

  • A class can have multiple levels of inner classes.

  • The default modifier for an interface is private.

Explicación

Pregunta 22 de 60

1

In the code below, what type does Boolean inherit from?

Boolean b = true;

Selecciona una de las siguientes respuestas posibles:

  • String

  • Object

  • Enum

  • Class

Explicación

Pregunta 23 de 60

1

How would a developer use Schema Builder to delete a custom field from the Account object that was required for prototyping but is no longer needed?

Selecciona una de las siguientes respuestas posibles:

  • Remove all the references in the code and then the field will be removed from Schema Builder.

  • Remove all references from the code and then delete the custom field from Schema Builder.

  • Mark the field for deletion in Schema Builder and then delete it from the declarative UI.

  • Delete the field from Schema Builder and then all references in the code will be removed.

Explicación

Pregunta 24 de 60

1

A developer has a single custom controller class that works with a Visualforce wizard to support creating and editing multiple sObjects. The wizard accepts data from user inputs across multiple Visualforce pages and from a parameter on the initial URL.

Which statement is unnecessary inside the unit test for the custom controller?

Selecciona una de las siguientes respuestas posibles:

  • Test.setCurrentPage(pageRef);

  • String nextPage =controller.save().getUrl();

  • public ExtendedController(ApexPages.StandardController cntrl){}

  • ApexPages.currentPage().getParameters().put('input',TestValue');

Explicación

Pregunta 25 de 60

1

To which primitive data type in Apex is a currency field automatically assigned?

Selecciona una de las siguientes respuestas posibles:

  • Currency

  • Decimal

  • Integer

  • Double

Explicación

Pregunta 26 de 60

1

The review_c object has a lookup relationship up to the job_application_c object. The Job_applicaiton_c object has a master detail relationship up to the position_c object. the relationship field names are based on the auto-populated defaults.

What is the recommended way to display field data from the related review_c records on a visualforce page for a single position_c record?

Selecciona una de las siguientes respuestas posibles:

  • utilize the standard controller for position__c and expression syntax in the page to display related review_c data through the job_application__c object.

  • Utilize the standard controller for position__c and cross-object formula fields on the review_c object to display review__c data

  • utilize the Standard controller for Position__c and a controller extension to query for Review__c data.

  • utilize the standard controller for position__c and cross-object formula fields on the job_ application__c object to display Review__c data.

Explicación

Pregunta 27 de 60

1

Which type of code represents the Controller in MVC architecture on the force.com platform?
Choose 2 answers

Selecciona una o más de las siguientes respuestas posibles:

  • StandardController system methods that are referenced by Visualforce.

  • A static resource that contains css and images

  • Custom Apex and JavaScript code that is used to manipulate data

  • JavaScript that is used to make a menu item display itself.

Explicación

Pregunta 28 de 60

1

Which Resource can be included in the Lightning component bundle?
Choose 2 answers

Selecciona una o más de las siguientes respuestas posibles:

  • Apex class

  • Adobe Flash

  • Documentation

  • Javascript

Explicación

Pregunta 29 de 60

1

How can a developer refer to, or instantiate, a PageReference in Apex?
Choose 2 answers.

Selecciona una o más de las siguientes respuestas posibles:

  • By using the ApexPages.page() method with a VisualForce page name.

  • By using a PageReference with a partial or full URL.

  • By using the Page.object and a Visualforce page name.

  • By using the PageReference.Page() method with a partial or full URL.

Explicación

Pregunta 30 de 60

1

What is a capability of cross-object formula fields?
Choose 3 answers

Selecciona una o más de las siguientes respuestas posibles:

  • Formula fields can reference fields from master-detail or lookup parent relationships

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

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

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

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

Explicación

Pregunta 31 de 60

1

A 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?

Selecciona una de las siguientes respuestas posibles:

  • Open the Progress tab in the Developer Console.

  • Select the Override Log Triggers checkbox for the trigger.

  • Open the logs lab in the developer console.

  • Add the user name in the log inspector.

Explicación

Pregunta 32 de 60

1

When loading data into an organization, what can a developer do to match records to update existing records?
Choose 2 answers

Selecciona una o más de las siguientes respuestas posibles:

  • Match an auto-generated Number field to a column in the imported file.

  • Match the Name field to a column in the imported file.

  • Match an external Id Text field to a column in the imported file.

  • Match the Id field to a column in the imported file.

Explicación

Pregunta 33 de 60

1

A company that uses a custom object to track candidates would like to send candidate information automatically to a third-party human resources system when a candidate is hired.
What can a developer do to acomplish this task?

Selecciona una de las siguientes respuestas posibles:

  • Create a process builder with an outbound message action.

  • Create an auto response rule to the candidate.

  • Create an escalation rule to the hiring manager.

  • Create a workflow rule with an outbound message action.

Explicación

Pregunta 34 de 60

1

On a visualforce page with a custom controller, how should a developer retrieve a record by using an ID that is passed on theURL?

Selecciona una de las siguientes respuestas posibles:

  • Create a new PageReference object with the id

  • Use the tag in the visualforce page

  • Use the $Action.View method in the Visualforce page

  • Use the constructor method for the controller.

Explicación

Pregunta 35 de 60

1

Which statement about the lookup Relationship between a Custom Object and a Standard Object is correct?

Selecciona una de las siguientes respuestas posibles:

  • The lookup relationship cannot be marked as required on the page layout for the custom object.

  • The custom object will be deleted when the referenced Standard object is deleted.

  • The Lookup Relationship on the Custom object can prevent the deletion of the Standard Object.

  • The Custom Object inherits security from the referenced standard object.

Explicación

Pregunta 36 de 60

1

A 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 Warehouse?

Selecciona una de las siguientes respuestas posibles:

  • One-to-Many

  • Lookup

  • Master-Detail

  • Parent-Child

Explicación

Pregunta 37 de 60

1

Which requirement needs to be implemented by using standard workflow instead of Process Builder?
Choose 2 answers

Selecciona una o más de las siguientes respuestas posibles:

  • Create activities at multiple intervals

  • Submit a contract for approval

  • Send an outbound message without Apex code

  • Copy an account address to its contacts

Explicación

Pregunta 38 de 60

1

On which object can an administrator create a roll-up summary field?

Selecciona una de las siguientes respuestas posibles:

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

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

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

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

Explicación

Pregunta 39 de 60

1

What is a valid Apex statement?

Selecciona una de las siguientes respuestas posibles:

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

  • Map conMap = [SELECT Name FROM Contact];

  • Private static constant Double rate = 7.75;

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

Explicación

Pregunta 40 de 60

1

What is the minimum log level needed to see user generateddebug statements?

Selecciona una de las siguientes respuestas posibles:

  • DEBUG

  • FINE

  • WARN

  • INFO

Explicación

Pregunta 41 de 60

1

A developer creates a custom controller and coustom visualforce page by using the following code block:

public class myController {
public string myString;

public String getMyString() {
return 'getMyString';
}

public String getStringMethod1() {
return myString;
}

public String getStringMethod2() {
if (myString == null)
myString = 'Method2';
return myString;
}

}

<apex:page controller="myController">
{!myString}, {!StringMethod1}, {!StringMethod2}, {!myString}
</apex:page>

Selecciona una de las siguientes respuestas posibles:

  • GetMyString, , Method2, getMyString

  • GetMyString, , ,

  • , , Method2, getMyString

  • , , Method2,

Explicación

Pregunta 42 de 60

1


In an organisation that has enabled multiple currencies, a developer needs to aggregate the sum of the Estimated_value__c currency field from the CampaignMember object using 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?

Selecciona una de las siguientes respuestas posibles:

  • 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.

  • 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.

  • 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.

  • 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

Explicación

Pregunta 43 de 60

1

What should a developer working in a sandbox use to exercise a new test class before the developer deploys that test class to production?
Choose 2 answers

Selecciona una o más de las siguientes respuestas posibles:

  • The REST API and ApexTestRun method

  • The Apex Test Execution page in Salesforce Setup

  • The Test menu in the Developer Console

  • The Run Tests page in Salesforce Setup

Explicación

Pregunta 44 de 60

1

What is a correct pattern to follow when programming in Apex on a multi-tenant platform?

Selecciona una de las siguientes respuestas posibles:

  • Apex code is created in a separate environment from schema to reduce deployment errors

  • DML is performed on one record at a time to avoid possible data concurrency issues.

  • Queries select the fewest fields and records possible to avoid exceeding governor limits

  • Apex classes use the “with sharing” keyword to prevent access from other server tenants

Explicación

Pregunta 45 de 60

1

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

Selecciona una de las siguientes respuestas posibles:

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

  • To start and stop anonymous block execution when executing anonymous Apex code

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

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

Explicación

Pregunta 46 de 60

1

A developer creates a Workflow Rule declaratively that updates a field on an object. An Apex update trigger exists for that object. What happens when a user updates a record?

Selecciona una de las siguientes respuestas posibles:

  • No changes are made to the data

  • Both the Apex Trigger and Workflow Rule are fired only once.

  • The Workflow Rule is fired more than once

  • The Apex Trigger is fired more than once.

Explicación

Pregunta 47 de 60

1

A developer has the following trigger that fires after insert andcreates 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?

Selecciona una de las siguientes respuestas posibles:

  • A child case is created for each parent case in Trigger.new

  • The trigger enters an infinite loop and eventually fails

  • The trigger fails if the Subject field on the parent is blank

  • Multiple child cases are created for each parent case in Trigger.new

Explicación

Pregunta 48 de 60

1

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

Selecciona una de las siguientes respuestas posibles:

  • Any changes up to the error are saved

  • All changes before a savepoint are saved

  • Any changes up to the error are rolled back

  • All changes are saved in the first Apex Class

Explicación

Pregunta 49 de 60

1

An sObject named Application__c has a lookup relationship toanother sObject named Position__c. Both Application__c and Position__c have a picklist field namedStatus__c. When the Status__c field on Position__c is updated, the Status__cfield on Application__c needs automatically with the same value,and execute a workflow rule on Application__c.How can a developer accomplish this?

Selecciona una de las siguientes respuestas posibles:

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

  • By using an Apex trigger with a DML operation

  • By changing Application__c.Status__c into a formula field

  • By Configuring a cross-object field update with a workflow

Explicación

Pregunta 50 de 60

1

When would a developer use a custom controller instead of acontroller extension?
Choose 2 answers

Selecciona una o más de las siguientes respuestas posibles:

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

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

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

  • When a Visualforce page does not reference a single primary object

Explicación

Pregunta 51 de 60

1

A developer wants to display all of the available record types for aCase object . The developer the picklist values for the Case statusfield. The Case object and the Case Status field ....
Which action can the developer perform to get the record typesand picklist values in the controller?Choose 2 answers.

Selecciona una o más de las siguientes respuestas posibles:

  • Use Schema.RecordTypeInfo returned by
    Case.SObjectType.getDescribe().getRecordTypeInfo();

  • Use Schema.PickLisEntry returned by
    Case.Status.getDescribe().getPicklistValues();

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

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

Explicación

Pregunta 52 de 60

1

When creating unit tests in Apex, Which statement is accurate?

Selecciona una de las siguientes respuestas posibles:

  • Increased test coverage requires large test classes with many lines of
    code in one method

  • System Assert statements that do not increase code coverage
    contribute important feedback in unit

  • Unit tests with multiple methods result in all methods failing every time
    one method fails

  • Triggers do not require any unit tests in order to deploy them from
    sandbox to production

Explicación

Pregunta 53 de 60

1

A 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?

Selecciona una de las siguientes respuestas posibles:

  • Create test classes to exercise the Visualforce page markup

  • Select “Disable Parallel Apex Testing” to run all the tests.

  • Add test methods to existing test classes from previous deployments

  • Select “Fast Deployment” to bypass running all the tests

Explicación

Pregunta 54 de 60

1

In which order does Salesforce execute events upon saving a record?

Selecciona una de las siguientes respuestas posibles:

  • Before Triggers; Validation Rules; After Triggers; Assignment Rules; Workflow Rules; Commit

  • Validation Rules; Before Triggers; After Triggers; Workflow Rules; Assignment Rules; Commit

  • Before Triggers; Validation Rules; After Triggers; Workflow Rules; Assignment Rules; Commit

  • Validation Rules; Before Triggers; After Triggers; Assignment Rules; Workflow Rules; Commit

Explicación

Pregunta 55 de 60

1

A developer uses a before insert trigger on the 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 10,000 Lead records. The developer has the following code block:
01 for(Lead l : Trigger.new){
02 if(l.PostalCode != null){
03 List TerrList = [select Id FROM Territory__c WHERE PostalCode__c =: l.PostalCode];
04 if(terrList.size() >0){
05 l.Territory__c = terrList[0].Id;06 }
07 }
08 }Which line of code is causing the code block to fail?

Selecciona una de las siguientes respuestas posibles:

  • 03: A SOQL query is located inside of the for loop code

  • 01: Trigger.new is not valid in a before insert Trigger.

  • 02: a NullPointer exception is thrown if PostalCode is null.

  • 05: The Lead in a before insert Trigger cannot be updated

Explicación

Pregunta 56 de 60

1

What is a valid source and destination pair that can send or receive change sets?
Choose 2 answers.

Selecciona una o más de las siguientes respuestas posibles:

  • Sandbox to sandbox

  • Sandbox to production

  • Developer edition to sandbox

  • Developer Edition to production

Explicación

Pregunta 57 de 60

1

The sales mangaement team requires that the Lead Source field of the Lead record be populated when a lead is converted.
What would a developer use to ensure that a user populates the Lead Source field prior to converting a Lead?

Selecciona una de las siguientes respuestas posibles:

  • Process builder

  • Validation rule

  • Formula field

  • Workflow rule

Explicación

Pregunta 58 de 60

1

An 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

Selecciona una o más de las siguientes respuestas posibles:

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

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

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

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

Explicación

Pregunta 59 de 60

1

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?

Selecciona una de las siguientes respuestas posibles:

  • PayTax.SalesTax

  • SalesTax

  • PaymentTax.SalesTax

  • OpportunityLineItemTrigger.SalesTax

Explicación

Pregunta 60 de 60

1

A custom exception named "RecordNotFoundException" isdefined by the following code block:public class RecordNotFoundException extends Exception { }Which statement can a developer use to throw the customexception?
Choose 2 answers

Selecciona una o más de las siguientes respuestas posibles:

  • Throw RecordNotFoundException('Problem ocurred')

  • Throw new RecordNotFoundException();

  • Throw RecordNotFoundException();

  • Throw new RecordNotFoundException('Problem occurred')

Explicación