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.)
Double d = 3.14159;
Integer I = 3.14159;
Decimal d = 3.14159;
Long l = 3.14159;
Question 57
How can a developer set up a debug log on a specific user?
It is not possible to setup debug logs for users other than yourself.
Ask the user for access to their account credentials, log in as the user and debug the issue.
Create Apex code that logs code actions into a custom object.
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?
Create one Visualforce Page for use by both profiles.
Use a new Support Manager permission set.
Create a separate Visualforce Page for each profile.
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.)
Process Builder
Apex Trigger
Custom Button
Workflow Rule
Question 60
What are three characteristics of static methods? (Choose three.)
Initialized only when a class is loaded
A static variable outside of the scope of an Apex transaction
Allowed only in outer classes
Allowed only in inner classes
Excluded from the view state for a Visualforce page