Visualforce Interview Questions

Picking a career in Salesforce is only the ideal decision for each IT expert. The main thing is that you ought to be set up for everything before the interview. The initial step before looking for anything else is to go through a list of VisualForce Interview Question Answers for freshers and experienced to clear an interview effectively.

Read Best VisualForce Interview Questions

We have listed the best VisualForce Interview Questions which are typically asked by the interview panel at the time of job methodology.

#1 Clarify the need or significance of controller extension. Explain with an example.

  1. Tabula report: In this report, the total is shown in the tabular format.
  2. Matrix report: A top to bottom report wherein the there is both column based and line based grouping.
  3. Summary report:  It is a kind of report in which grouping is on the basis of the column.
  4. Joined report: A joining of at least two reports into one.

#2 How are VisualForce pages built? Clarify the working.

 With the Properties help, you may permit making standard getters or setters naturally and still, they are accessible for customization. The real advantage of Properties is that you don’t need to compose monotonous code for quite a long time and besides you don’t need to read the clutters while looking into the code.

#3 Compare and differentiate controllers extensions and custom controller. How are they similar? How are they extraordinary?

 Both consider custom code to be utilized, taking into consideration custom data sets and custom activities. The extension mainly uses the current information and activities inside a standard or custom controller.

The Custom controllers must contain all data and activities that should be executed by the page. The extension that mainly expands the standard controller takes into account all the pages which usually use those extensions to be used as a part of the standard button overrides, custom buttons,  and over declarative features.

#4 How to Rundown the different sorts of Reports accessible in Salesforce

 In Salesforce you can connect the standard and the custom objects record in a detailed list. The Object relationship review mainly does it. Different kinds of relationships can be made keeping in mind the end goal to interface the particular business cases with specific clients. It is conceivable to make custom relationship on the object and characterize different relationship types.

#5 Tell me something about Apex Governor Limits?

 
Visualforce pages that usually contain a form part additionally include the hidden form field and encrypted field that exemplifies the page’s view state. This view state is consequently created, and as the name recommends, it holds the page state – the state that incorporates the parts, field values, and the controller state.

Best Practices to lessen the view state size

  1. Minimize the number of forms on the page. Utilize apex:actionRegion as opposed to utilizing at least two forms.
  2. Refine your SOQL just to retrieve the information required by the page.
  3. All private and public data members in the Custom, Standard, and Controller extensions are saved.
  4. Mark any of the Apex variables that is not important to the view state as Transient. (The transient variables are not merely passed to see state and consequently not put away in View State)
  5. Create wizards with as few pages as could be expected under the circumstances
  6. Use outputLink parts rather than commandLink or commandButton segments where conceivable as they don’t should be settled in shape.

#6 What are three binding types used as a part of Visualforce? What does each allude to? 

  Given below are the three binding types:
  1. Data binding basically refers to the set of data in the controller.
  2. Action binding usually refers to the action techniques in the controller.
  3. Component binding simple refers to other Visualforce parts
  4. What do you mean by static resources?

#7 Is it generally important to know Apex to make Visualforce pages? At the point when does it end up important?

 No, it isn’t generally fundamental. You can utilize standard controllers and VF part labels to achieve a considerable amount. The apex ends up essential when you require either a custom data set or custom activities to be accessible from the page.

#8 What type of content can be incorporated into a Visualforce page?

 Yes, the properties are useful in the controllers. The Properties can naturally make standard getters and setters while as yet taking into account their customizations. They spare you from both written work the repetitive code and reading the messiness while code reviewing.

#9 How might you make a partial page refresh?

Essentially, you have to characterize the segment of the page that you wish to refresh (regularly with a board of sorts), and afterward distinguish the event that will cause the page to refresh. The technique changes if the area being updated is the same as the one taking care of the event. It likewise relies upon if you are merely handling something on the server, or on the off chance that you require the UI to change.

#10 Tell us something about Visualforce Page.

 Visualforce is new markup language which is introduced by Salesforce, and by using this language, we can even render the standard styles of the salesforce. We can at present utilize HTML here in Visualforce. Each Visualforce tag dependably starts with the “apex” namespace. The Visual Markup language and the business logic are used in the designing part of the page.

#11 What do you mean by Object relationship overview?

  1. actionStatus: used to show begin and stop statuses of AJAX requests.
  2. actionSupport: used for calling the second component when the event happens to the primary component.
  3. actionPoller: like actionSupport, yet an event depends on the timer rather than a client activity.
  4. actionFunction: offers help for invoking the controller activity from the JavaScript code utilizing an AJAX request by characterizing another JavaScript work.
  5. actionRegion: used to divide which parts of the page the server ought to reprocess.

#12 If you need to work with VisualForce editor at that point how can you enable it?

 For this reason, you have to get to client details page and just enable the ‘development mode’ choice there to utilize the VisualForce Editor.

#13 What is AJAX ordinarily used for in Visualforce?

AJAX is principally used for the partial page updates in the Visualforce. In s-controls, AJAX toolbox was a soap customer that gave you access to the force.com Web Service API.

#14 What do you mean by Properties when you utilize Controllers?

 If you needed to execute any business logic just like how to render a part and many other things than the component controllers are required for the custom components.

#15 Tell different ways that Visualpages can be consolidated into whatever is left of your UI?

It is exceptionally valuable and essential idea presented by the salesforce as of late. It enables to the software engineer to expand the usefulness of existing custom controller or the standard controller.

A Visualforce can have a single standard controller or Custom controller, however, numerous controller extensions.

We can state that the custom extension is the supporter of custom or the standard controller.

Example of the above case:

If there is one controller that is written and utilized by the various visualforce pages and one of them needs some additional logic. At that point, instead of writing that particular logic to the controller class (Which is utilized by numerous visualforce pages) we can make a controller extension and apply to that page as it were.

Ask a Question