Free CRT-450 Exam Braindumps
Certified Platform Developer Questions 181–185 (page: 38)

Updated On: 10-Feb-2026

A developer is asked to write negative tests as part of the unit testing for a method that calculates a person's age based on birth date. What should the negative tests include?

  1. Assert that future dates are rejected by the method.
  2. Assert that past dates are accepted by the method.
  3. Assert that a null value is accepted by the method.
  4. Throwing a custom exception in the unit test.

Answer(s): A



A developer is creating an enhancement to an application that will allow people to be related to their employer.
Which date model should be used to track the data?

  1. Create a junction object to relate many people to many employers trough master-detail relationship
  2. Create a junction object to relate many people to many employers trough lookup relationship
  3. Create a lookup relationship to indicate that a person has an employer
  4. Create a master detail relationship to indicate that a person has an employer

Answer(s): C



When are code coverage calculations updated?

  1. When unit tests are run on an organization.
  2. When changes are made to an organization's configuration.
  3. When a deployment is validated.
  4. When Apex code is saved.

Answer(s): A



A developer wants to store a description of a product that can be entered on separate lines by a user during product setup and later displayed on a Visualforce page for shoppers. Which field type should the developer choose to ensure that the description will be searchable in the custom Apex SOQL queries that are written?

  1. Text Area (Rich)
  2. Text Area (Long)
  3. Text
  4. Text Area

Answer(s): D



How can a developer refer to, or instantiate a PageReference in Apex? Choose 2 answers

  1. By using a PageReference with a partial or full URL.
  2. By using the Page object and a Visualforce page name.
  3. By using the ApexPages.Page() method with a Visualforce page name.
  4. By using the PageReference.Page() method with a partial or full URL.

Answer(s): A,B



Viewing page 38 of 77
Viewing questions 186 - 190 out of 439 questions


Post your Comments and Discuss Salesforce CRT-450 exam prep with other Community members:

AI Tutor AI Tutor 👋 I’m here to help!