CRT-450 Practice Test

CRT-450 Practice Test practice questions, page 17 of 18, with answer review and explanations.

Question 81

What is the debug output of the following Apex code? Decimal theValue; System.debug(theValue);

  1. 0.0
  2. null
  3. Undefined
  4. 0

Question 82

A developer needs to provide a way to mass edit, update, and delete records from a list view. In which two ways can this be accomplished? (Choose two.)

  1. Create a new Visualforce page and Apex Controller for the list view that provides mass edit, update, and delete functionality.
  2. Download a managed package from the AppExchange that provides customizable Enhanced List Views and buttons.
  3. Download an unmanaged package from the AppExchange that provides customizable mass edit, update, and delete functionality.
  4. Configure the user interface and enable both inline editing and enhanced lists.

Question 83

Which type of code represents the Model in the MVC architecture when using Apex and Visualforce pages?

  1. A Controller Extension method that saves a list of Account records
  2. Custom JavaScript that processes a list of Account records
  3. A list of Account records returned from a Controller Extension method
  4. A Controller Extension method that uses SOQL to query for a list of Account records

Question 84

Requirements state that a child record is deleted when its parent is deleted, and a child can be moved to a different parent when necessary. Which type of relationship should be built between the parent and child objects in Schema builder to support these requirements?

  1. Master-Detail relationship
  2. Child relationship
  3. Lookup relationship from the parent to the child
  4. Lookup relationship from the child to the parent

Question 85

Which tag should a developer include when styling from external CSS is required in a Visualforce page?

  1. apex:includeStyles
  2. apex:includeScript
  3. apex:require
  4. apex:stylesheet