[Feb 15, 2022] Free Salesforce Developers CRT-450 Exam Question [Q196-Q221]

Share

[Feb 15, 2022] Free Salesforce Developers CRT-450 Exam Question

CRT-450 dumps & Salesforce Developers sure practice dumps

NEW QUESTION 196
Which three tools can deploy metadata to production? (Choose three.)

  • A. Change Set from Sandbox
  • B. Data Loader
  • C. Change Set from Developer Org
  • D. Metadata API
  • E. Force.com IDE

Answer: A,C,D

 

NEW QUESTION 197
A developer has JavaScript code that needs to be called by controller functions in multiple Aura components by extending a new abstract component.
Which resource in the abstract Aura component bundle allows the developer to achieve this?

  • A. renderer.js
  • B. superRender.js
  • C. controllers
  • D. helper.js

Answer: D

 

NEW QUESTION 198
A developer has the following code:try {List nameList;Account a;String s = a.Name;nameList.add(s);} catch (ListException le ) {System.debug(' List Exception ');} catch (NullPointerException npe)
{System.debug('
NullPointer Exception ');} catch (Exception e) {System.debug(' Generic Exception ');} What message will be logged?

  • A. List Exception
  • B. NullPointer Exception
  • C. No message is logged
  • D. Generic Exception

Answer: B

 

NEW QUESTION 199
A developer has the controller class below.

Which code block will run successfully in an execute anonymous window?

  • A. myFooController m = new myFooController();System.assert(m.prop ==1);
  • B. myFooController m = new myFooController();System.assert(m.prop !=null);
  • C. myFooController m = new myFooController();System.assert(m.prop ==0);
  • D. myFooController m = new myFooController();System.assert(m.prop ==null);

Answer: D

 

NEW QUESTION 200
What is the value of x after the code segment executes?String x = 'A';Integer i = 10;if ( i < 15 ) {i = 15;x = 'B';} else if ( i < 20 ) {x = 'C';} else {x = 'D'; }

  • A. D
  • B. A
  • C. C
  • D. B

Answer: D

 

NEW QUESTION 201
A developer in a Salesforce org with 100 Accounts executes the following code using the Developer console: Account myAccount = new Account(Name = 'MyAccount');Insert myAccount;For (Integer x = 0; x < 250; x++)
{Account newAccount = new Account (Name='MyAccount' + x);try {Insert newAccount;}catch (Exception ex) {System.debug (ex) ;}}insert new Account (Name='myAccount'); How many accounts are in the org after this code is run?

  • A. 0
  • B. 1
  • C. 2
  • D. 3

Answer: A

 

NEW QUESTION 202
A developer writes a SOQL query to find child records for a specific parent. How many levels can be returned in a single query?

  • A. 0
  • B. 1
  • C. 2
  • D. 3

Answer: B

 

NEW QUESTION 203
What is a fundamental difference between a Master-Detail relationship and a Lookup relationship?

  • A. A Master-Detail relationship detail record inherits the sharing and security of its master record.
  • B. In a Lookup relationship, the field value is mandatory.
  • C. In a Master-Detail relationship, when a record of a master object is deleted, the detail records are not deleted.
  • D. In a Lookup relationship when the parent record is deleted, the child records are always deleted.

Answer: A

 

NEW QUESTION 204
Which aspect of Apex programming is limited due to multitenancy?

  • A. The number of active Apex classes
  • B. The number of methods in an Apex class
  • C. The number of records returned from database queries
  • D. The number of records processed in a loop

Answer: C

Explanation:
Explanation/Reference:

 

NEW QUESTION 205
Which aspect of Apex programming is limited due to multitenancy?

  • A. The number of active Apex classes
  • B. The number of records returned from database queries
  • C. The number of methods in an Apex Class
  • D. The number of records processed in a loop

Answer: B

 

NEW QUESTION 206
Which code in a Visualforce page and/or controller might present a security vulnerability?

  • A. <apex:outputField escape="false" value="{!ctrl.userInput}" />
  • B. <apex:outputField value="{!ctrl.userInput}" />
  • C. <apex:outputText escape="false" value=" {!$CurrentPage.parameters.userInput}" />
  • D. <apex:outputText value="{!$CurrentPage.parameters.userInput}" />

Answer: C

 

NEW QUESTION 207
When the number of record 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?

  • A. Do { } While (Condition)
  • B. For (init_stmt, exit_condition; increment_stmt) { }
  • C. While (Condition) { ... }
  • D. For (variable : list_or_set) { }

Answer: D

 

NEW QUESTION 208
Which two statements are true about Apex code executed in Anonymous Blocks? Choose 2 answers

  • A. All DML operations are automatically rolled back
  • B. The code runs with the permissions of the user specified in the runAs() statement
  • C. Successful DML operations are automatically committed
  • D. The code runs with the permissions of the logged user.
  • E. The code runs in system mode having access to all objects and fields.

Answer: C,D

 

NEW QUESTION 209
A developer wants to display all of the picklist entries for the Opportunity StageName field and all of the available record types for the Opportunity object on a Visualforce page. Which two actions should the developer perform to get the available picklist values and record types in the controller? Choose 2 answers.

  • A. Use Schema.PicklistEntry returned by Opportunity.StageName.getDescribe().getPicklistValues().
  • B. Use Schema.RecordTypeInfo returned by
    RecordType.SObjectType.getDescribe().getRecordTypeInfos().
  • C. Use Schema.RecordTypeInfo returned by
    Opportunity.SObjectType.getDescribe().getRecordTypeInfos().
  • D. Use Schema.PicklistEntry returned by Opportunity.SObjectType.getDescribe().getPicklistValues().

Answer: C,D

 

NEW QUESTION 210
What are three characteristics of change set deployments? (Choose three.)

  • A. They use an all or none deployment model.
  • B. They can be used to transfer records.
  • C. They can be used only between related organizations.
  • D. They require a deployment connection.
  • E. They can be used to deploy custom settings data.

Answer: A,C,D

 

NEW QUESTION 211
Which two queries can a developer use in a visualforce controller to protect against SOQL injection Vulnerabilities? Choose 2 answers

  • A. String qryString = 'SELECT Id FROM Contact WHERE Name LIKE :qryNAme'; List queryResults = Database.query(qryString);
  • B. String qryName = '%' + String.escpaeSingleQuotes(name)+ '%'; String qryString = 'SELECT Id FROM Contact WHERE Name LIKE :qryNAme'; List queryResults = Database.query(qryString);
  • C. String qryName = '%' + name '%'; String qryString = 'SELECT Id FROM Contact WHERE Name LIKE
    :qryNAme'; List queryResults = Database.query(qryString);
  • D. String qryName = '%' + String.enforceSecurityChecks(name)+ '%'; String qryString = 'SELECT Id FROM Contact WHERE Name LIKE :qryNAme'; List queryResults = Database.query(qryString);

Answer: A,D

 

NEW QUESTION 212
A developer wants multiple test classes to use the same set of test data. How should the developer create the test data?

  • A. Use the seealldata=true annotation in each test class
  • B. Reference a test utility class in each test class
  • C. Define a variable for test records in each test classes
  • D. Create a test setup method for each test class

Answer: A

 

NEW QUESTION 213
What are two testing consideration when deploying code from a sandbox to production? Choose 2 answers

  • A. 75% of test must execute without failure
  • B. Apex code requires 100% coverage
  • C. Apex code requires 75% coverage
  • D. 100% of test must execute without failure

Answer: C,D

 

NEW QUESTION 214
What is a good practice for a developer to follow when writing a trigger? (Choose 2)

  • A. Using synchronous callouts to call external systems.
  • B. Using @future methods to perform DML operations.
  • C. Using the Set data structure to ensure distinct records.
  • D. Using the Map data structure to hold query results by ID.

Answer: C,D

 

NEW QUESTION 215
What must the Controller for a Visulforce page utilized to override the standard Opportunity view button?

  • A. The StandardSetController to support related lists for pagination
  • B. A constructor that initialized a private Opportunity variable.
  • C. The Opportunity StandardController for pre-built functionality
  • D. A callback constructor to reference the StandardController

Answer: C

 

NEW QUESTION 216
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 a workflow rule with an outbound message action.
  • B. Create an escalation rule to the hiring manager.
  • C. Create a Process Builder with an outbound message action.
  • D. Create an auto response rule to the candidate.

Answer: A

 

NEW QUESTION 217
How can a developer warn users of SOQL governor limit violations in a trigger?

  • A. Use ApexMessage.Message() to display an error message after the number of SOQL queries exceeds the limit.
  • B. Use PageReference.setRedirect() to redirect the user to a custom Visualforce page before the number of SOQL queries exceeds the limit.
  • C. Use Messaging.SendEmail() to continue the transaction and send an alert to the user after the number of SOQL queries exceeds the limit.
  • D. Use Limits.getQueries() and display an error message before the number of SOQL queries exceeds the limit.

Answer: D

 

NEW QUESTION 218
What is a capability of the <ltng:require> tag that is used for loading external Javascript libraries in Lightning Component? (Choose three.)

  • A. Loading scripts in parallel.
  • B. Specifying loading order.
  • C. Loading externally hosted scripts.
  • D. Loading files from Documents.
  • E. One-time loading for duplicate scripts.

Answer: A,B,E

 

NEW QUESTION 219
Which type of controller should a developer use to include a list of related records for a Custom Object record on a Visualforce page without needing additional test coverage?

  • A. Custom Controller
  • B. Controller Extension
  • C. List Controller
  • D. Standard Controller

Answer: D

 

NEW QUESTION 220
When a user edits the Postal Code on an Account, a custom Account text field named "Timezone" must be update based on the values in a PostalCodeToTimezone__c custom object. How should a developer implement this feature?

  • A. Build an Account custom Trigger.
  • B. Build an account Approval Process
  • C. Build an Account Workflow Rule.
  • D. Build an Account Assignment Rule.

Answer: A

 

NEW QUESTION 221
......

Salesforce CRT-450 Actual Questions and Braindumps: https://www.testkingpass.com/CRT-450-testking-dumps.html

Pass CRT-450 Exam with Updated CRT-450 Exam Dumps PDF 2022: https://drive.google.com/open?id=1UhtBR1AnD2bVsNyMisGQFHgP_Ap2Ccln