Download Salesforce.CRT-450.Train4Sure.2018-09-16.38q.vcex

Download Exam

File Info

Exam Salesforce Certified Platform Developer I
Number CRT-450
File Name Salesforce.CRT-450.Train4Sure.2018-09-16.38q.vcex
Size 520 KB
Posted Sep 16, 2018
Download Salesforce.CRT-450.Train4Sure.2018-09-16.38q.vcex

How to open VCEX & EXAM Files?

Files with VCEX & EXAM extensions can be opened by ProfExam Simulator.

Purchase

Coupon: MASTEREXAM
With discount: 20%






Demo Questions

Question 1

Which approach should a developer take to automatically add a “Maintenance Plan” to each Opportunity that includes an “Annual Subscription” when an opportunity is closed?


  1. Build a OpportunityLineItem trigger that adds a PriceBookEntry record.
  2. Build an OpportunityLineItem trigger to add an OpportunityLineItem record.
  3. Build an Opportunity trigger that adds a PriceBookEntry record.
  4. Build an Opportunity trigger that adds an OpportunityLineItem record.
Correct answer: D



Question 2

Which two statements are true about using the @testSetup annotation in an Apex test class? (Choose two.)


  1. The @testSetup annotation cannot be used when the @isTest(SeeAllData=True) annotation is used.
  2. Test data is inserted once for all test methods in a class.
  3. Records created in the @testSetup method cannot be updates in individual test methods.
  4. The @testSetup method is automatically executed before each test method in the test class is executed.
Correct answer: D



Question 3

What is the requirement for a class to be used as a custom Visualforce controller?


  1. Any top-level Apex class that has a constructor that returns a PageReference
  2. Any top-level Apex class that extends a PageReference
  3. Any top-level Apex class that has a default, no-argument constructor
  4. Any top-level Apex class that implements the controller interface
Correct answer: D



Question 4

A Visualforce page is required for displaying and editing Case records that includes both standard and custom functionality defined in an Apex class called myControllerExtension. 
The Visualforce page should include which <apex:page> attribute(s) to correctly implement controller functionality?


  1. controller=“Case” and extensions=“myControllerExtension” 
  2. extensions=“myControllerExtension”
  3. controller=“myControllerExtension”
  4. standardController=“Case” and extensions=“myControllerExtension”
Correct answer: D



Question 5

A newly hired developer discovers that there are multiple triggers on the case object. 
What should the developer consider when working with triggers?


  1. Developers must dictate the order of trigger execution.
  2. Trigger execution order is based on creation date and time.
  3. Unit tests must specify the trigger being tested.
  4. Trigger execution order is not guaranteed for the same sObject.
Correct answer: D



Question 6

How should a developer prevent a recursive trigger?


  1. Use a “one trigger per object” pattern.
  2. Use a static Boolean variable.
  3. Use a trigger handler.
  4. Use a private Boolean variable.
Correct answer: D



Question 7

Which three options can be accomplished with formula fields? (Choose three.)


  1. Generate a link using the HYPERLINK function to a specific record.
  2. Display the previous value for a field using the PRIORVALUE function.
  3. Determine if a datetime field value has passed using the NOW function.
  4. Return and display a field value from another object using the VLOOKUP function.
  5. Determine which of three different images to display using the IF function.
Correct answer: ACE



Question 8

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


  1. Loading files from Documents.
  2. One-time loading for duplicate scripts.
  3. Specifying loading order.
  4. Loading scripts in parallel.
  5. Loading externally hosted scripts.
Correct answer: BCD



Question 9

A Platform Developer needs to write an Apex method that will only perform an action if a record is assigned to a specific Record Type. 
Which two options allow the developer to dynamically determine the ID of the required Record Type by its name? (Choose two.)


  1. Make an outbound web services call to the SOAP API.
  2. Hardcode the ID as a constant in an Apex class.
  3. Use the getRecordTypeInfosByName() method in the DescribeSObjectResult class.
  4. Execute a SOQL query on the RecordType object.
Correct answer: CD



Question 10

A developer has the controller class below. 
  
Which code block will run successfully in an execute anonymous window? 


  1. myFooController m = new myFooController();
    System.assert(m.prop !=null); 
  2. myFooController m = new myFooController();
    System.assert(m.prop ==0); 
  3. myFooController m = new myFooController();
    System.assert(m.prop ==null); 
  4. myFooController m = new myFooController();
    System.assert(m.prop ==1);
Correct answer: C









CONNECT US

Facebook

Twitter

PROFEXAM WITH A 20% DISCOUNT

You can buy ProfExam with a 20% discount!



HOW TO OPEN VCEX FILES

Use ProfExam Simulator to open VCEX files