FP1 theory mock exam — from Fundamentals to Text processing, against the clock and with your real mark (just like in the lab)

The FP1 theory quizzes aren’t hard because of the syllabus: they’re hard because you get 20 minutes for 15 questions, every wrong single-choice answer subtracts marks and almost half the questions are «what does this code print?», which you have to run in your head. This mock exam puts you in exactly that situation: you pick the quiz (the four of the year or the resit), random questions come out of each topic’s exam-style quiz, the clock runs and, when you hand it in, you get your mark out of 10 with the real penalty, a breakdown by topic and a review of every mistake with its explanation.

Below the mock exam you’ll find everything worth knowing before you start: what each quiz is like, which topics go into each one, how it’s marked (with the sums done), when it pays to leave a question blank and how to split your time.

Take the mock exam

Pick a mode and press Start the mock exam. The questions don’t tell you whether you got them right until you hand in, just like in the lab. If time runs out, the mock exam hands itself in with whatever you have.

The mock exam needs JavaScript. In the meantime, practice with each topic's quiz (the «What each mode covers» table, below).

Start with the quiz for the block you’re studying and leave the resit for last: it mixes all 14 topics and only draws one or two questions from each, so you won’t know which topic is letting you down until you’ve repeated it a few times.

The questions are original, written for SergioLearns from the concepts, formats and difficulty of the real quizzes. They aren’t the exam’s questions, but they ask the same things in the same way. Every time you press «New mock exam» you get different ones.

What the FP1 theory quizzes are like

In FP1 theory isn’t tested all at once at the end: there are four quizzes spread over the year, one per block of the syllabus, plus a resit with everything. Each one is taken in the lab, with a time limit, and you pass with a 4 out of 10. You get two attempts and the higher mark counts, so the first one should already be serious: the second is for improving, not for seeing what it’s like.

ModeWeeksTopicsQuestionsTimeEach question is worth
Quiz 1: Fundamentals1-3T01-T07 (from Basic computing to Modules)1520 min0.67
Quiz 2: Sequences4-6T08-T09 (lists, tuples, mutability and matrices)1630 min0.625
Quiz 3: Algorithms and data structures7-9T10-T11 (recursion and associative containers)1520 min0.67
Quiz 4: Text processing10-12T12-T14 (strings, regex and files)1520 min0.67
Resit—T01-T14 (whole syllabus)1520 min0.67

Notice that Quiz 2 is the only one with 16 questions and 30 minutes: ten minutes more, and it makes sense, because almost everything is tracing nested lists, copies and slices, which takes time. There’s no real figure for how many questions the resit has; here it’s built like the others (15 in 20 minutes), so it works as a good thermometer for the whole year.

How are the questions chosen? The mock exam doesn’t grab them any old way: it shares them out by topic, in proportion to how many each topic has in the bank. Since every topic has 13 questions, almost the same number comes from each topic, and the one left over after dividing goes to a random topic. Look at the picture:

How the questions are shared out in each modeFive rows, one per mode. Quiz 1: 15 questions on T01 to T07 in 20 minutes, two per topic plus one from a random topic. Quiz 2: 16 questions in 30 minutes, 8 on Lists and tuples and 8 on Mutability. Quiz 3: 15 questions on Recursion and Associative containers, 7 and 8. Quiz 4: 15 questions, 5 on Strings, 5 on regular expressions and 5 on text files. Resit: 15 questions in 20 minutes, one per topic plus one at random. Every question is worth 10 divided by the number of questions.How the questions are shared out in each modeFundamentalsSequencesAlg. & data str.Textat randomQuiz 1T01-T0715 qs · 20 min · 0.67 each?2 per topic (T01 … T07) + 1 from a random topicQuiz 2T08-T0916 qs · 30 min · 0.625 each8 on Lists and tuples + 8 on Mutability, copies and matricesQuiz 3T10-T1115 qs · 20 min · 0.67 each?7 on Recursion + 7 on Associative containers + 1 from eitherQuiz 4T12-T1415 qs · 20 min · 0.67 each5 on Strings + 5 on Regex + 5 on Text filesResitT01-T1415 qs · 20 min · 0.67 each?1 from each of the 14 topics + 1 from a random topic
Each square is a question; the dashed one is the leftover question, which goes to a random topic.

So Quiz 1 always gives you 2 questions from each of the 7 topics plus one more from one of them; Quiz 4, 5 from each topic; and the resit, one from each topic plus one more. I checked it by simulating 4,000 quizzes with the same algorithm the mock exam uses: in Quiz 1 each topic comes up 2.14 times on average (2 + 1/7) and in the resit, 1.07 times (1 + 1/14).

Since every topic gets the same share, there are no topics that «never come up». If you skip Modules because «it’s short», you’re gambling 2 of Quiz 1’s 15 questions: 1.33 marks.

What each mode covers

The mock exam’s bank is the exam-style quizzes at the end of each topic’s exercises (the «Exam-style quiz» section). There are 13 questions per topic, 182 in total, and the mock exam reads them live from the website: if a topic gains questions, the mock exam uses them without changing anything. If a topic is letting you down, this is the place to practice it with no clock and the explanation right after each answer.

TopicExercises with their quizMode
T01Basic computing — exercisesQuiz 1 and resit
T02Variables and data types in Python — exercisesQuiz 1 and resit
T03Python operators — exercisesQuiz 1 and resit
T04Python conditionals — exercisesQuiz 1 and resit
T05Python loops — exercisesQuiz 1 and resit
T06Python functions — exercisesQuiz 1 and resit
T07Modules and packages in Python — exercisesQuiz 1 and resit
T08Lists and tuples in Python — exercisesQuiz 2 and resit
T09Mutability, copies and matrices in Python — exercisesQuiz 2 and resit
T10Recursion in Python — exercisesQuiz 3 and resit
T11Associative containers in Python — exercisesQuiz 3 and resit
T12Python strings — exercisesQuiz 4 and resit
T13Python regular expressions — exercisesQuiz 4 and resit
T14Text files in Python — exercisesQuiz 4 and resit

Which formats come up? The same ones as in the lab. Roughly half are single choice with 4 options (100 of the bank’s 182; a 15-question quiz has about 8 on average) and almost another quarter are short-answer «what does it print?» questions, where you type the code’s exact output. The rest are true or false, gaps, matching and ordering. There’s only one multiple-choice question in the whole bank, in Basic computing: in the real quizzes they hardly ever appear.

In «what does it print?», typing what you think the program does instead of what it really prints. If the code does print(numbers), the answer has the square brackets: [1, 2, 3], not 1 2 3. Marking ignores capitals, accents and signs such as commas, full stops or quotes, but the numbers, the brackets and the order do count.

How it’s marked: the penalty, explained

Every question is worth the same: 10 divided by the number of questions. With 15 questions each one is worth 10/15 = 0.67 marks; with 16 (Quiz 2), 10/16 = 0.625. What changes is what happens when you get one wrong:

Question typeIf rightIf wrongBlank
Single choice (4 options)its value (0.67)subtracts a third: −0.220
Multiple choiceits valueeach wrong tick subtracts (minimum 0)0
True or false, gaps, matching, orderingthe part you got rightnothing subtracted: share of correct parts0
Short answer («what does it print?»)its value00

Where does the third come from? From the classic test formula: with n options, each wrong answer subtracts 1/(n − 1) of the question’s value. With 4 options, 1/3. With 15 questions, 0.67 × 1/3 = 0.22 marks per mistake (with 16, 0.625 / 3 = 0.21). The formula is designed so that guessing earns nothing on average, and in the next section you’ll see why.

Three example marks in Quiz 1 (15 questions, 0.67 each), with the sums done in Python using fractions so no rounding builds up:

  • 9 right, 3 single-choice wrong and 3 blank: 9 × 0.67 − 3 × 0.22 = 6 − 0.67 = 5.33.
  • 9 right and 6 single-choice wrong (everything answered): 6 − 6 × 0.22 = 6 − 1.33 = 4.67. The three you left blank in the previous example, answered without knowing and got wrong, cost you 0.67 marks.
  • 6 right and nothing else: 6 × 0.67 = 4.00, a pass by the skin of your teeth. Six net questions is the minimum: add 3 wrong single-choice answers to those 6 and you drop to 3.33 and fail.

In Quiz 2 (16 questions, 0.625 each), with 10 right, 2 single-choice wrong and 4 blank: 10 × 0.625 − 2 × 0.21 = 6.25 − 0.42 = 5.83.

True or false, gaps, matching and ordering have no penalty, but they do give partial credit: if you get 3 of a 4-statement true or false right, you get three quarters of the question. Never leave one of those blank.

Should I answer or leave it blank?

This is the question that decides the most marks. The answer depends on how many options you can rule out in a 4-option single choice. If you pick at random among the ones left, what you gain on average (the expected value) is the chance of being right times its value minus the chance of being wrong times what it subtracts:

  • All 4 left (no idea at all): 1/4 × 1 − 3/4 × 1/3 = 1/4 − 1/4 = 0. Answering or not makes no difference.
  • 3 left (you rule one out): 1/3 − 2/3 × 1/3 = 1/3 − 2/9 = +1/9 of the question (0.07 marks with 15 questions).
  • 2 left (torn between two): 1/2 − 1/2 × 1/3 = 1/2 − 1/6 = +1/3 (0.22 marks).
  • 1 left (you know it): +1, the whole question (0.67 marks).
What do you gain on average by answering a 4-option single choice?Bars with the expected value of answering a 4-option single-choice question when each wrong answer subtracts a third. With all 4 options left, 0. Ruling one out and leaving 3, plus one ninth (0.07 marks with 15 questions). Torn between two, plus one third (0.22 marks). Knowing it, the whole question (0.67 marks).What do you gain on average by answering a 4-option single choice?0 · no difference4 options leftno idea+1/9 · 0.073 options leftyou rule one out+1/3 · 0.222 options lefttorn between two+1 · 0.671 option leftyou know itof the question’s value · marks with 15 questions
Pure guessing neither gains nor loses on average; as soon as you rule one option out, answering pays.

Conclusion: if you can rule out at least one option, answer. Only when you have no idea does it make no difference, and then it’s up to you: if you’re right on the edge of a 4, leaving it blank removes the risk of dropping.

The short-answer «what does it print?» questions never subtract. Even if you’re not sure of the output, type your best guess: at worst it’s a 0, the same as a blank.

How to split your time

20 minutes for 15 questions gives you 80 seconds per question (20 × 60 / 15). In Quiz 2, 30 minutes for 16 is 112 and a half seconds (1 min 52 s). It sounds like a lot until you hit a trace of a loop with three variables. What works best is two passes:

  1. First pass (12 minutes in the 20-minute quizzes; 18 in Quiz 2): answer what you know straight away and what takes you less than a minute. If a «what does it print?» needs a long trace, skip it.
  2. Second pass (6 minutes; 9 in Quiz 2): go back to the skipped ones. For traces, write the loop-by-loop table (variable, value) on paper, as in the exercises: it’s faster than going over it in your head three times.
  3. Last 2 minutes (3 in Quiz 2): go over the blanks with the rule above: if you can rule out an option, answer.

The mock exam’s clock is always in sight. Check it when you finish the first pass: if you’re past 12 minutes, the second pass has to be more selective.

How the mock exam works under the hood

  • The questions are drawn live from the exam-style quizzes published in each topic’s exercises (the table above). First it works out how many each topic gets, then it picks them at random within each topic, with no repeats.
  • Nothing is saved: everything happens in your browser. If you reload the page, you start from scratch.
  • When you hand in you see your mark out of 10, how many right, wrong and blank, the breakdown by topic (so you know what to revise) and every question marked with its explanation and a «Review this topic» link to its exercises.
  • Download as PDF: the button opens your browser’s print dialog with the marked mock exam and nothing else from the page; choose «Save as PDF».
  • On a phone it works the same. For «what does it print?», the keyboard appears when you tap the answer box.

After the mock exam: what to revise

The breakdown by topic tells you where you’re losing marks. Use it like this:

  • A topic below half: go back to its exercises («Review this topic» link or the table above), do its exam-style quiz with no clock and read the explanation of each mistake. Then repeat the mock exam.
  • Mistakes in «what does it print?»: it’s nearly always a formatting detail (brackets, quotes, line breaks) or a step of the trace. Paste the code into Python Tutor and watch it step by step: every FP1 exercises article has a section for that.
  • Lots of wrong single-choice answers and a negative contribution: you’re guessing too much. Apply the rule of ruling out at least one option.
  • Good in every topic: move on to the resit and do several in a row; each one draws different questions.

If several topics are failing at once, start with the ones that weigh the most: it’s all counted in what comes up in the FP1 exam.

And once the quizzes feel easy, have a look at the rest of the exams and mock exams. If you’re also taking FP2, its theory mock exam works the same way.

And if you want to know how I prepared it, in How I prepared FP1 and FP2 I explain the weekly method that worked for me.

Summary

What you need to knowThe figure
ModesQuizzes 1-4 (one per block) and the resit with everything
Questions and time15 in 20 min; Quiz 2, 16 in 30 min
Each question is worth10 / n: 0.67 (0.625 in Quiz 2)
PenaltyOnly single choice: each mistake subtracts a third (−0.22)
Pass mark4 out of 10 (6 net questions); two attempts, the higher one counts
Share-outThe same from each topic; the leftover one, from a random topic

Three ideas to keep:

  1. Every topic weighs the same: 2 questions per topic in Quiz 1, 5 in Quiz 4, one in the resit. No topic is safe to skip.
  2. If you can rule out one option, answer. Pure guessing neither gains nor loses; ruling one out already adds up, and «what does it print?» never subtracts.
  3. Two passes: the quick ones first, then the traces on paper and finally the doubtful ones.

Ready? Go back up to the mock exam and start with the quiz for the block you’re studying.

Keep goingAll Python articles

Did this article help you? Here is how you can support SergioLearns →