Use the CODE Mock Test Template
Set up programming and technical assessments with the CODE mock test template.
Use the CODE template for programming and technical assessments, such as placement tests, bootcamp checks or skill tests. It creates a single section called Coding Section with no time limit.
What this template sets up
| Item | Template default |
|---|---|
| Sections (in order) | Coding Section |
| Duration Type | No Duration |
| Default marks when you add a question (Marks / Negative Marks) | Multiple Choice: +1 / Negative Marks 0.25 Numerical: +1 / Negative Marks 0 |
| Partial Marking and Multiple Answer | Off |
| Calculator | Do not show |
| Section selection | Off |
| Quiz Pause | Off |
| View Answer | On |
| Questions | None. Each section starts with 0 Questions and 0 Marks. |

The template pre-fills Marks and Negative Marks in the question editor. They apply per question, so check them every time you add a question type or a question that carries different marks.
How it compares with the real exam
The CODE template does not follow a specific exam. Compare it with your own assessment plan:
| Item | Template default | Current exam | What to change in Learnyst |
|---|---|---|---|
| Sections | One section: Coding Section | Your plan, for example "Aptitude" and "Programming" | Rename the section and add more if needed. |
| Time | No Duration | Most placement and hiring tests are timed | Choose Overall Quiz Duration or Section Duration. |
| Marks | Multiple Choice +1 / -0.25, Numerical +1 / 0 | Your marking scheme | Change Marks and Negative Marks as you add questions. |
Exam facts in this article are based on the latest information available in December 2026. Exam bodies change patterns often, so check the latest official notification before you set up a test series for a new cycle.
Set up a mock test with this template
- Go to Products > Mock test and click Create.
- Enter a Title, for example the exam name and test number. You can use up to 60 characters. Avoid special characters.
- Enter a Price, or select Make this a free mock test.
- Under Quiz Type, select Online Quiz.
- In Select Template, choose CODE, then click Create.
- The builder opens with the template's sections already added. Check the section names and order. Use Add Section if you need another section.
- Open a section and click Add Question, then choose the question type. You can also import questions from a Word document.
- In the question editor, check Test Configuration: Marks, Negative Marks, Difficulty Level, Guideline Time, Question Tags, and the Multiple Answer and Partial Marking options.
- Click Settings and review the settings in the next section of this article.
- To edit the text learners read before starting, go to More > Quiz Instructions.
Settings to review
Open the test, click Settings and check these settings before you publish.
| Setting | Where to find it | Recommended | Why |
|---|---|---|---|
| Duration Type | Settings > Duration Type | Overall Quiz Duration for assessments, No Duration for practice | The template has no timer. |
| Maximum Attempt Count | Settings > Maximum Attempt Count | 1 for hiring or placement tests | This setting could not be confirmed for this template, so check it before publishing. |
| Switch Window Restriction - Aid to Live Proctoring | Settings > Quiz Configurations | On, with a small Switch window warning Limit (for example 3) | Discourages learners from searching for answers in another tab during a graded mock. |
| View Answer | Settings > Answer Configurations | Off for hiring tests, On for practice | Hide answers if the same questions will be reused. |
| Randomise Quiz Questions | Settings > Randomisation & Rules | On for repeated attempts | Changes the question order for each attempt, so retakes test understanding, not memory. |

Use case
A coding bootcamp runs a weekly 45-minute programming assessment for 150 learners. The admin creates a mock test from the CODE template, renames Coding Section to "Week 4 - Arrays", adds questions, sets an Overall Quiz Duration of 45 minutes and turns on Randomise Quiz Questions so neighbours see questions in a different order.
Best practices
- Rename the section to the topic being tested.
- Write clear input and output examples in each question.
- Use Question Tags for topics such as Arrays, Strings or SQL to get a topic report.
Things to watch out for
- The question types offered by this template were not confirmed. Check the list when you click Add Question.
- The template has no timer. Set one before running a timed assessment.
- Code Submissions And Scores is a separate report for coding lessons. Use Mock Test Scores for mock tests.
For a side-by-side view of all templates, see Mock test templates: compare all templates.
What to do next
- Mock test templates: compare all templates
- Set up the time duration for your mock test
- Set up randomisation rules for your mock test
- Add questions to your mock test
- Analyse test performance with Quiz Insights
If you have questions, contact us at support@learnyst.com.