Top 10 Visualforce questions with answers

Top 10 Visualforce questions with answers

Below is the list of Top 10 Visualforce questions with answers. This quiz will test your knowledge about standard controllers, custom controllers and controllers extensions. Here are the questions:

Question 1: Which of the following is related to View layer in MVC Model ?
A. Workflow Rules

B. Validation Rules

C. Visual force Pages

D. Custom Objects

E. Apex Class

Answer: C

 

Question 2: Which of the following represents controller in Model – View – Controller Model ?
A. Tabs

B. Page Layouts

C. Custom Fields

D. Visual Force Pages

E. Apex Classes

Answer: E

 

Question 3: What is a Standard List controller?
A. Standard List Controller allows to display list of records in visualforce page.
B. Standard List Controller  provides the salesforce in built functionality to interact with visualforce pages.
C.Standard List Controller is an apex class that implements customized logic to visualfore pages.

Answer: A

 

Question 4: How to associate a standard List controller with visualforce page?
A. <apex:page standardController=”Account”>
B. <apex:page standardController=”Account” recordSetVar=”accounts”>
C.  <apex:page controller=”Account” >
D.  <apex:page Controller=”MYControllerName” extensions=”Class1, Class2,..”>

Answer: B

 

Question 5: How to associate a standard controller with Visualforce page?

A. <apex:page standardController=”Account”>
B. <apex:page standardController=”Account” recordSetVar=”accounts”>
C.  <apex:page controller=”Account” >
D.  <apex:page Controller=”MYControllerName” extensions=”Class1, Class2,..”>

Answer: A

 

Question 6: How to associate a custom controller with visualforce page?

A. <apex:page standardController=”Account”>
B. <apex:page standardController=”Account” recordSetVar=”accounts”>
C.  <apex:page controller=”Account” >
D.  <apex:page Controller=”MYControllerName” extensions=”Class1, Class2,..”>

Answer: C

 

Question 7: Which of the following syntax is wrong?

A.<apex:page standardController=”ControllerName” extensions=”Class1, Class2,..”>

B.<apex:page Controller=”MYControllerName” extensions=”Class1, Class2,..”>

C. <apex:page standardController=”MYControllerName” Controller=”MyController”>

Answer: C

 

8: What happens if you use the standard controller on a page and the user doesn’t have access to the object?

A. The page will display a insufficient privileges error.

B. You won’t get any error.

Answer: A

 

Question 9: True/False: custom controllers execute in system mode.

A. False

B. True

Answer: B

 

Question 10:True/False: standard controller execute in system mode

A. True

B. False

Answer: False. Standard controllers execute in user mode (with sharing).

 

Checkout the complete course : https://courses.mytutorialrack.com/p/visualforce-tutorial-for-beginners

This Post Has 13 Comments

  1. berkey

    I love your blog.. very nice colors & theme. Did you make this website yourself or did you hire someone to do it for you? Plz answer back as I’m looking to create my own blog and would like to know where u got this from. many thanks|

  2. Heidy Plotnik

    Decent blog page! That i absolutely love the simplest way it’s easy on my own view as well as information and facts are well written. Now i’m wanting to know earn money may perhaps be warned whenever a new place has been produced. I have subscribed to your own rss feed which inturn have to the secret! Possess a good daytime!

  3. Terrance Mendez

    you will have an incredible blog right here! would you prefer to make some invite posts on my blog?

  4. Hosea Veloso

    Hey very nice web site!! Man .. Beautiful .. Amazing .. I’ll bookmark your web site and take the feeds also…I am happy to find a lot of useful info here in the post, we need develop more techniques in this regard, thanks for sharing. . . . . .

  5. feed

    I really like your blog.. very nice colors & theme. Did you design this website yourself or did you hire someone to do it for you? Plz respond as I’m looking to create my own blog and would like to find out where u got this from. appreciate it|

  6. thefeed

    Quality posts is the important to attract the users to pay a visit the web page, that’s what this web page is providing.|

  7. Aldo Neu

    Aw, this became an exceptionally good post. In notion I have to invest writing similar to this additionally – taking time and actual effort to create a great article… but what can I say… I procrastinate alot through no indicates seem to go completed.

  8. thefeed

    hi!,I love your writing very so much! percentage we communicate extra approximately your post on AOL? I require an expert in this house to resolve my problem. Maybe that is you! Taking a look ahead to look you. |

  9. thefeed

    I used to be able to find good advice from your blog posts.|

  10. Lino Sawin

    Great beat ! I wish to apprentice while you amend your web site, how can i subscribe for a blog website? The account aided me a appropriate deal. I had been a little bit acquainted of this your broadcast provided bright clear idea

  11. Hiya! Quick question that’s entirely off topic. Do you know how to make your site mobile friendly? My blog looks weird when viewing from my iphone4. I’m trying to find a theme or plugin that might be able to correct this problem. If you have any suggestions, please share. With thanks!|

  12. Saul Doucett

    I like firefox MUCH better than IE but on certain occasions i would have a ff winfdow open and it shows the window error thing. i go back and it was firefox is already running or something s i cant use it….

Leave a Reply