Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

A short training quiz deck

Create a short teaching sequence that separates the question from its answer. A third slide turns the explanation into a team exercise.

Start with
A training question, explanation, and discussion prompts
Generate
PPTX + PDF
Generated PowerPoint example: A short training quiz deck
Slide 1 · Generated by the example below

How it works

  1. Describe each teaching moment

    Supply a title, explanation, point list, label, and background color to a local slide-building function.

  2. Keep the text native

    Use editable text boxes so a trainer can revise the question and discussion prompts in PowerPoint.

  3. Review the sequence

    Inspect the question, answer, and exercise previews in order. The PDF provides a convenient read-through copy.

The rest of the document

A short training quiz deck: Slide 2
Slide 2
A short training quiz deck: Slide 3
Slide 3

The C# source

This is the complete example file used to generate the download. The walkthrough runner creates the output directory and produces the additional previews.

using System.IO;
using OfficeIMO.PowerPoint;

namespace OfficeIMO.Examples.Showcase.Workflows;

/// <summary>Creates a short question-and-answer deck from structured training content.</summary>
internal static class TrainingQuiz {
    internal static void Create(string folder) {
        using PowerPointPresentation deck = PowerPointPresentation.Create(Path.Combine(folder, "example.pptx"));
        AddSlide("What should happen first?",
            "A user reports that a shared service is unavailable.",
            new[] { "A / Restart every component", "B / Confirm impact and name the incident owner", "C / Wait for more reports" },
            "DISCUSS / 60 SECONDS", "EAF1FB");
        AddSlide("Confirm impact. Establish ownership.",
            "The incident owner coordinates the response and keeps communication consistent.",
            new[] { "Identify who and what is affected.", "Record the time and the observed symptoms.", "Choose the next check before making changes." },
            "ANSWER / B", "E7F6ED");
        AddSlide("Put the lesson into practice",
            "Use a recent example from your own service.",
            new[] { "Who would take ownership?", "Where would you record impact?", "How would the team communicate updates?" },
            "TEAM EXERCISE / 5 MINUTES", "F7EEDC");
        deck.Save();

        void AddSlide(string title, string description, string[] points, string label, string fill) {
            PowerPointSlide slide = deck.AddSlide();
            slide.AddRectangleCm(0, 0, 33.866, 19.05, "Background").Fill(fill).Stroke(fill, 0);
            var eyebrow = slide.AddTextBoxCm(label, 1.6, 1.2, 29, 1);
            eyebrow.FontSize = 15;
            eyebrow.Color = "526179";
            var heading = slide.AddTextBoxCm(title, 1.6, 3, 29, 2.3);
            heading.FontSize = 32;
            heading.Color = "17365D";
            var introduction = slide.AddTextBoxCm(description, 1.6, 5.8, 29, 2);
            introduction.FontSize = 21;
            introduction.Color = "526179";
            for (int index = 0; index < points.Length; index++) {
                var point = slide.AddTextBoxCm(points[index], 2.2, 8.6 + index * 2.2, 28, 1.7);
                point.FontSize = 23;
                point.Color = "17365D";
            }
        }
    }
}
Open the C# source file

Run it from the source checkout

Clone the OfficeIMO repository and run this command from its root with the .NET 10 SDK. The first run restores the example project's dependencies.

dotnet run --project OfficeIMO.Examples -f net10.0 -- --showcase-workflows --showcase-example powerpoint-training-quiz

The files are written to OfficeIMO.Examples/bin/Debug/net10.0/Documents/Workflows/powerpoint-training-quiz/. To use the example in your application, start with the PowerPoint guide and its package setup.

Downloads and scope

What the preview shows

The linked C# example generates this file. The runner reopens and validates the PPTX, then exports each slide and a PDF review copy.

What to keep in mind

This is a static presentation. It does not score answers, record attendance, or implement clickable quiz branching.

PowerPoint API reference · Artifact hashes and provenance

Continue with another example

Example source

Download source