Sub topic 9
Logging every attempt during a mock
This chapter assumes you have taken at least one full CAT-style mock and know the +3 / -1 / 0 marking scheme for the QA section. It also assumes you can read a short Python script. The logging idea itself works equally well on paper or in a spreadsheet.
A mock gives you one number: the score. That number cannot tell you whether you lost marks to weak concepts, slow reading, bad question choices or careless arithmetic. Only a per-question record can answer that, and the record is useful only if you capture it while the mock is running or immediately after. Memory distorts the details quickly.
What to record for each question
Every later metric (accuracy, attempt rate, time per question, topic-wise marks) is computed from the rows you log now. Log too little and you cannot compute them. Log too much and you will stop logging by the third mock.
A practical minimum for each question:
| Field | Example | Why it matters |
|---|---|---|
| q_no | 7 | Lets you match your log to the solutions |
| topic | Algebra | Drives topic-wise analysis |
| kind | mcq or tita | Decides the penalty for a wrong answer |
| result | correct, wrong, skipped | The raw outcome |
| seconds | 150 | Total time spent on the question |
| visits | 2 | Shows how many passes it took |
| guessed | yes or no | Separates lucky marks from earned marks |
You will add one more column after the mock, error, which holds the mistake category. That is covered in a later chapter. Leave it blank for now.
Capturing data live without losing time
The sectional timer is the constraint. Any logging that costs you more than a few seconds per question will hurt the very performance you want to measure. Three approaches work:
- Rough sheet notation. Next to each question number, write a topic letter, a tick, cross or dash for result, and a tally mark each time you return to the question.
- Timer checkpoints. Note the time left on the clock when you leave each question. Subtract consecutive checkpoints afterwards to get seconds spent.
- Replay review. Many mock platforms show per-question time in the analysis screen. Use it to fill in the seconds column, and trust your sheet only for the things the platform cannot know, such as whether you guessed.
Whatever you choose, transcribe the sheet into a table within an hour of finishing. Do the transcription before you read the solutions, because the solutions change how you remember your own thinking.
Defining the fields precisely
Vague definitions produce data you cannot compare across mocks. Fix these rules once and keep them.
- Skipped means you read the question and chose not to answer it. A question you never opened because time ran out is also logged as skipped, with a
secondsvalue of 0. Do not delete those rows. The count of unopened questions is itself a time-management signal. - Seconds is the total across all visits. If you spend 40 seconds on a first read and 110 on a return visit, log 150 and set
visitsto 2. - Guessed means you chose an answer without being able to justify it from the working. An answer where you eliminated two options and picked one still counts as a guess. Be strict, because this field tells you how much of your score is repeatable.
- Kind matters for marks. A wrong MCQ costs 1 mark. A wrong TITA (type-in-the-answer) response costs nothing.
Turning the log into marks, accuracy and time
Once the rows exist, a short script computes marks, attempts, correct answers and seconds for each topic. This version uses +3 for a correct answer, -1 for a wrong MCQ, and 0 for a wrong TITA answer or a skip.
from collections import defaultdict
attempts = [
{"topic": "Arithmetic", "kind": "mcq", "result": "correct", "seconds": 90},
{"topic": "Arithmetic", "kind": "tita", "result": "wrong", "seconds": 200},
{"topic": "Algebra", "kind": "mcq", "result": "wrong", "seconds": 150},
{"topic": "Geometry", "kind": "mcq", "result": "skipped", "seconds": 20},
{"topic": "Number Systems", "kind": "tita", "result": "correct", "seconds": 120},
]
def marks(a):
if a["result"] == "correct":
return 3
if a["result"] == "wrong" and a["kind"] == "mcq":
return -1
return 0
summary = defaultdict(lambda: {"marks": 0, "attempted": 0, "correct": 0, "seconds": 0})
for a in attempts:
s = summary[a["topic"]]
s["marks"] += marks(a)
s["seconds"] += a["seconds"]
if a["result"] != "skipped":
s["attempted"] += 1
if a["result"] == "correct":
s["correct"] += 1
for topic, s in summary.items():
accuracy = s["correct"] / s["attempted"] if s["attempted"] else 0
print(topic, s["marks"], f"{accuracy:.0%}", s["seconds"])Running it prints one line per topic: topic, marks, accuracy and seconds.
Arithmetic 3 50% 290
Algebra -1 0% 150
Geometry 0 0% 20
Number Systems 3 100% 120Read the output carefully. Arithmetic earned only 3 marks from 290 seconds, because the long TITA attempt cost 200 seconds and returned nothing. Geometry shows 0% accuracy only because the guard if s["attempted"] else 0 avoids dividing by zero. It really means "not attempted", which is a different fact. Keep that distinction in mind when you read the table.
Validating the log before you trust it
A single typo, such as "wrongg" in the result column, silently drops a row out of every count in the script above. Check the data before you compute anything. The next script reads rows from CSV text and reports problems. It uses only the standard library, so it runs as shown.
import csv
import io
raw = """q_no,topic,kind,result,seconds,visits,guessed
1,Arithmetic,mcq,correct,90,1,no
2,Arithmetic,tita,wrong,200,2,no
3,Algebra,mcq,wrong,150,1,yes
4,Geometry,mcq,skipped,20,1,no
5,Number Systems,tita,right,120,1,no
"""
VALID_KINDS = {"mcq", "tita"}
VALID_RESULTS = {"correct", "wrong", "skipped"}
def check(rows, limit=2400):
problems = []
total = 0
for row in rows:
if row["kind"] not in VALID_KINDS:
problems.append(f"Row {row['q_no']}: unknown kind {row['kind']!r}")
if row["result"] not in VALID_RESULTS:
problems.append(f"Row {row['q_no']}: unknown result {row['result']!r}")
total += int(row["seconds"])
if total > limit:
problems.append(f"Total time {total}s exceeds the {limit}s timer")
return problems
rows = list(csv.DictReader(io.StringIO(raw)))
for problem in check(rows) or ["No problems found"]:
print(problem)The output is:
Row 5: unknown result 'right'The check on total time is a useful sanity test. If the seconds in your log add up to more than the sectional timer, you mis-transcribed a checkpoint. If they add up to far less, you probably forgot to log time spent re-reading or on questions you skipped.
Common logging mistakes
- Logging only attempted questions. The skipped and unopened rows hold the selection and time information. Without them, your attempt rate looks better than it was.
- Mixing up marks and results. A wrong TITA is a wrong result with 0 marks. Store the result, and compute marks from it, as the script does. If you store marks directly you lose the ability to recompute under a different scheme.
- Changing definitions between mocks. If you counted "guessed" loosely in mock 3 and strictly in mock 4, the trend between them means nothing.
- Logging in too much detail. A row per question is enough. Per-step timing of your working is not worth the overhead.
What the log enables next
With a clean log you can compute attempt rate, accuracy and time per question overall and per topic. Those calculations are the subject of the next chapter. The error column you left blank is filled in during the review, when you examine each wrong or slow row and assign it a cause.
Exercise
A mock log has three rows for one topic. Row A is an MCQ answered correctly in 100 seconds. Row B is an MCQ answered wrongly in 160 seconds. Row C is a TITA question that you opened, spent 30 seconds on, and skipped. Using +3, -1 for a wrong MCQ and 0 otherwise, what are the topic's marks, attempted count, accuracy and total seconds, as the script above would compute them?
Show answer
Marks: 3 + (-1) + 0 = 2. Attempted: 2, because the skipped row is not counted. Correct: 1, so accuracy is 1/2 = 50%. Total seconds: 100 + 160 + 30 = 290. Note that the 30 seconds on the skipped question still count towards time.
Exercise
Why should a question you never opened because time ran out be logged as a skipped row with 0 seconds, instead of being left out of the log?
Show answer
Leaving it out makes your attempt rate and your question count look better than they were, and it hides the fact that you ran out of time. Logged rows let you count unopened questions, check that the rows add up to the full question count, and see whether late questions in the section were consistently left unread.