Exact-Match Integer Answer Phone Quiz
A complete integer-answer Form and custom exact-match grading trigger with an auditable accepted-answer key.
Works on any free AI · Best tool: Any AI chat (ChatGPT, Claude, Gemini)
✅ How to use this effectively
- 1. State whether signs, leading zeros and equivalent decimal forms should be accepted.
- 2. Verify each numerical key and inspect the accepted-answer table.
- 3. Run the script and open the respondent and grading-sheet links from Logs.
- 4. Submit test values such as a correct integer, a wrong integer and a blank before class.
🔧 If it is not right, reply with this: If wrong, reply with: "Rebuild the exact-match key and trigger, listing every accepted string explicitly and rejecting all unlisted responses without changing the mathematics."
THE PROMPT
ROLE: Act as an integer-answer assessment setter, exact-key auditor and Apps Script grader developer.
CONTEXT: A teacher needs a phone quiz of integer-answer questions for [EXAM] with transparent exact matching instead of ambiguous free-text marking.
INPUTS — FILL EVERY PLACEHOLDER:
- [EXAM]
- [TOPICS]
- [QUESTION COUNT]
- [INTEGER RANGE]
- [MARKS PER QUESTION]
- [ACCEPTED FORMAT RULES]
DO THIS:
1. Create original integer-answer questions whose final responses lie in the stated range.
2. Give full solutions and a check-this-yourself link for every numerical key.
3. Print an accepted-answer table that distinguishes exact strings, trimmed whitespace and explicitly allowed equivalent forms.
4. Generate one complete executable FormApp script with text-response items, a linked grading sheet and an installable submission trigger.
5. Have the trigger compare each trimmed response against only the listed accepted strings and record per-item and total scores.
6. Log the Form and Sheet URLs and provide positive, negative, zero and blank test cases.
WORKED LINK EXAMPLE — COPY THIS EXACT ENCODING PATTERN:
Example task: Create an integer-answer quiz containing x^2-13x+40=0 and ask for the larger root.
Expected result or check target: The verified roots are 5 and 8, so the exact key for the larger-root item is the string 8.
check this yourself
CHECK → https://www.wolframalpha.com/input?i=solve%20x%5E2-13x%2B40%3D0
(paste-fallback: solve x^2-13x+40=0)
Encoding note: The space is %20, ^ is %5E, + is %2B and = is %3D.
OUTPUT FORMAT:
1. INTEGER QUIZ REVIEW COPY
2. VERIFIED EXACT-MATCH KEY
3. ACCEPTED RESPONSE STRINGS
4. COMPLETE FORMAPP SCRIPT WITH CUSTOM GRADER
5. RUN IT — script.google.com → New project → paste → Run → View → Logs
6. GRADER TEST MATRIX
QUALITY AND TOOL GUARDRAILS:
- Output one COMPLETE executable Google Apps Script code block using FormApp plus an installed submission trigger; do not rely on unsupported native exact-answer setup for TextItem questions.
- After the code, print exactly: script.google.com → New project → paste → Run → View → Logs.
- Do not silently accept mathematically equivalent text unless it appears in the approved accepted-answer list.
- Never claim a URL creates the form and never invent a real-exam source.
- Never describe an AI answer as verified. Every external check must be labelled “check this yourself” for the teacher or student to inspect personally.
- Do not invent exam facts, source citations, marks distributions, tool IDs or inaccessible links. Separate mathematical proof from computational checking.
=== TOOL-LINK OUTPUT CONTRACT — follow every rule exactly ===
1. You may output clickable links ONLY to: wolframalpha.com/input?i= · symbolab.com/solver?query= ·
geogebra.org/graphing|geometry|3d|cas?command= · math.stackexchange.com/search?q= · oeis.org/search?q= ·
artofproblemsolving.com/community/q1_ · khanacademy.org/search?page_search_query= ·
overleaf.com/docs?encoded_snip= · latex.codecogs.com/png.image? · docs.google.com/forms/...viewform?usp=pp_url
(Forms only with entry.N IDs I paste in) · plus any URL I give you or that appears in this prompt's whitelist table.
2. NEVER output: desmos.com links with query strings (they load blank), invented geogebra.org/m/ IDs, Khan topic
URLs, DIKSHA dial codes, Wolfram quiz/demo slugs not in my table, or mathsolver.microsoft.com (dead site).
3. Write queries in plain calculator syntax (x^2, sqrt(x), pi, 3/4) — never LaTeX — EXCEPT Overleaf and CodeCogs
payloads, which are LaTeX.
4. Percent-encode the query part: space→%20, +→%2B, ^→%5E, =→%3D, [→%5B, ]→%5D; in LaTeX payloads also
\→%5C, {→%7B, }→%7D, %→%25, #→%23, &→%26, newline→%0A. GeoGebra ?command= exception: encode ONLY + as %2B;
leave ( ) = ^ ; as typed.
5. One link per line, formatted exactly: CHECK → <full raw URL> (no markdown brackets, nothing after the URL).
6. Directly below every link, print: (paste-fallback: <the un-encoded query or commands>)
7. Before printing any link, silently decode your own URL and confirm it reproduces the query character-for-character;
rebuild it if not. If a URL would exceed 1,800 characters (Overleaf: 6,000), print only the paste-fallback.
8. Label every link "check this yourself" — never claim the link proves your answer is correct.
9. On phones these links must be opened in a browser, not an installed app — say this once at the end.