CRT-450 Practice Test practice questions, page 4 of 18, with answer review and explanations.
Question 16
What is the requirement for a class to be used as a custom Visualforce controller?
Any top-level Apex class that has a constructor that returns a PageReference
Any top-level Apex class that extends a PageReference
Any top-level Apex class that has a default, no-argument constructor
Any top-level Apex class that implements the controller interface
Question 17
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 attribute(s) to correctly implement controller functionality?
controller=ג€Caseג€ and extensions=ג€myControllerExtensionג€
extensions=ג€myControllerExtensionג€
controller=ג€myControllerExtensionג€
standardController=ג€Caseג€ and extensions=ג€myControllerExtensionג€
Question 18
A newly hired developer discovers that there are multiple triggers on the case object. What should the developer consider when working with triggers?
Developers must dictate the order of trigger execution.
Trigger execution order is based on creation date and time.
Unit tests must specify the trigger being tested.
Trigger execution order is not guaranteed for the same sObject.
Question 19
How should a developer prevent a recursive trigger?
Use a ג€one trigger per objectג€ pattern.
Use a static Boolean variable.
Use a trigger handler.
Use a private Boolean variable.
Question 20
Which three options can be accomplished with formula fields? (Choose three.)
Generate a link using the HYPERLINK function to a specific record.
Display the previous value for a field using the PRIORVALUE function.
Determine if a datetime field value has passed using the NOW function.
Return and display a field value from another object using the VLOOKUP function.
Determine which of three different images to display using the IF function.