← All CSA Flashcard Decks

Visualforce Pages Flashcards

7 cards from real CSA practice questions. Tap to flip, then mark Knew It or Still Learning — missed cards come back until you master them.

Read the first 7 Visualforce Pages flashcards as text
  1. What keyword makes an Apex variable exempt from being stored in the Visualforce view state?

    Answer: transient

    Variables declared with the transient keyword in Apex are not serialized into the Visualforce view state, reducing its size.

  2. Which component is used to display Salesforce error messages and validation rule failures on a Visualforce page?

    Answer:

    displays all messages generated for the current page, including validation errors and custom messages added via ApexPages.addMessage().

  3. How can a Visualforce page pass a record ID to a custom controller on page load?

    Answer: Using ApexPages.currentPage().getParameters()

    In the Apex controller constructor, ApexPages.currentPage().getParameters().get('id') retrieves URL parameters passed to the page.

  4. Which Visualforce feature allows a page to be used as a PDF document?

    Answer: Set renderAs="pdf" on

    Setting renderAs="pdf" on the tag instructs Salesforce to render the Visualforce page as a PDF document.

  5. What is the correct way to call a controller method when a user changes a select list value on a Visualforce page?

    Answer: Use with event="onchange" inside

    nested inside with event="onchange" triggers an AJAX call to the controller when the selection changes.

  6. Which standard controller method is used to save a record and return to the detail page?

    Answer: save()

    The save() method on the standard controller saves the current record and returns a PageReference to the record's detail page.

  7. What is the purpose of the and tags in Visualforce?

    Answer: They create reusable page templates with replaceable sections

    references a template page and fills named sections within that template, enabling page layout reuse.

How this page was made: written with AI tools. Exam facts are checked against the official sources listed below. Not reviewed by a subject-matter expert. Editorial policy

Sources & references

Exam facts on this page (fees, format, dates, passing scores) are checked against these official sources; the date is our last check. Editorial policy

  1. help.salesforce.com — Exam information · verified Oct 2026
  2. help.salesforce.com — Test delivery, eligibility, fees · verified Oct 2026