Exam · Build your first app with an AI coding assistant

Take the exam and earn your certificate.

A real, server-scored exam for this course. Score strictly above 80% to pass and get a genuine, verifiable certificate.

Before you start

We ask for your name and email first, the same as a PDF download, so we know you are here and your certificate can carry the right name.

We privately record your name, email and request IP for this exam request. Read the privacy notice and retention policy.

Visit Mickai on LinkedIn

Complete the security check before submitting.

Cloudflare Turnstile helps prevent automated submissions. How this check uses data.

You can retake the exam any time. Each attempt draws a fresh set of questions.

Written practice, ungraded

Write your response in your own notes, then compare it with the sample answer. This practice is separate from the scored exam and does not affect your certificate.

Practice 1

You want a page showing a price after a percentage discount. Without asking an assistant, write a one-paragraph brief and five worked examples.

Compare with a sample answer

Model brief: one file, discount.html, inline HTML, CSS and JavaScript, no libraries, no network, nothing stored. Input: a price in pounds, two decimals at most, and a whole discount from 0 to 100 per cent. Output: discount and new price to the penny, halves up. Refuse bad input with a message. Model examples: 80.00 at 25% gives 60.00. 19.99 at 15%: discount 2.9985 rounds to 3.00, price 16.99. 0.99 at 50%: 0.495 rounds up to 0.50, price 0.49. 10.00 at 100%: 0.00. 10.00 at 101%: refused. Yours will differ; check it fixes rounding and refusals.

Compare your own work with the supplied worked answer and explain differences. This practice is not automatically graded.

Practice 2

Change one thing, using a saved copy, and let the self-check judge it.

Compare with a sample answer

The self-check prints FAIL ["1000000","100","100"] and ends 1 check(s) FAILED: that case uses 100 people, which the page now refuses. The change is wanted, so the check is stale. Replace it with ["1000000", "100", "20", Array(20).fill(10000000)] and add ["90", "10", "21", "error"]. The next run ends All 13 checks passed.

Compare your own work with the supplied worked answer and explain differences. This practice is not automatically graded.

Practice 3

Review the flawed example against the checklist.

Compare with a sample answer

1. Sending (question 3): sendBeacon posts the bill and headcount to another site, unasked (MDN: an HTTP POST meant for analytics). Delete it. 2. Lost pennies (question 7): shares are rounded down in floating point, so with no tip, 100 among 3 shows £33.33 each (99.99 in all) and 0.58 between 2 shows £0.28 each, because 0.29 * 100 is 28.999999999999996 in Edge. Count whole pence and share the remainder. 3. Bad input (question 6): with 90.00 and 10%, zero people shows £Infinity, -2 people £-49.50 and 2.5 people becomes 2; an empty bill shows £NaN. Validate and refuse. 4. innerHTML (question 5): a tip of <b>hi</b> became a real bold element. Use textContent. (Tested in Edge from a local server, requests blocked: each click sent a POST such as bill=90&people=4. Opened as a file, it shows nothing: beacons need HTTP.)

Compare your own work with the supplied worked answer and explain differences. This practice is not automatically graded.

Practice 4

Work out five cases by hand first, then check them on the page and in the self-check.

Compare with a sample answer

(a) Tip 31.25, total 281.25 = 28,125 pence: 4,687 each with 3 left, so 3 people pay £46.88 and 3 pay £46.87: ["250.00", "12.5", "6", [4688, 4688, 4688, 4687, 4687, 4687]]. (b) The half-penny tip rounds up to 1p; total 6p, £0.03 each: ["0.05", "10", "2", [3, 3]]. (c) Refused, tip above 100: ["50.00", "100.1", "2", "error"]. (d) 700 pence over 100 people, 7p each: ["7.00", "0", "100", Array(100).fill(7)]. (e) Tip 1,000.00, total £1,001,000.00 (only the bill is capped): ["1000000", "0.1", "1", [100100000]]. The page showed exactly these in Edge, and the self-check ended All 17 checks passed.

Compare your own work with the supplied worked answer and explain differences. This practice is not automatically graded.

Practice 5

Write a one-page set of personal rules for using an AI coding assistant.

Compare with a sample answer

A model set (yours will differ), with the mistake each prevents in brackets. 1. Never paste secrets or other people's details; use made-up data (a leak). 2. Let an agent work only in a scratch folder of copies (lost files). 3. Read every permission prompt and ask for a dry run first (an unexplained command). 4. Check new code against the checklist before running it (hidden sending). 5. Work out answers by hand, then test the awkward cases (confident wrong sums). 6. Save a numbered copy before each change (no way back). 7. Check the tool's terms and any code licence before sharing (a breach). 8. Stop and learn when I cannot explain the code, a bug keeps returning, or real money or people's data are involved (code beyond me). Check yours covers all eight topics.

Compare your own work with the supplied worked answer and explain differences. This practice is not automatically graded.

About this exam

Is this exam graded?

Yes. Every question is scored on our server, never in your browser, and you need a score strictly above 80% to pass. The questions are a real, reviewed bank for this course, drawn fresh for each attempt.

Is it only multiple choice?

Yes. This is a multiple-choice knowledge assessment, with at least one question from each chapter in every attempt. Written exercises are separate practice and are not automatically scored. Passing does not establish practical professional competence or independently verify identity.

Is there a time limit?

Yes, 45 minutes, shown as a countdown once you start. If time runs out, whatever you have answered is submitted automatically.

Do I need to download the PDF first?

No. This course's full text is on its own page, so you can read it online and come straight here when you feel ready.

What do you do with my name and email?

We privately record your name, email, request IP, course and privacy acknowledgement for this request. Newsletter consent is separate and optional. See /privacy.html for storage and retention. A passed exam creates a server-stored named certificate. An email confirmation is not identity assurance.

Can I retake it if I fail?

Yes, straight away. Each attempt draws a fresh set of questions and shuffles the answer order, so it will not be identical to your last attempt, and an attempt can only be submitted once.

Is the certificate real?

It is a genuine, server-issued certificate with its own verification page and a unique ID, not a self-declared one. It records that you passed this course's exam on this date. It is not an accredited qualification, a professional licence or proof of employment.