Your Score
{{ score }} / {{ totalQuestions }}
{{ correctPercent }} % Correct {{ incorrectPercent }} % Wrong {{ activeSetLabel }}

Match each signal flag to its {{ promptNoun }}. Choose how many questions you want and optionally set a seed to make a shareable quiz.

Pool size: {{ poolSize }}
{{ progressPercent }} %
{{ questionHeading }}
# Flag Your Answer Correct Copy
{{ i + 1 }} {{ row.yourAnswer }} {{ row.correctAnswer }}

                
:

Introduction:

Maritime signal flags are bold patterns of color and shape that represent letters and numerals, letting crews share short messages by sight across water and distance. A maritime signal flags practice quiz turns that reference chart into quick recognition drills, so recall feels immediate when timing matters.

You look at a flag image, pick the matching label from a small set of choices, and get a running sense of how often your first instinct is right. Practice can focus on letters, numerals, or a mixed set, and an optional seed phrase can recreate the same quiz for later review or group study.

If you are preparing for maritime training or a bridge watch assessment, a short daily run can reveal which flags you confuse and which ones you know cold. Sharing the same seed with classmates makes it easier to compare progress because everyone sees the same sequence.

A correct match only confirms pattern recognition, not that a flag set is being used correctly in real operations or that conditions are safe. Real flags can be faded, folded, or partly hidden, so treat the score as practice feedback rather than proof of readiness.

Keep sessions short, then repeat the same seed after a break to separate learning from luck. If you plan to share a seed, keep it impersonal so the link stays comfortable to pass around.

Technical Details:

The quiz measures recall of International Code of Signals (ICS) maritime signal flags by tracking how often you correctly identify a flag on the first try. Each question is multiple choice, so the key signal is your accuracy over repeated runs rather than any single streak.

A run starts by selecting a pool of flags from a chosen set, then sampling a fixed number of unique questions without repeats. For every question, the quiz builds a choice list with one correct label and three distinct distractors, then shuffles that list to avoid positional patterns.

Results are summarized as a score and a rounded percent correct, plus the complementary percent wrong. Because each question offers four options, chance performance is about 25 percent, while higher scores suggest stronger recognition and faster retrieval.

To compare sessions fairly, keep the same set and question count, and reuse the same seed when you want an identical sequence. Change the seed to generate a new drill that still draws from the same pool.

Core scoring equations

correctPercent = round ( 100×score N ) incorrectPercent = 100correctPercent
Symbols and meanings used in scoring
Symbol Meaning Unit/Datatype Source
N Total questions in the run integer Input
score Number answered correctly integer Derived
correctPercent Rounded percentage correct percent Derived
incorrectPercent Percentage wrong, computed as a complement percent Derived
seed Text seed that drives repeatable randomness string Input

Quiz construction pipeline

  1. Select a flag set, then build a pool of label and code pairs.
  2. Create a pseudorandom number generator (PRNG) from the seed text.
  3. Shuffle the pool with a Fisher and Yates shuffle, then take the first N items.
  4. For each question, pick three distinct distractors while distractors < 3.
  5. Shuffle the four answer options and store the index of the correct option.
  6. After one choice, lock the question, update score, then advance or finish.

Parameters and ranges

User controlled parameters and their allowed values
Parameter Meaning Unit/Datatype Typical Range Sensitivity Notes
Set Which pool of flags is used enum letters, numbers, all High Pool sizes are 26, 10, and 36 flags respectively.
Question count How many unique questions are sampled integer Letters: 5, 10, 15, 20, 26
Numbers: 5, 10
All: 10, 15, 20, 30, 36
Medium Values are clamped to the pool size and normalized to the nearest allowed option.
Seed Text input that makes the random sequence repeatable string Optional High Identical seed, set, and count reproduce the same questions and option order.

Core constants used by the PRNG

Constants used in the deterministic random number generator
Constant Value Unit Source Notes
Seed hash init 1779033703 32 bit int constant Mixed with seed length to initialize hashing.
Seed hash multiplier 3432918353 32 bit int constant Applied with integer multiply during seed mixing.
State increment 0x6d2b79f5 32 bit int constant Added each draw before further mixing.
Normalization base 4294967296 232 constant Converts an unsigned 32 bit integer to a fraction in 0 to 1.

Units, precision, and rounding

  • Summary percentages are whole numbers computed with Math.round.
  • Half values round up for positive numbers, for example 72.5 becomes 73.
  • The wrong percentage is computed as 100 - correctPercent to keep totals consistent.
  • The downloadable chart metrics format the percent with two decimals.

Validation and bounds

Validation rules applied to user inputs
Field Type Min Max Step/Pattern Error Text Placeholder
Set enum letters, numbers, all None, invalid values fall back to a default.
Question count number 1 pool size Normalized to the nearest allowed option for the active set None, non numeric values are replaced and then clamped.
Seed text 0 Trimmed string, any characters allowed None e.g., ics-quiz-42

Outputs and formats

Supported outputs and how they are encoded
Output Contents Encoding/Precision Rounding
Results table Question number, your answer, correct answer, correctness In page state None
Comma separated values (CSV) Header plus one row per question with Yes or No Text export None
JavaScript Object Notation (JSON) Set id and label, seed, score, percent, and per question rows Pretty printed with 2 space indentation Percent is the rounded summary value
Office Open XML Word document (DOCX) Title, subtitles, and a results table, optionally including the seed Generated document Percent is shown as a whole number
Answer chart downloads Correct versus incorrect as an image, plus a small metrics CSV Image and text exports Metrics percent formatted to 2 decimals

Image downloads include Portable Network Graphics (PNG), WebP, and Joint Photographic Experts Group (JPEG) formats.

Randomness, seeds, and determinism

The quiz uses a deterministic PRNG built from the seed string, mixing it into a 32 bit internal state and producing a repeatable stream of fractions in the range 0 to 1. Shuffling uses that stream to drive a Fisher and Yates shuffle, which is unbiased when the underlying draws are uniform.

If you leave the seed empty, the run is salted with the current time and a built in random source, so the sequence changes across sessions. The random generator is designed for repeatable practice, not for security sensitive randomness or gambling.

Networking and storage behavior

  • Flag images are requested from a public media host via a file path endpoint with a width parameter.
  • If an image fails to load, the quiz falls back to a generated placeholder Scalable Vector Graphics (SVG) image with the flag code.
  • The charting layer can render a summary chart and export it as common image formats.
  • The package does not call localStorage or sessionStorage directly in its quiz logic.
  • Clipboard writes and file downloads depend on your browser permissions and settings.

Performance and complexity

  • Building the pool is O(P) where P is the pool size.
  • Shuffling the pool is O(P), and selecting N questions is O(N).
  • Generating options is roughly O(N) with small constant loops for distractors.

Security considerations

  • The seed is treated as plain text used only for deterministic randomness.
  • Placeholders are emitted as data URIs and the embedded SVG is URL encoded.
  • Heads-up Loading remote images may be blocked by strict network policies.
  • Downloads are created from rendered content, so verify your device trust settings before opening files.

Assumptions and limitations

  • The quiz tests recognition of the displayed artwork, not real world visibility in fog, glare, or motion.
  • Correct identification does not confirm correct operational use of a hoist or message.
  • Scores are rounded to whole percents, which is coarse for small question counts.
  • Chance level depends on four answer options and may differ if the pool were ever reduced.
  • Comparable sessions require the same set, question count, and seed.
  • Some displays compress colors, which can make similar flags harder to distinguish.
  • Clipboard and export features are optional and may be disabled by device policy.
  • Heads-up The random generator is not designed for security critical randomness.

Edge cases and common error sources

  • Empty or whitespace only seeds fall back to a time based value, so runs will not match.
  • Non finite counts such as NaN or Infinity are replaced and then clamped.
  • Unicode seeds are hashed by UTF 16 code units, so emoji and combining marks can change results.
  • Visually identical seeds can differ if Unicode normalization is not consistent across copy and paste.
  • Image requests can fail due to offline use, blocked domains, or mixed content restrictions.
  • Cached images can become stale, showing older artwork until the cache expires.
  • Very small pools could stall distractor selection if there are not enough unique labels.
  • Rounding ties follow Math.round, where halves round up for positive values.
  • High DPI scaling and small screens can hide fine details that separate similar flags.
  • Clipboard writes may fail without a user gesture or when permission is denied.
  • Image conversion for WebP or JPEG downloads can fail on older browsers.

Standards and references

For the flag meanings and naming conventions, the authoritative reference is the International Code of Signals published for maritime use. For the shuffling approach, the Fisher and Yates shuffle is a standard unbiased method when driven by uniform draws. For numeric behavior, the ECMAScript language specification defines the bitwise and integer operations used by the PRNG.

Privacy and compliance

Quiz answers and seeds are processed in page memory, while flag images are fetched from a public media host, so avoid embedding personal data in a seed you plan to share, and question draws are purely random and have no monetary value.

Step-by-Step Guide:

Maritime signal flag recognition improves fastest when you practice in short, repeatable drills and review what you missed.

  1. Choose a Quiz set that matches what you are studying.
  2. Pick a Number of questions that fits your time, such as 10 or 15.
  3. Optionally enter a Random seed to repeat the exact same quiz later.
  4. Start the run, answer each question once, then use the final breakdown to review mistakes.
  5. Retake with the same seed to verify learning, or change the seed for a fresh mix.
  6. Warning If you share a seed, keep it impersonal.
Start with letters only if numerals distract you early on.
Use a longer question count when you want a steadier percent score.
After a low score, repeat the same seed once before switching to a new one.

With consistent runs, the percent score becomes a simple trend line you can improve week by week.

Features:

Practice letter flags, numeral pennants, or a combined pool in focused sessions.
Use a seed phrase to recreate the same question order for review or group drills.
Get immediate correctness feedback and a final score with percent correct.
Review a per question breakdown to spot recurring confusions.
See a simple correct versus incorrect chart when the run is complete.
Copy or download results in common formats when you want to keep notes.

FAQ:

Is my data stored?

Your answers, score, and seed live in page memory while you are using the quiz. The page does load flag images from an external media host, and copy or download actions only occur when you trigger them.

Tip: Use a neutral seed if you plan to share it.
How accurate is scoring?

Scoring is exact for what you answered in that run, and the percent is rounded to a whole number. Because each question is multiple choice, small runs can swing quickly, so use more questions when you want a steadier signal.

Can I use it offline?

The quiz logic can still run without a network connection, but flag images may not load and you may see placeholders instead. If your device has cached the images from a previous session, they may appear as expected.

What can I export?

You can copy or download a results table as CSV, download a JSON summary, export a DOCX report, and save the answer chart as an image with a small metrics CSV.

File creation depends on browser download settings.
Does it cost anything?

The package does not include payment, subscriptions, accounts, or licensing prompts. Any access terms are set by the site that hosts the page.

How do I find Juliett?

Pick the letters set, then use a short question count and repeat the same seed until the Juliett option stops feeling like a guess. Reviewing the details table after each run helps you confirm whether a miss is consistent or random.

What is a borderline score?

There is no built in borderline label, so use the percent as a progress marker. If your score hovers near chance, slow down and repeat a fixed seed until recognition improves, then switch to a new seed to test retention.

Troubleshooting:

  • Flags look blank: Check your network policy, then retry or use cached images.
  • Placeholders appear: The image host may be blocked or unreachable.
  • Clipboard copy fails: Ensure permissions allow clipboard access and retry after clicking the button.
  • Downloads do not start: Allow downloads for the site and disable strict pop up blocking for this page.
  • Percent feels jumpy: Increase the question count to reduce rounding noise.
  • Retake does not match: Confirm the seed, set, and question count are unchanged.

Advanced Tips:

  • Tip Use the same seed for three runs, then switch seeds only after your misses stabilize.
  • Tip Alternate letters only and mixed sets to reduce context dependent guessing.
  • Tip If two flags look similar, write down the single distinguishing shape you notice first.
  • Tip Treat 25 percent as a baseline, then aim for consistent gains above it.
  • Tip Increase question count when tracking progress over time, and decrease it for quick warmups.
  • Tip Keep seeds short but specific, so you can re enter them reliably without copy and paste errors.

Glossary:

Signal flag
A maritime flag pattern used to represent a letter, numeral, or message.
Numeral pennant
A specific flag shape used to represent digits 0 through 9.
Seed
Text that makes the quiz randomness repeatable across sessions.
Pool
The complete set of flags available for selection in a run.
Distractor
An incorrect option included to make a multiple choice question meaningful.
Score
The count of correctly answered questions in the run.
Correct percent
Rounded accuracy computed from score divided by total questions.
Fisher and Yates shuffle
An in place shuffle that swaps elements to randomize order.