Solved exercises🧮 Solve my exercise

Brevet (DNB) 2026 — Mathematics general stream, Amérique du Nord 3 juin 2026 — exercise 4 : Algorithmics and Programming (official exam paper)

MathematicsLevel : Middle schoolAlgorithmics and Programming🌐 Lire en français
Statement
In this exercise, no justification is required. A student wants to create a figure made up of squares and equilateral triangles, using programming software. To do this, he creates the three blocks below. Block 1, called “Initialization”: go to $x : 0$, $y : 0$; point in direction 90; clear everything; put the pen down. Block 2, called “square”: repeat A times: move 50 steps then turn left by B degrees. Block 3, called “equilateral triangle”: repeat C times: move 50 steps then turn right by D degrees. The instruction “point in direction 90” means that the sprite is facing right. 1. What are the coordinates of the sprite after Block 1 has been executed? 2. In blocks 2 and 3, some values have been replaced by the letters A, B, C and D. On the answer sheet, indicate the letter and its corresponding value. 3. The student has built three figures with the three programs below. Match each figure with the corresponding program. Program 1: when green flag clicked; execute Initialization; execute equilateral triangle; repeat 3 times: execute square, move 50 steps, turn right by 120 degrees. Program 2: when green flag clicked; execute Initialization; execute square; repeat 4 times: execute equilateral triangle, move 50 steps, turn left by 90 degrees. Program 3: when green flag clicked; execute Initialization; execute equilateral triangle; repeat 3 times: move 50 steps, turn right by 60 degrees, execute equilateral triangle, turn right by 60 degrees. Figure A: two concentric equilateral triangles, one large with a vertex pointing upward and the other smaller and inverted, forming a six-pointed star-like figure. Figure B: a central equilateral triangle, with three identical squares attached around the triangle, one on each of its sides. Figure C: a central square, with four identical equilateral triangles attached outside it, one on each side of the square.
⏳ Solution not generated yet

Open this statement in Expert Maths AI: the step-by-step solution is computed on demand, checked by a second resolution, then published here for everyone.

📝 See the solution

Have a similar exercise? Get it solved step by step, for free.

🧮 Solve my exercise