Salesforce Application Developer-I Part 4


Q121 Which statement about change set deployments is accurate? Choose 3 answers
A. They can be used only between related organizations.
B. They require a deployment connection.
C. They use an all or none deployment model.
D They can be used to transfer Contact records.
E. They can be used to deploy custom settings data.

Ans A. They can be used only between related organizations.
B. They require a deployment connection.
C. They use an all or none deployment model.
Ref:
https://help.salesforce.com/apex/HTViewHelpDoc?id=changesets_implementation_notes.htm&language=en_US

Q122 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?
A. Remove all the references In the code and then the field will be removed from Schema Builder.
B. Remove all references from the code and then delete the custom field from Schema Builder.
C. Mark the field for deletion in Schema Builder and then delete it from the declarative UI.
D. Delete the field from Schema Builder and then all references in the code will be removed.

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

Q123 What is an accurate statement about variable scope? Choose 3 answers
A. Sub -blocks cannot reuse a parent block's variable name.
B. A variable can be defined at any point in a block.
C. Parallel blocks can use the same variable name.
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.

Ans B. A variable can be defined at any point in a block.
C. Parallel blocks can use the same variable name.
A. Sub -blocks cannot reuse a parent block's variable name

Q124 When the value of a field in an account record is updated, which method will update the value of custom field in related opportunities? Choose 2 answers
A. An Apex trigger on the Account object.
B. A Process Builder on the Account object.
C. A cross-object formula field on the Account object.
D. A Workflow Rule on the Account object.

Ans A. An Apex trigger on the Account object.
B. A Process Builder on the Account object.


Q125 What is the preferred way to reference web content such as images, style sheets, JavaScript, and other libraries that is used in Visualforce pages?
A. By accessing the content from Chatter Files.
B. By uploading the content in the Documents tab.
C. By accessing the content from a third -party CON.
D. By uploading the content as a Static Resource.

Ans D. By uploading the content as a Static Resource.

Q126 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 the Warehouse?
A. One -to -Many
B. Lookup
C. Master -Detail
D. Parent -Child

Ans B. Lookup

Q127 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?
A. No changes are made to the data.
B. Both the Apex Trigger and Workflow Rule are fired only once.
C. The Workflow Rule is fired more than once.
D. The Apex Trigger is fired more than once.

ANs D. The Apex Trigger is fired more than once.

Q128 What is true for a partial sandbox that is not true for a full sandbox? Choose 2 answers:
A. More frequent refreshes.
B. Only Includes necessary metadata.
C. Use of change sets.
D. Limited to 5 GB of data.

Ans A. More frequent refreshes.
D. Limited to 5 GB of data.

Q129 In which order does SalesForce execute events upon saving a record?
A. Before Triggers; Validation Rules; After Triggers; Assignment Rules; Workflow Rules; Commit
B. Validation Rules; Before Triggers; After Triggers; Workflow Rules; Assignment Rules; Commit
C. Before Triggers; Validation Rules; ilter Triggers; Workflow Rules; Assignment Rules; Commit
D. Validation Rules; Before Triggers; After Triggers; Assignment Rules; Workflow Rules; Commit

ANs A. Before Triggers; Validation Rules; After Triggers; Assignment Rules; Workflow Rules; Commit

Q130 When loading data into an organization, what can a developer do to match records to update existing records? Choose 2 answers
A. Match an external Id Text field to a column in the imported file.
B. Match the Id field to a column in the Imported file.
C. Match the Name field to a column in the imported file.
D. Match an auto -generated Number field to a column in the imported file.

Ans A. Match an external Id Text field to a column in the imported file.
B. Match the Id field to a column in the Imported file.

Q131 In 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 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?
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 the 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.

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

Q132 A candidate may apply to multiple jobs at the company Universal Containers by submitting a single application per job posting, that application cannot be modified to be resubmitted to a different job posting.
What can the administrator do to associate an application with each job posting in the schema for the organization?
A. Create a lookup relationship on both objects to a junction object called Job Posting Applications.
B. Create a master-detail relationship in the Job Postings custom object to the Applications custom object.
C. Create a master-detail relationship in the Application custom object to the Job Postings custom object.
D. Create a lookup relationship in the Applications custom object to the Job Postings custom object.

Ans C. Create a master-detail relationship in the Application custom object to the Job Postings custom object.

Q133 What is a characteristic of the Lightning Component Framework? Choose 2 answers:
A. It has an event-driven architecture.
B. It works with existing Visualforce pages.
C. It includes responsive components.
D. It uses XML as its data format.

Ans A. It has an event-driven architecture.
C. It includes responsive components.

Q134 What is a capability of cross-object formula fields? Choose 3 answers
A. Formula fields can reference fields from master-detail or lookup parent relationships.
B. Formula fields can expose data the user does not have access to in a record.
C. Formula fields can be used in three roll-up summaries per object.
D. Formula fields can reference fields in a collect of records from a child relationship.
E. Formula fields can reference fields from objects that are up to 10 relationships away.

Ans A. Formula fields can reference fields from master-detail or lookup parent relationships.
B. Formula fields can expose data the user does not have access to in a record.
E. Formula fields can reference fields from objects that are up to 10 relationships away.
Ref:
https://help.salesforce.com/HTViewHelpDoc?id=customize_cross_object.htm

Q135 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?
A. Apex Triggers
B. HTTP Callouts
C. Apex Controllers
D. Anonymous Blocks

Ans D. Anonymous Blocks
Ref: https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_classes_keywords_sharing.htm

Q136 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?
A. Select the Override Log Triggers checkbox for the trigger
B. Add the user name in the Log Inspector.
C. Open the Progress tab in the Developer Console.
D. Open the logs tab in the Developer Console.

Ans D. Open the logs tab in the Developer Console.

Q137 Which data structure is returned to a developer when performing a SOSL search?
A. A list of lists of sObjects.
B. A map of sObject types to a list of sObjects
C. A map of sObject types to a list oflists of sobjects
D. a list of sObjects.

Ans A. A list of lists of sObjects.

Q138 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 using the Database class to handle DML transactions.
C. By using Maps to hold data from query results.
D. By performing DML transactions on lists of SObjects.

Ans C. By using Maps to hold data from query results.
D. By performing DML transactions on lists of SObjects.

Q139 What is a correct pattern to follow when programming in Apex on a Multi-tenant platform?
A. Apex code is created in a separate environment from schema to reduce deployment errors.
B. DML is performed on one record at a time to avoid possible data concurrency issues.
C. Queries select the fewest fields and records possible to avoid exceeding governor limits.
D. Apex classes use the ''with sharing" keyword to prevent access from other server tenants.

Ans C. Queries select the fewest fields and records possible to avoid exceeding governor limits.

Q140 What should a developer working in a sandbox use to exercise a new test Class before the developer deploys that test production? Choose 2 answers
A. The REST API and ApexTestRun method
B. The Apex Test Execution page in Salesforce Setup.
C. The Test menu in the Developer Console.
D. The Run Tests page in Salesforce Setup.

Ans B. The Apex Test Execution page in Salesforce Setup.
C. The Test menu in the Developer Console.

Q141 A company that uses a Custom object to track candidates would like to send candidate information automatically to a third -party human resource system when a candidate is hired.  What can a developer do to accomplish this task?
A. Create an escalation rule to the hiring manager.
B. Create an auto response rule to the candidate.
C. Create a Process Builder with an outbound message action.
D. Create a workflow rule with an outbound message action.

Ans D. Create a workflow rule with an outbound message action.

Q142 A developer is creating an application to track engines and their parts. An individual part can be used in different types of engines.
What data model should be used to track the data and to prevent orphan records.
A. Create a junction object to relate many engines to many parts though a master -detail relationship.
B. Create a master -detail relationship to represent the one -to -many model of engines to parts
C. Create a lookup relationship to represent how each part relates to the parent engine object.
D. Create a junction object to relate many engines to many parts through a lookup relationship.

Ans A. Create a junction object to relate many engines to many parts though a master -detail relationship.

Q143 What is the accurate statement about with sharing keyword? choose 2 answers
A) Inner class donot inherit the sharing setting from the container class
B) Both inner and outer class can be declared as with sharing
C) Either inner class or outer classes can be declared as with sharing but not both
D) Inner class inherit the sharing setting from the conatiner class

Ans A) Inner class donot inherit the sharing setting from the container class
B) Both inner and outer class can be declared as with sharing

Q144 How can a developer refer to, or instantiate a PageReference in Apex? Choose 2 answers
A. By using a PageReference with a partial or full URL.
B. By using the Page object and a Visualforce page name.
C. By using the ApexPages.Page() method with a Visualforce page name.
D. By using the PageReference.Page() method with a partial or full URL.

Ans A. By using a PageReference with a partial or full URL.
B. By using the Page object and a Visualforce page name.

Q145 Which standard field needs to be populated when a developer inserts new Contact records programmatically?
A. Accountld
B. Name
C. LastName
D. FirstName

Ans C. LastName

Q146 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?
A. Create test classes to exercise the Visualforce page markup.
B. Select "Disable Parallel Apex Testing" to run all the tests.
C. Add test methods to existing test classes from previous deployments.
D. Select "Fast Deployment'' to bypass running all the tests.

Ans C. Add test methods to existing test classes from previous deployments.

Q147 What is the minimum log level needed to see user generated debug statements?
A. DEBUG
B. FINE
C. INFO
D. WARN

Ans A. DEBUG

Q148 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
A. before update
B. after insert
C. before insert
D. after update

Ans A. before update
C. before insert

Q149 To which primitive data type in Apex is a currency field atomically assigned?
A. Integer
B. Decimal
C. Double
D. Currency

Ans B. Decimal
Ref: https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/langCon_apex_primitives.htm

Q150 Which resource can be included in a Lightning Component bundle?
Choose 2 answers
A. Apex class
B. Adobe Flash
C. JavaScript
D. Documentation

Ans C. JavaScript
D. Documentation
Ref: https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/components_bundle.htm

Q151 A custom exception "RecordNotFoundException" is defined by the following code of block.
public class RecordNotFoundException extends Exception()
which statement can a developer use to throw a custom exception? choose 2 answers
A. throw new RecordNotFoundException("problem occured");
B. throw new RecordNotFoundException();
C. throw RecordNotFoundException("problem occured");
D. throw RecordNotFoundException();

Ans A. throw new RecordNotFoundException("problem occured");
B. throw new RecordNotFoundException();

Q152 When creating unit tests in Apex, which statement is accurate?
A. Unit tests with multiple methods result in all methods failing every time one method fails.
B. Increased test coverage requires large test classes with many lines of code in one method.
C. Triggers do not require any unit tests in order to deploy them from sandbox to production.
D. System Assert statements that do not Increase code coverage contribute important feedback in unit tests

Ans D. System Assert statements that do not Increase code coverage contribute important feedback in unit tests

Q153 public class customController {
public string cString { get; set;}
public string getStringMethod1(){
return cString;
}
public string getStringMethod2(){
if(cString == null)
cString = 'Method2';
return cString;
}
}
<apex:page controller="customController">
{!cString}, {!StringMethod1}, {!StringMethod2}, {!cString}
</apex:page>
What does the user see when accessing the custom page?
A. getMyString,
B. , , Method2,
C.Method2, getMyString
D. getMyString„ Method2, getMyString

Ans B. , , Method2,


Q154 Which portion of Model-View-Controller paradigm is represented in Force.com as a standard or custom object?
a. Controller
b. Model
c. View

Ans B

Q 155 When performing an update with the Data Loader, the comma-delimited file must contain a column with which values?
a. The profile names of the record owners
b. The created time and date of the records
c. The Force.com record ID values of the records
d. The logical names of the records

Ans C

Q156 Which statement is TRUE about the custom object import wizard?
a. It can import, upsert, update, delete and export data
b. It can perform matching based on record ID onlu
c. It can provide success and error files in .csv format
d. It can prevent the import of duplicate records

Ans D

Q157 Given a three tier model ( UI layer, business logic layer, data layer), which feature of the Force.com platform is associated with the data layer? Choose 3 answers
a. Custom fields
b. Custom tabs
c. Custom relationships
d. Custom objects
e. Custom applications

Ans A,C, D

Q158 In a master-detail relationship, what happens to the child records if the parent record is deleted?
a. Child records are not deleted
b. A subset of the child records is deleted
c. Parent record deletion fails
d. Child records are deleted

Ans D


Q159 Master-detail relationships can be used to model many-to-many relationships between two objects.
Which statement is TRUE about many-to-many relationships?
a. Each use a junction object to connect the two objects that need to relate to each other
b. Each master object record displays a related list of the associated junction object records
c. Each record of one object is linked to multiple records from another object and vice versa
d. Each primary and secondary object has a standard report but custom report types are not available

Ans A, B, C

Q160 When loading Account, Contact and User data, what represents the recommended order to load the data?
a. Load Accounts, then Contacts, then Users
b. The order does not matter
c. Load Contacts, then Accounts, then Users
d. Load Users, then Accounts, then Contacts

Ans D

No comments:

Post a Comment