NSMO Informatics 1 Syllabus: C++ Code Reading and Format

What the Informatics 1 Cities and Provinces test covers: 20 questions in 120 minutes on reading and tracing C++ code, from variables to arrays and recursion.

Last updated: · How we write and review content

Questions and time
20 questions · 120 minutes
Pass mark
Mawhiba does not publish a pass mark; students who qualify move on to the next stage
Exam fee
Free: registration in both tracks of the National Gifted Olympiad has no fee

Start with 10 free questions to find what needs more work. No sign-up, with answer explanations.

Try 10 free questions and see your level

Last verified: 18 November 2026. The number of questions, the time and the points come from Mawhiba's published 2026 Informatics 1 test and its answer key. The content follows the official NSMO informatics booklet (Part A, C++). This information may change, so check it before the test. This is an independent guide, not affiliated with Mawhiba, the Ministry of Education or any government body, and it does not promise any score.

The Cities and Provinces test is the first stage of the NSMO scientific track of the National Gifted Olympiad, and each subject has its own test. Informatics has two divisions: Informatics 1 for juniors (grades 7–8, first and second intermediate) and Informatics 2 for seniors (grades 9–10). This guide covers Informatics 1. Registration steps are in the registration guide.

Test format

  • 20 questions in 120 minutes, about 6 minutes per question.
  • In the 2026 paper every answer is exactly one number, one letter or one word, written in a box. Only an exact match scores; there is no partial credit and no explanation is needed.
  • Points rise through the paper: questions 1–7 are worth 4 points, 8–13 are worth 5 and 14–20 are worth 6, for a total of 100.
  • Each question is printed in Arabic and English; the code is the same in both.
  • No electronic devices are allowed: no computers, phones, smartwatches or calculators. You trace the code by hand.
  • The booklet's contest page describes stage 1 as an online multiple-choice test on Classera lasting 2 hours. The 2026 paper itself asks for exact answers. Ask your school coordinator which format applies to your test.

Our practice questions

Our bank is multiple choice: each question has four options, and the wrong options are outputs you would get from a typical tracing mistake (off by one, integer division, a skipped branch). Every code answer was checked by compiling and running the code. To practise for an exact-answer paper, work out your answer before you look at the options.

Units and the 2026 questions

Mawhiba does not publish how questions are spread across topics. The numbers below are how we sorted the 20 questions of the 2026 paper; next year's spread may differ.

UnitQuestions in 2026What it covers
C++ basics: variables, types and operators4Valid names and declarations, constants, integer division and remainder, compound assignment, ++ and --, char and double values.
Conditions2Comparisons, && and ||, if/else chains, if without braces, the ?: operator.
Loops6for, while and do-while traces, counting iterations, nested loops, break and continue, digit loops.
Functions and recursion4Function headers, nested calls, value and reference parameters, recursion, how many different results a function can return.
Arrays, vectors, strings and simulation4Array indexes, grids, vectors, characters and strings, step-by-step simulations.

What the questions look like

Almost every 2026 question shows a short C++ fragment and asks for the final value of a variable, the printed output or a function's result. Three questions ask which line is valid C++ (a variable name, a constant declaration, a function header). The last questions are long traces: a grid walker, a recursion over a six-digit number and an index into a vector with tens of thousands of elements, where you need a pattern rather than step-by-step tracing.

How to prepare

  • Read the booklet's C++ pages and type its examples into a compiler at home, then predict the output before you run them.
  • Practise tracing with a table of variable values per step, on paper and against the clock.
  • Learn the C++ rules that create most wrong answers: integer division, the sign of %, post- versus pre-increment, and else matching.
  • For the long questions, find the pattern on small inputs first.

NSMO Informatics 1

Finished reading? Try a set of questions

Start with 10 free questions to find your weakest units. Keep practising with the full question bank and mock exams from SAR 26.

Try 10 free questions and see your level Prices and what is included

Put the plan to work here

SAR 34 $9

One purchase · lifetime access · review guide included

  • 510 questions, every option explained with its source
  • Full mock exams: 20 questions in 120 minutes, like the real one
  • Practice that starts with your weakest units, plus a review of your mistakes
Complete Review Guide 2026–2027 coverComplete Review Guide 2026–2027 included (PDF)Ordered by the weight of each unit in the examBuy now · SAR 34or 7 days for SAR 26
See everything included

Full mock exams like the real one and 510 explained questions that find your weak spots and train them

  • Unlimited full mock exams to practise your pace and check your performance across the whole exam
  • Practise 10 weak-area questions, starting where you lose the most marks
  • 510 questions explaining why every option is right or wrong
  • Arabic and English with one pass
  • Unit notes and flashcards, then questions to check your understanding

The stage 1 test is the first gate on the NSMO informatics path: students who pass it go on to programming contests (national team selection, central exams and the finals) and then the national-team programs for the international olympiads. Source Last verified: 2026-11-18

Sources and references

  1. موهبة: اختبار المعلوماتية 1 (للناشئين) 2026 mawhiba.sa
  2. موهبة: مفتاح إجابات اختبار المعلوماتية 1 2026 mawhiba.sa
  3. موهبة: حقيبة نسمو للمعلوماتية (الجزء A – C++) nsmobooklets.mawhiba.sa
  4. موهبة: حقيبة نسمو للمعلوماتية – صفحة المسابقة nsmobooklets.mawhiba.sa

NSMO Informatics 1

Full prep for this exam

All of this in one purchase.

  • Full mock exam, same as the real one20 questions in 120 minutes. You get a total score and a score for every unit.
  • Practice unit by unit510 questions, every option explained with its source. Starts with your weakest units.
  • Complete Review Guide 2026–2027 (PDF)Ordered by each unit's weight in the exam. With lifetime access only.

Choose your access

One step before payment

Continue with your Google account and you go straight to the payment page.

Check my score freeFull prep