What spaced repetition and retrieval practice are
Two ideas sit under every good flashcard routine. Retrieval practice means pulling an answer out of memory before you check it. Spaced repetition means coming back to the same item after a gap, so the reviews are spread out instead of bunched into one sitting. A flashcard is simply a tool that makes both easy.
Retrieval: testing yourself is the studying
In Roediger and Karpicke's 2006 study in Psychological Science (17(3), 249 to 255), students read prose passages and then either restudied them or took recall tests on them. On a test five minutes later, restudying came out ahead. On tests two days and one week later, the students who had practised recall retained substantially more, even though restudying made students more confident.
Karpicke and Roediger pushed the idea further in Science in 2008 (319, 966 to 968). Students learned 40 Swahili and English word pairs. Once a pair had been recalled correctly, some groups kept being tested on it and others dropped it from testing. A week later, the groups that kept testing recalled about 80% of the pairs; the groups that stopped testing recalled 36% and 33%. Extra study of pairs already learned produced practically no gain. All four groups had predicted they would recall about half.
Spacing: gaps between reviews
Cepeda and colleagues' 2006 review in Psychological Bulletin (132(3), 354 to 380) pooled 839 assessments of distributed practice from 317 experiments. Studying an item on two separate occasions beat the same study time in one block at every retention interval they examined, from under a minute to over a month. They also found that the gap giving the best retention grows as the time until the test grows. For an exam weeks or months away, that points to gaps of days, not minutes.
Kornell tested this with flashcards specifically (Applied Cognitive Psychology, 2009, 23(9), 1297 to 1317). Studying one large stack, which spaces each card further apart, beat studying four small stacks one after another, and spacing beat cramming on the last day. Spacing worked better for 90% of participants, yet after the first session 72% believed massing had worked better.
Dunlosky and colleagues' 2013 review of ten techniques in Psychological Science in the Public Interest (14(1), 4 to 58) gave a high utility rating to only two: practice testing and distributed practice. Rereading and highlighting were rated low. One caution: most of these studies used vocabulary and short passages, not codes or contracts, and the ExAC also asks you to apply knowledge. Treat flashcards as the recall layer under your practice questions.