Passa Código

Theory Tests — Prepare for Your IMT Exam

Free exercises, mock exams, and real questions from the Portuguese Highway Code. Train at your own pace and pass your Category B driving licence on the first try.

What are theory tests?

Theory tests are the most effective way to prepare for the IMT (Instituto da Mobilidade e dos Transportes) theory exam in Portugal. The official exam consists of 30 multiple-choice questions about the Highway Code, road signs, traffic rules, road safety, and vehicle mechanics. To pass, you must answer at least 27 questions correctly (90%) within 30 minutes. Taking free online theory tests before the real exam lets you get used to the question format, identify topics where you still have doubts, and gain confidence for test day.

At Passa Código, Category B theory tests are completely free and require no registration. You can do chapter exercises to master each topic individually, or choose the mock exam to test your knowledge under the same conditions as the official exam. Each attempt generates random questions, so you can repeat the tests as many times as you like without memorizing the answers.

How do free online theory tests work?

Passa Código offers three practice modes to help you prepare in the best possible way. Choose the one that best suits your study stage and start training now.

1. Choose your mode

Practice by chapter to reinforce a specific topic, take a full mock exam, or test your road sign knowledge.

2. Answer the questions

Each question has 5 answer options. In mock exam mode, the 30-minute timer is active, just like in the official IMT exam.

3. Analyze your result

At the end, you see your score, the questions you got wrong, and the topics you need to practice more. Repeat until you consistently score at least 27 correct answers.

Free theory tests vs paid platforms

Many candidates wonder whether a paid platform like Bom Condutor offers significant advantages over free theory tests. The truth is that the IMT exam content is public and based on the Highway Code — there are no 'secret questions' that only a paid platform has.

Passa Código provides real questions, mock exams, and chapter exercises at no cost. Our free alternative lets you take as many online theory tests as you want, with no attempt limits or content paywalls.

Free, no registration

Access all theory tests immediately, without creating an account or providing personal data.

Questions based on the Highway Code

All questions reflect the official IMT exam content and are updated regularly.

Available in Portuguese and English

Ideal for foreigners getting a driving licence in Portugal or for those who prefer to study in English.

Driving tests: theory vs practical

Theory Test

The theory test — also called the code exam — assesses your knowledge of the Highway Code. It takes place at an IMT exam center and consists of 30 multiple-choice questions. It is mandatory for all driving licence categories.

  • 30 multiple-choice questions
  • 30 minutes long
  • Maximum of 3 mistakes allowed
  • Taken on a computer

Practical Driving Test

The practical test assesses your ability to drive a vehicle safely in real traffic conditions. It includes maneuvers, driving on different road types, and compliance with Highway Code rules.

  • Approximately 30-40 minutes long
  • Driving in urban and extra-urban roads
  • Mandatory maneuvers
  • Assessment by an IMT examiner

To obtain a Category B driving licence in Portugal, you must first pass the theory test and only then can you take the practical test. Passa Código helps you prepare for the theory part with free theory tests and chapter exercises.

Passa Código in Numbers

94%

Pass rate

12,000+

Learners

4.8/5

Rating

Frequently asked questions about theory tests

How many questions are in the theory test?

The official Category B theory test has 30 multiple-choice questions, each with 5 answer options. You must answer at least 27 correctly (90%) to pass. Our simulator follows exactly the same format, so you practice under real IMT exam conditions.

How many mistakes can I make on the theory test?

In the official exam you can get a maximum of 3 questions wrong out of 30. Any error above this limit results in failure. Passa Código's simulator applies the same criteria, so you know exactly how prepared you are.

Are the theory tests on Passa Código free?

Yes, all theory tests are completely free. No account is required, there are no attempt limits, and you can access chapter exercises, mock exams, and road sign quizzes at no cost.

Can I take theory tests online?

Yes, Passa Código works entirely online on any device with internet access. You can practice on your computer, tablet, or phone without installing any apps. The platform is available in Portuguese and English.

How long does the theory test last?

The IMT theory exam lasts 30 minutes. Our simulator uses the same timer, so you get used to managing your time during the test.

What is the difference between a theory test and a driving test?

The theory test assesses your knowledge of the Highway Code, road signs, and road safety. The practical driving test assesses your ability to drive a vehicle in real traffic conditions. To get a Category B driving licence, you must pass both exams.

Are Passa Código theory tests the same as the IMT's?

Passa Código questions are based on the Portuguese Highway Code and reflect the topics and format of the official IMT exam. The simulator reproduces real exam conditions: 30 questions, 30 minutes, and a maximum of 3 errors.

What topics appear on the theory tests?

Theory tests cover road signs (warning, prohibitory, mandatory, informational, and priority), traffic rules and right-of-way, speed limits, parking regulations, road safety, and basic vehicle mechanics.

Start practicing today

Ready for your theory test?

Choose between chapter exercises, a full mock exam, or a road signs quiz. All free, no registration required.