YouTube Icon

Interview Questions.

Top 100+ Visualforce Interview Questions And Answers - Jun 02, 2020

fluid

Top 100+ Visualforce Interview Questions And Answers

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

Answer :

Using techniques we will bind.

Getter:Will go back price from controller to vf web page

Setter:Will skip value from vf web page to controller

Action:Will redirect to every other web page.

Question 2. What Is The Purpose Of Controllers?

Answer :

Controllers provide the information and moves which might be to be had to a Visualforce page.

HTML five Interview Questions
Question three. Which Objects Have Associated Standard Controllers?

Answer :

All general and custom objects that can be accessed thru the API have related controllers

Question four. What Is Included With Each Standard Controller?

Answer :

Data: the fields for the associated object document which can be API reachable, consisting of the related records (5 up/1 down). 

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

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

Answer :

If you need data past the boundaries of what's to be had within the fashionable controller or movements that cross past the furnished wellknown actions.

Salesforce Admin Interview Questions
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, taking into consideration custom statistics units and custom movements.  Extensions leverage the prevailing information and actions inside a fashionable or custom controller.  Custom controllers need to comprise all records and actions that need to be performed with the aid of the web page.  Extensions that amplify wellknown controller permit for the pages which use the ones extensions to be used in custom buttons, preferred button overrides, and over declarative features.

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

Answer :

The controller must declare a constructor which takes some other controller explicitly. 

For example:

public myControllerExtension(ApexPages.StandardController stdController)

this.Acct = (Account)stdController.GetRecord(); 

Apex Tutorial Salesforce Developer Interview Questions
Question 8. Why Are Properties Helpful In Controllers?

Answer :

Properties can automatically create fashionable getters and setters whilst nonetheless taking into account their customizations.  They prevent from both writing the tedious code and analyzing the muddle when reviewing code.

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

Answer :

The only rule is that setters fireplace before movement strategies.  Aside from that, there is no guaranteed order.

ADO.Net Interview Questions
Question 10. What Are Some Apex Classes That Are Commonly Used Within Controllers?

Answer :

StandardController, SelectOption, PageReference, Message, and so on.

CSS Advanced Tutorial
Question 11. How Are Wizard Controllers Different From Other Controllers?

Answer :

The  main problems is they need to deal with more than one pages and that they must preserve the nation across the ones pages.

Apex Interview Questions
Question 12. What Are The Effects Of Using The Transient Key Word?

Answer :

The temporary key phrase prevents the statistics from being stored into the view state.  This need to be used for terribly brief variables.

HTML 5 Interview Questions
Question thirteen. When Is A Component Controller Required For Custom Components?

Answer :

A issue controller is required whilst business logic is required to decide the way to render the element.

Javascript Advanced Tutorial
Question 14. What Kind Of Content Can Be Included In A Visualforce Page?

Answer :

Any content material that may be rendered in a browser (HTML, JavaScript, and so on.).

Question 15. What Do !Expressions Refer To When Used In Visualforce Components?

Answer :

Expressions talk to either facts or moves that are made available to the web page from the controller

CSS Advanced Interview Questions
Question 16. What Are The Ways That Visualpages Can Be Incorporated Into The Rest Of Your User Interface?

Answer :

Basically, through hyperlinks, buttons, tabs, and inline frames.

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

Answer :

No, it isn't usually important.  You can use wellknown controllers and VF thing tags to perform quite a piece.  Apex turns into necessary when you want either a custom set of information or custom movements to be to be had from the page.

Javascript Advanced Interview Questions
Question 18. What Are Attributes? What Is The Syntax For Including Them?

Answer :

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

Salesforce Admin Interview Questions
Question 19. What Are Three Types Of Bindings Used In Visualforce? What Does Each Refer To?

Answer :

Data bindings seek advice from the statistics set within the controller. 
Action bindings refer to movement methods within the controller. 
Component bindings discuss with different Visualforce components
Question 20. What Is The Main Difference Between Using Datatable Vs. Pageblocktable Tags?

Answer :

PageBlock: For default salesforce trendy layout.

DataTable:To design customformats

Advanced jQuery Interview Questions
Question 21. Which Tag Is Used With Both Radio Buttons And Picklists To Create The Selectable Values?

Answer :

<Apex:selectoption> tag

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

Answer :

One principal controller (of direction, it can have extensions or custom additives may want to have controllers, and so on.).  The controller is assigned within the <apex:page> tag.

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.

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

Answer :

pageblock

Salesforce Developer Interview Questions
Question 25. What Are Static Resources?

Answer :

Static sources are a brand new kind of garage in Salesforce especially designed to be used in Visualforce pages.  They are methods to store pictures, flash documents, stylesheets, and different web assets at the Salesforce servers that can be cached for higher page overall performance.

Question 26. What Are Some Examples Of Javascript Events?

Answer :

Onmouseover, onclick and so forth.

Salesforce Crm Interview Questions
Question 27. What Is Ajax Typically Used For In Visualforce?

Answer :

AJAX is commonly used for partial web page updates in Visualforce.  In s-controls, the AJAX toolkit turned into the soap (XML over HTTP) consumer that gave you access to the force.Com Web Services API.

ADO.Net Interview Questions
Question 28. What Is The Purpose Of <script> Tags?

Answer :

Script tags will let you create JavaScript (or different sorts) functions that may be used inside your pages

Question 29. What Are The Different Ajax Action Tags? What Does Each Do?

Answer :

actionStatus: used to display begin and forestall statuses of AJAX requests.

ActionSupport: used to name a second issue while an occasion takes place to the first aspect.

ActionPoller: just like actionSupport, but the event is based totally on a timer instead of a user motion.

ActionFunction: affords support for invoking a controller motion from JavaScript code the usage of an AJAX request via defining a new JavaScript function.

ActionRegion: used to demarcate which parts of the web page the server need to reprocess.

Salesforce Lightning Interview Questions
Question 30. How Can You Create Partial Page Refreshes?

Answer :

Basically, you want to define the segment of the web page this is going to refresh (usually with a panel of kinds), after which define the event so that it will purpose the refresh.  The approach adjustments relying on if the location being refreshed is the same as the one dealing with the event.  It also relies upon on in case you are just processing something on the server, or in case you need the UI to alternate.

Question 31. What Is The Purpose Of Creating Attributes On Components?

Answer :

By permitting the element to take parameters thru an characteristic, you can make the aspect more flexible and reusable

Question 32. What Are The Global Key Words?

Answer :

We have global keywords like component,User,url,current page etc., to get right of entry to various values from components on page, from person object or from url or from contemporary web page fields. To get entry to price from each supply, we've one-of-a-kind worldwide keywords. One such key-word is explained in above query(!$thing)

Various global key phrases are:

URL
USER
PROFILE
Resource
Component
Current page
Page reference and so forth.
Salesforce Report And Dashboard Interview Questions
Question 33. How Can You Access Visualforce Components Values Into A Javascript?

Answer :

Using Component worldwide variable, we can access visualforce components in javascript. Let us think, we need to apply id of an apex area with id=”afield”.

So, we can use the !$Component.Afield syntax to use properties of the field in javascript.

Let us assume, we need to save the sphere’s value in java script, then we can use like underneath:

<script>

Var a =’ record.GetElementById('!$element.Afield').Fee’;

</script>

Apex Interview Questions




CFG