All posts Coding Assessments

How to Build a Mock Placement Coding Round with AI in 10 Minutes

Students who pass every practical still freeze in their first online coding round. A monthly mock round fixes that, and AI now makes setting one a single sentence. A worked example: the sentence we typed, the paper the AI built, four answers graded, and what the AI said the results showed.

Book a free demo or try the 2-minute student test →

Every placement season, the same thing happens in CS departments. Students who passed every lab practical sit their first online coding round and freeze. On paper they could write a program from memory. In the round, the code has to run, and it is checked against inputs they never see.

The fix is practice in the same format, once a month, starting well before placements. What stops most departments is the setting. Finding questions, balancing difficulty and checking every one takes an evening, and nobody has an evening a month to give.

That is the part AI now does. Here is a mock round built end to end on our demo college, with every step shown as it actually came out.

Step 1: Ask Teemly AI for the round

In the question library, we pressed Build with AI and typed one sentence:

"A 90-minute mock placement round for 3rd semester CSE: 2 Python coding questions, one medium and one hard, plus 5 MCQs on data structures"

A few seconds later, Teemly AI returned a draft paper of seven questions, all taken from the department's own question bank:

#TypeQuestion
1MCQWhat is the index of the first element of an array in C and Python?
2MCQA stack follows which order?
3MCQTime to access the i-th element of an array?
4MCQIn-order traversal of a BST gives keys in?
5Coding, mediumWrite a function reverse_words(s) that reverses the order of words in a sentence.
6MCQDeleting a node given only a pointer to it (not the last) takes?
7Coding, hardWrite a function second_largest(nums) that returns the second largest distinct value in a list.

The draft exactly as Teemly AI built it on our demo college's question bank.

It also left a note, which is worth reading every time:

"Both Python coding questions are included, one medium and one hard, along with 5 data structure MCQs covering arrays, stacks, trees and linked lists. The MCQs are not Python-specific, and the library tags them as JavaScript, so check they suit your students."

That note is the AI doing its job properly. It did not quietly pass off JavaScript-tagged questions as Python ones. It told us, so we could decide. If the bank had been short of a topic, it would have said that too, instead of making a question up. Teemly AI only ever picks questions that already exist in your bank. It never writes them.

Step 2: Spend five minutes checking the picks

Nothing reaches students until you review the draft and send it, and this is where the review earns its five minutes. Open each coding question and read its test cases, because in a coding round the test cases are the marking scheme.

In our demo bank, the "reverse the words" question had only a placeholder case, so we wrote five before sending it:

CaseInputExpectedSeen by student?
1hello worldworld helloYes
2oneoneYes
3I love PythonPython love IYes
4a b c d ee d c b aNo
5Placement season starts in JulyJuly in starts season PlacementNo

Hold on to case 4. It turns out to be a mistake, and the grading below shows why.

See this in your own lab. Teemly sets coding tests from your question bank, marks every program against test cases, and explains the results in plain English. We set it up free.

Book a free demo

Step 3: A format to copy

Campus coding rounds vary by company, but most are a short timed paper of a few coding questions, sat online and checked against hidden cases. A mock round should feel the same. This is the shape our sentence asked for:

PartWhatSuggested timeMarks
Warm-up5 MCQs on data structures15 min10
Coding 1One medium question30 min20
Coding 2One hard question45 min30
Total90 min60

Run it in the lab, not as homework. The test runs in full screen, copy-paste is blocked and switching windows is recorded for the teacher to review. Answers are saved on the computer as students type, so a short internet drop does not cost anyone their work.

Step 4: The marks come from the test cases

Once a student submits, each program runs against all five cases, and the marks are the share of cases passed. These are four answers students commonly write for this question. We ran each one through Teemly's grader, with the question worth 10 marks:

AnswerVisible passedHidden passedMarks out of 10What happened
A: reverse the whole string with s[::-1]0 of 31 of 22Reverses the letters, not the words. Still passed case 4.
B: split, reverse the list, join3 of 32 of 210-
C: build the answer in a loop3 of 32 of 210Leaves a space at the end, which the grader ignores
D: reverse each word's letters0 of 30 of 20Words stay in order, letters flip

Every answer run through the platform's own grader. Marks are the share of the five cases passed.

Answer A is the lesson. Reversing the whole string turns "a b c d e" into "e d c b a", which happens to be the right answer, because every word is one letter long. So a wrong answer collected 2 marks from a hidden case. Case 4 should have used longer words. A weak case does not just miss a mistake. It pays for one.

That is why Step 2 matters even when the AI picked well. The AI chooses the questions. The test cases are still a teacher's judgement, and writing hidden test cases that catch the mistakes students actually make covers how to get them right.

Step 5: Ask Teemly AI what the round showed

The marks tell you who did well. The next question is what to do about it, and you can now ask the reports directly. On our demo college's CSE 2A, a class of 45 with a semester of marks, we asked two questions.

First question: "Which topics should I revise with this class before their first placement-style coding round?"

Teemly AI did not pretend to know. It said the data had no information about what a placement round covers, so it could not say which topics that round would test. Then it gave what the marks could show: the class's topics from weakest to strongest, with Lists & Dictionaries lowest among the busy topics at 46%.

Second question: "Which topics with plenty of answers is this class weakest in, and how many students are below 30% in the weakest one?"

"Among topics with plenty of answers, Lists & Dictionaries is the weakest, at 46% earned across 646 marked answers. The data lists these students below 30% on that topic: [15 names]. It does not give a total count, so I have not added them up."

Teemly AI's answer, with the 15 student names shortened here.

Two details in that answer are deliberate:

  • It would not count the students. Every number Teemly AI gives is checked against the marks before you see it. A total it worked out itself could not be checked that way, so it listed the students and left the counting to you.
  • The names never left Teemly. Before the question went to the AI, every student was replaced by a label like "Student 7". The names were put back on our screen afterwards.

That gives the next step: one revision session on lists and dictionaries for those 15 students, then a short retest sent only to them.

What Teemly AI does, and what it does not

Teemly AI doesTeemly AI does not
Build a draft paper from your question bank in one sentenceWrite or change questions
Tell you where the bank is short, or where a pick needs checkingSend anything to students without your approval
Answer questions about your marks in plain EnglishMark programs. The test cases do that.
Say so when the marks cannot answer a questionSee student names

The ten minutes, added up

Typing the sentence took under a minute. Reading the draft and the AI's note took two. Checking the coding questions' test cases took about five, and longer the first time a question is used. The marking took no time, and asking what to revise took one more minute. That is what makes a monthly mock round realistic in a department where nobody has a spare evening.

Try it

To see a coding round from the student's side, the two-question sample test at teemly.in/try has hidden test cases and needs no sign-up. If the round is part of a larger practical, how to run a programming lab exam online covers the full plan. And to run this with your own question bank, this is what Teemly's coding assessments are built for.

Free PDF checklist

Not ready for a demo yet?

Get the Assessment Readiness Checklist: 42 questions to work through before you trust your next exam to a digital platform.

Get the free checklist
Free demo

Run your next coding lab on Teemly

We set it up for your department, free. Every program is marked against test cases, and Teemly AI explains the results in plain English.

Book a demo!