Visualforce Interview Questions & Answers

  1. Question 1. What Are Expressions Used In Pages To Bind In Controllers?

    Answer :

    Using methods we can bind.

    Getter:Will return value from controller to vf page

    Setter:Will pass value from vf page to controller

    Action:Will redirect to another page.

  2. Question 2. What Is The Purpose Of Controllers?

    Answer :

    Controllers provide the data and actions that are available to a Visualforce page.

  3. HTML 5 Interview Questions

  4. Question 3. Which Objects Have Associated Standard Controllers?

    Answer :

    All standard and custom objects that can be accessed via the API have associated controllers

  5. Question 4. What Is Included With Each Standard Controller?

    Answer :

    Data: the fields for the associated object record that are API accessible, including the related records (5 up/1 down). 

    Actions: save, delete, view, edit, cancel.

  6. HTML 5 Tutorial

  7. Question 5. When Do You Need To Go Beyond A Standard Controller And Code Custom Apex?

    Answer :

    If you need data beyond the limits of what is available in the standard controller or actions that go beyond the provided standard actions.

  8. Salesforce Admin Interview Questions

  9. Question 6. Compare And Contrast Custom Controllers And Controller Extensions. How Are They The Same? How Are They Different?

    Answer :

    Both allow for custom code to be used, allowing for custom data sets and custom actions.  Extensions leverage the existing data and actions within a standard or custom controller.  Custom controllers must contain all data and actions that need to be executed by the page.  Extensions that extend standard controller allow for the pages which use those extensions to be used in custom buttons, standard button overrides, and over declarative features.

  10. Question 7. What Identifies A Controller As Being An Extension?

    Answer :

    The controller must declare a constructor which takes another controller explicitly. 

    For example:

    public myControllerExtension(ApexPages.StandardController stdController)

    {

    this.acct = (Account)stdController.getRecord(); 

    }

  11. Apex Tutorial
    Salesforce Developer Interview Questions

  12. Question 8. Why Are Properties Helpful In Controllers?

    Answer :

    Properties can automatically create standard getters and setters while still allowing for their customizations.  They save you from both writing the tedious code and reading the clutter when reviewing code.

  13. Question 9. In What Order Do Methods Fire Within A Controller?

    Answer :

    The only rule is that setters fire before action methods.  Aside from that, there is no guaranteed order.

  14. ADO.Net Interview Questions

  15. Question 10. What Are Some Apex Classes That Are Commonly Used Within Controllers?

    Answer :

    StandardController, SelectOption, PageReference, Message, etc.

  16. CSS Advanced Tutorial

  17. Question 11. How Are Wizard Controllers Different From Other Controllers?

    Answer :

    The two main issues is that they must handle multiple pages and they must maintain the state across those pages.

  18. Apex Interview Questions

  19. Question 12. What Are The Effects Of Using The Transient Key Word?

    Answer :

    The transient key word prevents the data from being saved into the view state.  This should be used for very temporary variables.

  20. HTML 5 Interview Questions

  21. Question 13. When Is A Component Controller Required For Custom Components?

    Answer :

    A component controller is required when business logic is required to decide how to render the component.

  22. Javascript Advanced Tutorial

  23. Question 14. What Kind Of Content Can Be Included In A Visualforce Page?

    Answer :

    Any content that can be rendered in a browser (HTML, JavaScript, etc.).

  24. Question 15. What Do {!expressions} Refer To When Used In Visualforce Components?

    Answer :

    Expressions refer to either data or actions that are made available to the page from the controller

  25. CSS Advanced Interview Questions

  26. Question 16. What Are The Ways That Visualpages Can Be Incorporated Into The Rest Of Your User Interface?

    Answer :

    Basically, via links, buttons, tabs, and inline frames.

  27. Question 17. Is It Always Necessary To Know Apex To Create Visualforce Pages? When Does It Become Necessary?

    Answer :

    No, it is not always necessary.  You can use standard controllers and VF component tags to accomplish quite a bit.  Apex becomes necessary when you need either a custom set of data or custom actions to be available from the page.

  28. Javascript Advanced Interview Questions

  29. Question 18. What Are Attributes? What Is The Syntax For Including Them?

    Answer :

    Attributes are modifiers to the main tag that belong after the tag name in the start tag.  The syntax is attributeName=“attributeValue”

  30. Salesforce Admin Interview Questions

  31. Question 19. What Are Three Types Of Bindings Used In Visualforce? What Does Each Refer To?

    Answer :

    • Data bindings refer to the data set in the controller. 
    • Action bindings refer to action methods in the controller. 
    • Component bindings refer to other Visualforce components
  32. Question 20. What Is The Main Difference Between Using Datatable Vs. Pageblocktable Tags?

    Answer :

    PageBlock: For default salesforce standard format.

    dataTable:To design customformats

  33. Advanced jQuery Interview Questions

  34. Question 21. Which Tag Is Used With Both Radio Buttons And Picklists To Create The Selectable Values?

    Answer :

    tag

  35. Question 22. How Many Controllers Can A Page Have? Where Is The Controller For A Page Assigned?

    Answer :

    One main controller (of course, it could have extensions or custom components could have controllers, etc.).  The controller is assigned in the tag.

  36. Question 23. There Are A Series Of Layout Components That All Help Recreate The Traditional Salesforce Page Layout Style Very Easily. What Name Do They Share?

    Answer :

    pageBlock.

  37. Sql Loader Interview Questions

  38. Question 24. Which Tags Should Be Used To Automatically Bring In The Salesforce Label And Default Widget For A Field?

    Answer :

    pageblock

  39. Salesforce Developer Interview Questions

  40. Question 25. What Are Static Resources?

    Answer :

    Static resources are a new type of storage in Salesforce specifically designed for use in Visualforce pages.  They are ways to store images, flash files, stylesheets, and other web resources on the Salesforce servers that can be cached for better page performance.

  41. Question 26. What Are Some Examples Of Javascript Events?

    Answer :

    Onmouseover, onclick etc.

  42. Salesforce Crm Interview Questions

  43. Question 27. What Is Ajax Typically Used For In Visualforce?

    Answer :

    AJAX is primarily used for partial page updates in Visualforce.  In s-controls, the AJAX toolkit was the soap (XML over HTTP) client that gave you access to the force.com Web Services API.

  44. ADO.Net Interview Questions

  45. Question 28. What Is The Purpose Of

  46. Apex Interview Questions