function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
bilal malikbilal malik 

Salesforce Platform Developer 1 Questions

Q1)The Review_c object have a lookup relationship to the job_Application_c object. The job_Application_c object has a master detail relationship up to the position_c object. The relationship is based on the auto populated defaults?

What is the recommended way to display field data from the related Review _C records a Visualforce page for a single Position_c record?

Select one of the following:

A. Utilize the Standard Controller for Position_c and cross-object Formula Fields on the Job_Application_c object to display Review_c data.
B. Utilize the Standard Controller for Position_c and a Controller Extension to query for Review_c data. (Ans)
C. Utilize the Standard Controller for Position_c and expression syntax in the Page to display related Review_c through the Job_Applicacion_c inject.
D. Utilize the Standard Controller for Position_c and cross-object Formula Fields on the Review_c object to display Review_c data.


Q2)An sObject named Application _c has a lookup relationship to another sObject named Position_c. Both Application _c and Position c have a picklist field named Status_c. When the Status c field on Position __c is updated, the Status_c field on Application _c needs to be populated automatically with the same value, and execute a workflow rule on Application c. Flow can a developer accomplish this?

      A. By changing Application c.Status_c into a roll-up summary field.
      B. By changing Application c.Status_c into a formula field.  (ANS) [Why ? it should be C]
      C. By using an Apex trigger with a DML operation.
       D. By configuring a cross-object field update with a workflow.

Q3)when would a developer use a custom controller instead of a controller extension?[Why it is not option B]

1)When a VF Page needs to replace the functionality of a standard controller.(Ans)
2)When a VF Page doesn't reference a single primary object.
3)When a VF Page shouldn't enforce permissions or field level security.(Ans)
4)When a VF Page needs to add new actions to a standard controller.

Q4)Which statement about the Lookup Relationship between a Custom Object and a Standard Object is correct? 

    A. The Lookup Relationship on the Custom Object can prevent the deletion of the Standard Object
    B. The Lookup Relationship cannot be marked as required on the page layout for the Custom Object.
    C. The Custom Object will be deleted when the referenced Standard Object is deleted.(Ans)
    D.  The Custom Object inherits security from the referenced Standard Object.

Q5)Valid statement about Apex classes:

A.  a exception classes must end with the world exception
B.  a class can have multiple levels of inner classes
C.  the default modifier for a class is private
bilal malikbilal malik
Kindly answer these questions!!!
Saqib Qamar 5Saqib Qamar 5
1 - B
2 - C
4 - A 
5 - AC