Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
AI Code Review for Finance Developers: Practice Tests
New
2 students

AI Code Review for Finance Developers: Practice Tests

72 AI-written pull requests in Python and Java with seeded money, date and payment bugs, every answer proven by a test
Created byStephen Leonard
Last updated 10/2026
English

What you'll learn

  • Find the real defects in AI-generated pull requests for financial code, and approve the correct ones with confidence
  • Spot money bugs in Python and Java: floats in the money path, the wrong rounding mode or stage, lost allocation pennies, wrong currency minor units
  • Catch Java BigDecimal and java.time traps: equals vs compareTo, scale, DECIMAL32, zone conversion and clock-change arithmetic
  • Review date and time logic: day-count conventions, business-day settlement, month-end rolls and timezone handling
  • Review payment flows: idempotency keys, retries, duplicate and out-of-order events, reconciliation and approval limits
  • Choose the test that proves a bug, and recognise a proposed test that is itself wrong

Included in This Course

216 questions
  • Money and rounding (Python)36 questions
  • Money and rounding (Java)36 questions
  • Settlement dates and timezones (Python)36 questions
  • Settlement dates and timezones (Java)36 questions
  • Payments and event processing (Python)36 questions
  • Payments and event processing (Java)36 questions

Description

This course contains the use of artificial intelligence.

AI assistants write plausible code, and in financial systems "plausible" is where the expensive bugs hide: a rounding mode that is almost right, a timezone that holds except on clock-change weekends, a retry that charges twice. This course trains the skill that catches them: reviewing a pull request against its requirements.

You get six practice tests built on 72 realistic pull requests, each written the way an AI assistant writes code. For every PR you download its description, its diff and the code before and after, review it as you would at work, and answer three questions:

  • Which of these statements are true? Each statement says that a line of the PR is wrong, or that it is right. Real defects sit next to plausible look-alikes that are not bugs, plus an option to approve the PR as it is.

  • What does this code return? For a given input, what the PR actually does, not what it was meant to do.

  • Which proposed test fails on this PR? Choose the test that would catch the bug, or spot the test that is itself wrong.

Every answer is proven. Each defect has a test that fails on the PR and passes on the reference fix. Each "not a defect" option has a test showing the code is correct. Each "what does it return" answer was produced by running the code, and each proposed test was run against the PR. The explanations tell you the failing input, not an opinion.

What the six tests cover:

  • Money and rounding, in Python and in Java: floats in the money path, the wrong rounding mode or stage, lost allocation pennies, currency minor units, and BigDecimal traps (equals against compareTo, scale, DECIMAL32)

  • Settlement dates and timezones, in Python and in Java: business-day settlement, day counts, month-end rolls, clock changes, and java.time

  • Payments and event processing, in Python and in Java: idempotency keys, retries, duplicate and out-of-order events, reconciliation and approval limits

  • AI-specific failure modes throughout: hallucinated or misused APIs, swallowed exceptions, tautological tests and spec drift

How the tests are built:

  • 6 tests × 36 questions: 12 pull requests per test, 3 questions each

  • Some PRs are correct. Approving good code is part of the skill, so not every question has a bug to find.

  • Answer keys are balanced across the options, and the correct answer is not systematically the longest or the shortest

You need working knowledge of Python or Java. No finance background is needed: each PR's description states the business rules it must follow.

Who this course is for:

  • Developers in banks, fintechs and trading firms who review code written with AI assistants
  • Tech leads who want a sharper eye for subtle money, date and payment bugs before they reach production
  • Engineers moving into financial software who want to learn its failure modes from realistic examples