Exam CRT-450 Topic 2 Question 95 Discussion

Actual exam question for Salesforce's CRT-450 exam
Question #: 95
Topic #: 2
How is a controller and extension specified for a custom object named "Notice" on a Visualforce page?

Suggested Answer: D Vote an answer

When creating a Visualforce page that uses a standard controller and a controller extension for a custom object named Notice__c, the correct syntax is:
<apex:page standardController="Notice__c" extensions="myControllerExtension"> Option D: apex standardController="Notice__c" extensions="myControllerExtension" Correct Syntax.
standardController attribute specifies the standard controller for the custom object Notice__c.
extensions attribute specifies the name of the Apex class myControllerExtension that extends the functionality of the standard controller.
Reference:
Options Not Applicable:
Option A: apex
controller="Notice__c" extensions="myControllerExtension"
Incorrect.
The controller attribute is used for custom controllers, not standard controllers.
Option B and C:
Syntax errors and incorrect attributes make these options invalid.
Conclusion:
The correct way to specify a controller and extension for the Notice__c object is Option D.

by Hale at Jul 21, 2026, 02:55 AM

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Nick name: Submit Cancel
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

0
0
0
10