← All PD1 Flashcard Decks

Apex Programming Flashcards

7 cards from real PD1 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. Which Apex collection type preserves insertion order and allows duplicate values?

    Answer: List

    A List in Apex is an ordered collection that allows duplicates, unlike Sets which are unordered and unique.

  2. What happens when an Apex trigger calls a future method?

    Answer: It is queued and runs asynchronously after the transaction commits

    Future methods are asynchronous and are enqueued to run after the current transaction successfully commits.

  3. Which keyword is used in Apex to prevent a class from being instantiated directly?

    Answer: abstract

    The `abstract` keyword marks a class that cannot be instantiated and must be extended by a concrete subclass.

  4. What is the maximum number of SOQL queries allowed per Apex transaction in a synchronous context?

    Answer: 100

    Salesforce enforces a governor limit of 100 SOQL queries per synchronous Apex transaction.

  5. Which exception type is thrown when a DML operation violates a required field or validation rule?

    Answer: DmlException

    A DmlException is thrown when a DML operation fails due to validation rules, required fields, or other data issues.

  6. In Apex, what does the `with sharing` keyword enforce?

    Answer: Record-level access based on sharing rules for the running user

    `with sharing` enforces the sharing rules of the running user, restricting record access to what they are permitted to see.

  7. Which Apex method is used to convert a JSON string into an Apex object?

    Answer: JSON.deserialize()

    JSON.deserialize() converts a JSON string into an Apex type, while JSON.serialize() does the opposite.

How this page was made: written with AI tools and published by Nathan Beja, founder of Practice Test Geeks, who is responsible for its content. 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 — Test delivery, eligibility, fees, exam format, passing score, retake fee, time limit · verified Oct 2026
Apex Programming Flashcards — PD1 Study Cards with Answers