Download Salesforce.CRT-450.RealTests.2020-03-12.74q.vcex

Download Exam

File Info

Exam Salesforce Certified Platform Developer I
Number CRT-450
File Name Salesforce.CRT-450.RealTests.2020-03-12.74q.vcex
Size 294 KB
Posted Mar 12, 2020
Download Salesforce.CRT-450.RealTests.2020-03-12.74q.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 statement results in an Apex compiler error? 


  1. Map<Id,Leas> lmap = new Map<Id,Lead>([Select ID from Lead Limit 8]);
  2. Date d1 = Date.Today(), d2 = Date.ValueOf(‘2018-01-01’);
  3. Integer a=5, b=6, c, d = 7;
  4. List<string> s = List<string>{‘a’,‘b’,‘c’);
Correct answer: D



Question 2

What are two benefits of the Lightning Component framework? (Choose two.)


  1. It simplifies complexity when building pages, but not applications.
  2. It provides an event-driven architecture for better decoupling between components.
  3. It promotes faster development using out-of-box components that are suitable for desktop and mobile devices.
  4. It allows faster PDF generation with Lightning components.
Correct answer: BC



Question 3

A method is passed a list of generic sObjects as a parameter. 
What should the developer do to determine which object type (Account, Lead, or Contact, for example) to cast each sObject?


  1. Use the first three characters of the sObject ID to determine the sObject type.
  2. Use the getSObjectType method on each generic sObject to retrieve the sObject token.
  3. Use the getSObjectName method on the sObject class to get the sObject name.
  4. Use a try-catch construct to cast the sObject into one of the three sObject types.
Correct answer: B



Question 4

When viewing a Quote, the sales representative wants to easily see how many discounted items are included in the Quote Line Items. 
What should a developer do to meet this requirement?


  1. Create a trigger on the Quote object that queries the Quantity field on discounted Quote Line Items.
  2. Create a Workflow Rule on the Quote Line Item object that updates a field on the parent Quote when the item is discounted.
  3. Create a roll-up summary field on the Quote object that performs a SUM on the quote Line Item Quantity field, filtered for only discounted Quote Line Items.
  4. Create a formula field on the Quote object that performs a SUM on the Quote Line Item Quantity field, filtered for only discounted Quote Line Items.
Correct answer: C



Question 5

While writing a test class that covers an OpportunityLineItem trigger, a Developer is unable to create a standard PriceBook since one already exists in the org. 
How should the Developer overcome this problem?


  1. Use Test.getStandardPricebookId() to get the standard PriceBook ID.
  2. Use @IsTest(SeeAllData=true) and delete the existing standard PriceBook.
  3. Use Test.loadData() and a Static Resource to load a standard Pricebook.
  4. Use @TestVisible to allow the test method to see the standard PriceBook.
Correct answer: A



Question 6

Which two Apex data types can be used to reference a Salesforce record ID dynamically? (Choose two.)


  1. ENUM
  2. sObject
  3. External ID
  4. String
Correct answer: AD



Question 7

Which two platform features align to the Controller portion of MVC architecture? (Choose two.)


  1. Process Builder actions
  2. Workflow rules
  3. Standard objects
  4. Date fields
Correct answer: AB



Question 8

A developer needs to test an Invoicing system integration. After reviewing the number of transactions required for the test, the developer estimates that the test data will total about 2 GB of data storage. Production data is not required for the integration testing. 
Which two environments meet the requirements for testing? (Choose two.)


  1. Developer Sandbox
  2. Full Sandbox
  3. Developer Edition
  4. Partial Sandbox
  5. Developer Pro Sandbox
Correct answer: BD



Question 9

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 10

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: AD









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