CRT-450 Practice Test

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

Question 56

Which two number expressions evaluate correctly? (Choose two.)

  1. Double d = 3.14159;
  2. Integer I = 3.14159;
  3. Decimal d = 3.14159;
  4. Long l = 3.14159;

Question 57

How can a developer set up a debug log on a specific user?

  1. It is not possible to setup debug logs for users other than yourself.
  2. Ask the user for access to their account credentials, log in as the user and debug the issue.
  3. Create Apex code that logs code actions into a custom object.
  4. Set up a trace flag for the user, and define a logging level and time period for the trace.

Question 58

A developer needs to create a Visualforce page that displays Case data. The page will be used by both support reps and support managers. The Support Rep profile does not allow visibility of the Customer_Satisfaction__c field, but the Support Manager profile does. How can the developer create the page to enforce Field Level Security and keep future maintenance to a minimum?

  1. Create one Visualforce Page for use by both profiles.
  2. Use a new Support Manager permission set.
  3. Create a separate Visualforce Page for each profile.
  4. Use a custom controller that has the with sharing keywords.

Question 59

When an Account's custom picklist field called Customer Sentiment is changed to a value of `Confused`, a new related Case should automatically be created. Which two methods should a developer use to create this case? (Choose two.)

  1. Process Builder
  2. Apex Trigger
  3. Custom Button
  4. Workflow Rule

Question 60

What are three characteristics of static methods? (Choose three.)

  1. Initialized only when a class is loaded
  2. A static variable outside of the scope of an Apex transaction
  3. Allowed only in outer classes
  4. Allowed only in inner classes
  5. Excluded from the view state for a Visualforce page