Brevet (DNB) 2024 — Mathematics general stream, Centres étrangers 10 juin 2024 — exercise 3 : Calculation program and function (official exam paper)
Statement
Consider the following calculation program: choose a number; from this number, form two results by subtracting 2 from one and adding 1 to the other; multiply the two results; the final result is obtained.
Part A
1. Justify that by choosing 5 as the starting number, the final result obtained is 18.
2. Calculate the final result given by this program when the chosen starting number is $-\dfrac{3}{2}$.
3. The script given in APPENDIX, written with programming software, corresponds to the calculation program above.
Complete lines 3, 4 and 5 of the script in the APPENDIX, to be handed in with the copy. No justification is expected.
Appendix described: Scratch script with the following blocks: When green flag clicked; ask "choose a number" and wait; set variable a to answer $-$ …; set variable b to answer $+$ …; say … $*$ … for 2 seconds.
Part B
Let the function $g$ be defined, for a given number $x$, by $g(x)=x^{2}-x-2$.
1. Prove that $(x-2)(x+1)=x^{2}-x-2$.
2.a. Solve the equation $(x-2)(x+1)=0$.
2.b. Deduce the preimages of 0 under the function $g$. No justification is expected.
3. Among the three graphs below, which one corresponds to the graph of the function $g$? No justification is expected.
Description of the graphs: the three graphs are drawn on a grid, with the x-axis marked from $-2$ to $2$ and the y-axis marked from $-3$ to $4$.
Graph 1: red line with equation $y=2-x$.
Graph 2: red line with equation $y=2x+2$, visible in the coordinate window.
Graph 3: red parabola with equation $y=x^2-x-2$, visible in the coordinate window.
4. Which number(s) should be chosen as the starting number so that the calculation program gives 0 as the final result?
⏳ 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 solutionHave a similar exercise? Get it solved step by step, for free.
🧮 Solve my exercise