Free mock tests online for aptitude, coding and job roles
OnJob mock tests are timed practice tests for the job you want. Free role tests mix multiple-choice questions with coding problems that run against test cases on a code runner. Aptitude and coding practice tests run on this site with no signup, and free certifications let you show a tested skill to recruiters.
What can you practise on OnJob?
Free role tests
Timed tests for a job role. Multiple-choice questions plus coding problems you solve in JavaScript, Python, Java or C++, checked against test cases on a code runner.
Free with an OnJob account
Career path and AI mentor
A step-by-step roadmap to the role you want, with practice tests along the way and a mentor that knows your profile.
Inside the OnJob app
Which free role tests are available?
Each role test is free with an OnJob account and can be retaken. The questions are fixed, so you can compare one attempt with the next.
| Role test | What it covers | Time |
|---|---|---|
| Frontend Developer: fundamentals | HTML, CSS, JavaScript and React basics, plus two short coding problems. | 30 minutes |
| Backend Developer: APIs and databases | HTTP, REST and SQL questions, plus one coding problem. | 30 minutes |
| Data Analyst: SQL and statistics | SQL, basic statistics and charting questions, plus one coding problem. | 25 minutes |
| Java Developer: core Java | Core Java language and collections questions, plus one coding problem. | 30 minutes |
How does the coding mock test work?
Coding problems are not multiple choice. Your code is run, so the result shows whether it works, not whether you recognised an answer.
- 01
Read the problem
Each coding problem states the input, the expected output and a worked example.
- 02
Write your solution
Starter code is ready in JavaScript, Python, Java or C++. Pick a language and write your solution in the editor.
- 03
Run it
Run your code against the sample tests or your own input and read the console output before you submit.
- 04
Submit
On submit, your code also runs against hidden test cases. Points come from the tests it passes.
How do AI role tests work?
On paid plans, OnJob generates a personalised test for a role from its skill mix, at the level that matches your experience. Roles include Software Engineer, Frontend Developer, Backend Developer, Full Stack Developer, Data Analyst, Java Developer, QA / Test Engineer, DevOps Engineer, AI / ML Engineer, Business Analyst, Sales / Business Development and HR / Recruiter. You can also generate a test for a single skill on your profile.
| Level | Experience | Questions | Time | Difficulty |
|---|---|---|---|---|
| Fresher | 0-1 years | 15 | 20 minutes | Easy |
| Junior | 1-3 years | 20 | 30 minutes | Easy and medium |
| Mid | 3-6 years | 20 | 30 minutes | Medium |
| Senior | 6+ years | 25 | 40 minutes | Medium and hard |
How do mock tests lead to a certification?
OnJob certifications are free online certification tests for jobs. Each one covers a role or a single skill.
- 01
Practise with a free role test
Find the topics you are weak on before anything counts.
- 02
Sit the certification test
Questions come from a fixed pool with a set time limit. The pass mark is 70%.
- 03
Retake if you need to
If you do not pass, you can try the same certification again after 14 days.
- 04
Share the certificate
A pass issues a certificate valid for 2 years, with a public page you can add to LinkedIn or download as a PDF.
Which interview rounds should you practise?
Most hiring in India runs through some mix of these rounds. Practise the ones your target company uses.
| Round | What it asks | How to prepare |
|---|---|---|
| HR / screening | Tell me about yourself, why this role, notice period, salary expectations, gaps. | A tight 60-second pitch, honest answers about gaps, and a researched salary range. |
| Aptitude | Quantitative, logical and verbal reasoning under a strict timer, common in campus and mass hiring. | Timed practice sets, with every wrong answer reworked until the method is clear. |
| Technical / coding | Data structures, language and framework questions, debugging and live problem solving. | Solve timed problems in your main language and test edge cases before you submit. |
| Behavioural | Tell me about a time you handled conflict, failure, leadership or a deadline. | Four or five STAR stories with clear results that you can adapt. |
How do you prepare for an interview?
- 01
Research the role
Re-read the job description, study the company and product, and list the skills they will test.
- 02
Map the rounds
Work out which rounds you will face, such as HR, technical, behavioural or system design, and prioritise.
- 03
Practise under a timer
Take a timed mock test for your role and note every question you got wrong or ran out of time on.
- 04
Prepare STAR stories
Write four or five situation, task, action, result stories you can adapt to behavioural questions.
- 05
Prove a skill
When your practice scores are steady, sit a certification so recruiters can check the skill on your profile.
What should you focus on for your role?
Software and full-stack developers
Data structures and your stack. Expect coding rounds where your code has to pass test cases, plus a design discussion for senior roles.
Data analysts
SQL, statistics and spreadsheets. Be ready to explain a project end to end and the numbers behind it.
Product and project managers
Product sense, prioritisation, metrics and behavioural rounds. Practise structuring open-ended problems out loud.
Freshers
Aptitude, fundamentals and projects. Lead with what you built and the exact technologies you used.
Mock tests: frequently asked questions
Are OnJob mock tests free?
The practice tests on this site are free with no signup. With a free OnJob account you can also take the role tests and the certification tests. Personalised AI role and skill tests are part of the paid plans.
What is a mock test?
A mock test is a timed practice version of the test an employer uses to screen candidates. It shows you the question types, the time pressure and your weak topics before the real assessment, so the real one holds fewer surprises.
Does the coding mock test actually run my code?
Yes. Coding problems run on a code runner. You can write your solution in JavaScript, Python, Java or C++, run it against sample tests or your own input, and on submit it is also checked against hidden test cases.
Is there a free aptitude mock test?
Yes. The aptitude, logical reasoning, numerical and verbal practice tests on the assessments pages are free and mark themselves in your browser, with the working shown for each answer.
What happens if I fail a certification test?
You can retake the same certification after 14 days. Practise with a free role test in the meantime to work on the topics you missed.
Who can see my certificate?
Each certificate has a public page with its own ID, so anyone you share it with can check that it is valid. Certificates also appear on your OnJob profile and next to your name when recruiters review you.
How do I prepare for an interview in a week?
Spend day one on the company, the role and the job description. Use days two to four on the rounds you expect, with timed practice and review of every mistake. Use days five and six for full timed mock tests. On day seven, rest and prepare your own questions for the interviewer.
What is the STAR method?
STAR stands for Situation, Task, Action and Result. You set the scene, explain your responsibility, describe what you did, and end with the outcome. It keeps behavioural answers concrete and short.
Where can you read real interview questions?
More ways to practise
Start with a free role test
Create a free profile, take a timed role test with real coding problems, then sit a certification when your scores are steady.