Practice Problems Schema Framework

Use conditional-logic schema generation to keep Practice Problems markup aligned with real page state and avoid stale or invalid static templates.

  • Google no longer shows Practice problems rich results: deprecation was announced Nov 5, 2025, and support was removed from Search Console rich result reporting, the Rich Results Test and Search appearance filters starting Jan 2026.
  • Quiz and Question markup still carries schema.org meaning for AI assistants and other education platforms, and Education Q&A remains a separate, documented Google feature for flashcard pages.
  • Move problems with one answer to Education Q&A flashcard markup. Keep multiple choice or checkbox markup only for non-Google consumers: Google's Education Q&A treats any non-Flashcard question as ineligible.

When To Use It

Google Search Central RetiredDocumentation changelog

The documentation page was removed in Jan 2026. Google still documents Quiz markup for Education Q&A flashcards, so the framework below converts open-answer problems to flashcards.

Key Implementation Documentation Highlights

  • Google lists no required properties for Practice problems: the documentation is gone and the feature is retired.
  • The live Google path for Quiz is Education Q&A: hasPart with Question items, each with eduQuestionType Flashcard, text and exactly one acceptedAnswer with text.
  • Education Q&A recommends about (a Thing with name) and educationalAlignment (AlignmentObject with alignmentType educationalSubject or educationalLevel and targetName).
  • Education Q&A is limited to education-related searches in English, Portuguese, Spanish (Mexico only) and Vietnamese.
  • General structured data policies still apply: mark up only problems visible on the page and keep the page indexable.

Rules the framework enforces before it emits markup:

  • Problems not visible on the page, or a noindex or canonicalized URL: emit nothing.
  • Open problems with one answer become Flashcard questions; a problem without question or answer text suppresses the markup.
  • Multiple choice and checkbox problems are left out by default, because one non-Flashcard question makes the whole Quiz ineligible for Education Q&A. Set includeChoiceQuestions only when a non-Google consumer needs them.
  • Choice questions without a correct option are dropped, and answer positions are numbered from 1 in display order.

Template Approach

const pageData = {
  title: "Linear equations practice set",
  question: "Solve for x: 3x + 5 = 20",
  answer: "x = 5"
};

const staticTemplate = {
  "@context": "https://schema.org",
  "@type": "Quiz",
  "name": pageData.title,
  "hasPart": [
    {
      "@type": "Question",
      "eduQuestionType": "Flashcard",
      "text": pageData.question,
      "acceptedAnswer": { "@type": "Answer", "text": pageData.answer }
    }
  ]
};

Conditional-logic Framework

function isAbsoluteUrl(value) {
  if (typeof value !== "string") return false;
  try {
    const url = new URL(value);
    return url.protocol === "https:" || url.protocol === "http:";
  } catch {
    return false;
  }
}

function compact(value) {
  if (Array.isArray(value)) {
    const items = value.map(compact).filter((item) => item !== undefined);
    return items.length ? items : undefined;
  }
  if (value && typeof value === "object") {
    const out = {};
    for (const [key, item] of Object.entries(value)) {
      const kept = compact(item);
      if (kept !== undefined) out[key] = kept;
    }
    return Object.keys(out).length ? out : undefined;
  }
  if (value === null || value === undefined || value === "") return undefined;
  return value;
}

function chooseQuestionType(problem) {
  // open problems with one answer map to Flashcard, the only Quiz question type Google still documents
  const options = problem.options || [];
  if (!options.length) return "Flashcard";
  const correct = options.filter((o) => o.correct).length;
  if (correct === 0) return null;
  return correct === 1 ? "Multiple choice" : "Checkbox";
}

function buildQuestion(problem, type) {
  const text = (problem.question || "").trim();
  if (!text) return null;
  if (type === "Flashcard") {
    const answer = (problem.answer || "").trim();
    if (!answer) return null;
    return {
      "@type": "Question",
      "eduQuestionType": "Flashcard",
      "text": text,
      "acceptedAnswer": { "@type": "Answer", "text": answer } // exactly one
    };
  }
  // choice questions: schema.org semantics only, no Google feature reads them
  const answers = problem.options.map((o, i) => ({ "@type": "Answer", "position": i + 1, "text": o.text }));
  return {
    "@type": "Question",
    "eduQuestionType": type,
    "text": text,
    "suggestedAnswer": answers.filter((a, i) => !problem.options[i].correct),
    "acceptedAnswer": answers.filter((a, i) => problem.options[i].correct)
  };
}

function buildPracticeQuizSchema(source) {
  // Practice problems rich results were retired in Jan 2026; Google now reads Quiz only as
  // Education Q&A flashcards. Emit only for visible, indexable problem sets.
  if (source.indexable === false) return null;
  if (!isAbsoluteUrl(source.url)) return null;
  if (source.canonicalUrl && source.canonicalUrl !== source.url) return null;
  if (source.problemsVisible !== true) return null;

  // choice questions make the Quiz ineligible for Education Q&A; include them only on request
  const hasPart = (source.problems || [])
    .map((p) => ({ problem: p, type: chooseQuestionType(p) }))
    .filter(({ type }) => type === "Flashcard" || (type && source.includeChoiceQuestions === true))
    .map(({ problem, type }) => buildQuestion(problem, type));
  if (!hasPart.length || hasPart.includes(null)) return null;

  const schema = {
    "@context": "https://schema.org",
    "@type": "Quiz",
    "name": source.title,
    "about": source.concept ? { "@type": "Thing", "name": source.concept } : null,
    "educationalAlignment": (source.alignments || [])
      .filter((a) => ["educationalSubject", "educationalLevel"].includes(a.type) && a.targetName)
      .map((a) => ({ "@type": "AlignmentObject", "alignmentType": a.type, "targetName": a.targetName })),
    "hasPart": hasPart
  };

  return compact(schema);
}

// Usage:
// buildPracticeQuizSchema({
//   url: "https://www.example.com/algebra/linear-equations/practice",
//   canonicalUrl: "https://www.example.com/algebra/linear-equations/practice",
//   indexable: true,
//   problemsVisible: true,
//   title: "Linear equations practice set",
//   concept: "Solving linear equations",
//   alignments: [
//     { type: "educationalSubject", targetName: "Algebra" },
//     { type: "educationalLevel", targetName: "Grade 8" }
//   ],
//   problems: [
//     { question: "Solve for x: 3x + 5 = 20", answer: "x = 5" },
//     { question: "Solve for y: 2y - 7 = 9", answer: "y = 8" },
//     { question: "Which value of x satisfies 4x = 28?", options: [{ text: "6" }, { text: "7", correct: true }, { text: "8" }] }
//   ]
// });

The Output As An Entity Graph

The conditional-logic output above, parsed in your browser and drawn as the graph a crawler builds from it. Every nested object is a node and the property that holds it is the edge. Tap a node to inspect its properties, or drag to rearrange.

Why Conditional Logic Is Better Than Static Templates

  • Routes each problem to the right question type, so open problems keep a Google path through Education Q&A.
  • Keeps choice questions out of the Google-facing markup by default instead of silently making the page ineligible.
  • Builds answers from the same records that render the problem set, so markup cannot drift from visible content.
  • Gives one place to change if Google changes Quiz support again.

Property Reference

Google retired the Practice Problems rich result, so its documentation no longer lists required or recommended properties. The framework above is still valid schema.org markup and still describes the page to search engines and AI assistants.

Schema.org types used

Explore Other Schema Framework Pages

Product Snippet Use for product pages where pricing, availability, and product identity are visible to users. Product Open Product Variants Use when one product comes in variants such as size or color, grouped with ProductGroup. ProductGroup Open Profile Page Use for creator or contributor profile pages where identity attributes and ownership are explicit. ProfilePage Open Q&A Use for pages where users submit questions and community or editorial answers are displayed. QAPage Open Recipe Use for recipe pages with complete ingredients, instructions, and preparation details. Recipe Open Return Policy Use to publish a merchant return policy once at the organization level, with offer-level overrides. MerchantReturnPolicy Open Review Snippet Use when a page publishes genuine reviews tied to a clearly identified product, service, or entity. Review Open Shipping Policy Use to publish shipping rates, delivery times and destinations once at the organization level. ShippingService Open Site Name Use on the home page so Google shows the preferred site name in search results. WebSite Open Retired Sitelinks Search Box Use on sites with a functioning internal search endpoint that can accept URL query parameters. WebSite Open Software App (Beta) Use for software product pages that describe platform support and application category clearly. SoftwareApplication Open Limited Speakable Use for news-style pages where specific text segments are appropriate for text-to-speech playback. SpeakableSpecification Open Subscription and Paywalled Content Use for pages with restricted sections so Google can distinguish free previews from protected content. CreativeWork Open Limited Vacation Rental Use for rental property detail pages where booking-relevant amenities and location signals are explicit. VacationRental Open Retired Vehicle Listing Use for inventory pages selling vehicles with standardized listing fields and offer information. Car Open Video Use for pages where a primary video is embedded and key media metadata is visible on-page. VideoObject Open Article Use for editorial pages where the visible content is a complete article with a clear byline and publication timestamps. Article Open Limited Book Actions Use when your page helps users read, preview, or purchase books through clearly described actions. Book Open Breadcrumb Use on pages that belong to a clear hierarchy and display navigational trail links users can follow. BreadcrumbList Open Carousel Use when a page lists multiple related entities in a scannable sequence that can be surfaced as cards. ItemList Open Course Use for educational offerings where curriculum details, provider identity, and delivery context are explicit. Course Open Dataset Use for dataset landing pages so datasets are discoverable in Google Dataset Search with license, creator and download details. Dataset Open Discussion Forum Use for forum and community threads where a primary post and subsequent replies are publicly visible. DiscussionForumPosting Open Limited Education Q&A Use for educational question-answer pages where a single canonical answer and supporting context are visible. Quiz Open Employer Aggregate Rating Use on pages that publish employer rating aggregates from a clear and policy-compliant review source. EmployerAggregateRating Open Retired Estimated Salary Use for compensation insight pages that present transparent salary ranges for specific occupations and locations. Occupation Open Event Use for upcoming events with a real-world or virtual occurrence, schedule, and location context. Event Open Retired Fact Check Use for fact-checking pages that evaluate a specific claim with a transparent rating methodology. ClaimReview Open Retired Home Activities Use for virtual classes and activities where participation details and timing are clearly listed. Event Open Retired How-To Use for instructional content that teaches a process through ordered steps and actionable detail. HowTo Open Image Metadata Use on image pages and image hosts that expose ownership and licensing information to search engines. ImageObject Open Job Posting Use for active job listings that include role details, hiring entity, and location/salary context. JobPosting Open Retired Learning Video Use for educational videos where the learning objective and pedagogical structure are explicit. LearningResource Open Local Business Use for physical businesses serving local customers with publicly verifiable contact and location details. LocalBusiness Open Loyalty Program Use to publish a loyalty program and its tiers once at the organization level, so member prices and member shipping can reference them. MemberProgram Open Math Solvers Use for pages that solve mathematical expressions and present step-by-step computational guidance. MathSolver Open Merchant Listing Use on pages where a product can be bought, with price, availability, shipping and return details. Product Open Limited Movie Use for movie detail pages with canonical film information and transparent metadata attribution. Movie Open Organization Use for official organization pages to clarify brand identity and authoritative entity signals. Organization Open

Implement Practice Problems Schema Frameworks Correctly

Get implementation support for conditional schema architecture, validation, and deployment governance.