Skip to main content

CRT-450 Real Exam Questions

Salesforce Certified Platform Developer I (CRT-450)

629 questions available · Page 1 of 63

Updated Exam DumpsVerified AnswersPass Guarantee

Get Complete Exam Dumps
Question 1 Multiple choice

Which declarative method helps ensure quality data? (Choose 3)

  1. A

    Validation Rules

  2. B

    Workflow alerts

  3. C

    Exception Handling

  4. D

    Lookup Filters

  5. E

    Page Layouts

Show answer and explanation

Correct answers: A, D, E

Question 2 Single choice

A developer has two custom controller extensions where each has a save() method.

Which save() method will be called for the following Visualforce page?

  1. A

    ExtensionA save()

  2. B

    ExtensionB save()

  3. C

    standard controller save()

  4. D

    Runtime error will be generated

Show answer and explanation

Correct answer: C

Question 3 Multiple choice

Which two statements are acceptable for a developer to use inside procedural loops?

  1. A

    Contact con = new Contact();

  2. B

    ContactList.remove(i);

  3. C

    Delete contactList;

  4. D

    Account a = [SELECT id, Name FROM account WHERE id = : con.AccountId LIMIT 1];

Show answer and explanation

Correct answers: A, B

Question 4 Single choice

A developer working on a time management application wants to make total hours for each timecard available to applications users. A timecard entry has a Master-Detail relationship to a timecard.

Which approach should the developer use to accomplish this declaratively?

  1. A

    A visualforce page that calculates the total number of hours for a timecard and displays it on the page.

  2. B

    An Apex trigger that uses an Aggregate Query to calculate the hours for a given timecard and stores it in a custom field.

  3. C

    A Roll-up Summary field on the Timecard Object that calculates the total hours from timecard entries for that timecard.

  4. D

    A Process Builder process that updates a field on the timecard entry is created.

Show answer and explanation

Correct answer: C

Question 5 Multiple choice

What is the accurate statement about with sharing keyword? choose 2 answers

  1. A

    Inner class do not inherit the sharing setting from the container class

  2. B

    Both inner and outer class can be declared as with sharing

  3. C

    Either inner class or outer classes can be declared as with sharing but not both

  4. D

    Inner class inherit the sharing setting from the container class

Show answer and explanation

Correct answers: A, B

Question 6 Single choice

Universal Containers has a Visualforce page that displays a table of every Container_c. being ....... Is falling with a view state limit because some of the customers rent over 10,000 containers.

What should a developer change about the Visualforce page to help with the page load errors?

  1. A

    Use Lazy loading and a transient List variable.

  2. B

    Use JavaScript remoting with SOQL Offset.

  3. C

    Implement pagination with an OffsetController.

  4. D

    Implement pagination with a StandardSetController,

Show answer and explanation

Correct answer: D

Question 7 Single choice

A developer wants multiple test classes to use the same set of test dat

  1. A

    How should the developer create the test data?

  2. B

    Define a variable for test records in each test classes

  3. C

    Create a test setup method for each test class

  4. D

    Use the seealldata=true annotation in each test class

  5. E

    Reference a test utility class in each test class

Show answer and explanation

Correct answer: C

Question 8 Multiple choice

For which three items can 2 trace flag be configured? Choose 3 answers

  1. A

    Flow

  2. B

    Apex Class

  3. C

    User

  4. D

    Apex Trager

  5. E

    Visualforce

Show answer and explanation

Correct answers: B, C, D

Question 9 Single choice

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

    controller="Case" and extensions="myControllerExtension"

  2. B

    extensions="myControllerExtension"

  3. C

    controller="myControllerExtension"

  4. D

    standardController="Case" and extensions="myControllerExtension"

Show answer and explanation

Correct answer: D

Question 10 Single choice

Opportunity opp=[SELECT Id,StageName FROM Opportunity LIMIT 1]; Given the code above,how can a developer get the label for the StageName field?

  1. A

    Call Opportunity.StageName.Label

  2. B

    Call Opportunity.StageName.getDescribe().getLabel()

  3. C

    Call Opp.StageName.getDescri

  4. D

    Call Opp.StageName.Label

Show answer and explanation

Correct answer: B