← All CSA Flashcard Decks

Apex Programming 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 Apex Programming flashcards as text
  1. What is the maximum batch size for Batch Apex execute() method?

    Answer: 200

    The default and maximum batch size for the execute() method in Batch Apex is 200 records per batch.

  2. Which keyword allows an Apex class to be accessed from any namespace, including managed packages?

    Answer: global

    'global' is the most permissive access modifier and makes the class accessible across all namespaces and packages.

  3. What does the Database.insert() method return that insert DML statement does not?

    Answer: A SaveResult array with success/error info per record

    Database.insert() returns a list of Database.SaveResult objects with success status and errors for each record, allowing partial success.

  4. In a trigger, how do you access the old version of a record after an update?

    Answer: Trigger.old

    Trigger.old is a List of the old record versions available in update and delete triggers.

  5. Which SOQL clause is used to filter records in a parent-to-child relationship query?

    Answer: WHERE Id IN (subquery)

    Salesforce SOQL uses semi-joins with WHERE Id IN (SELECT ... FROM ...) to filter based on related records.

  6. How many future method calls are allowed per Apex transaction?

    Answer: 50

    A single Apex transaction can invoke up to 50 future (@future) method calls.

  7. Which System method is used to assert that two values are equal in an Apex test?

    Answer: System.assertEquals()

    System.assertEquals(expected, actual) verifies that two values are equal and fails the test if they are not.

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