> ## Documentation Index
> Fetch the complete documentation index at: https://docs.primastem.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Answer key to test 2

> Book 3, answers for the teacher.

For printing: [PDF, A4](https://github.com/primastem/mintlify-docs/raw/main/en/book-3/files/test-2-key.pdf)

For the teacher. The pictures come from the simulator: the program on the board and what the robot draws. The link runs the same program.

### Task 1

Forward remembers 50, 70, 140, 140, 140, 150.

Board: top row Forward 50, Forward +20, Forward \*2, Left, Forward, Forward +10.

[Run in the simulator](https://simulator.primastem.com/#top=cfor.n050,cfor.a020,cfor.m002,clef,cfor,cfor.a010\&s=l1047402\&r=445-430-0\&run)

![](https://mintcdn.com/primastem/cz6RCmv4RJMap1Eo/images/book-3/tests/b3-t2-1-board.svg?fit=max\&auto=format\&n=cz6RCmv4RJMap1Eo\&q=85\&s=e25139affb55ae847e8de0227e70f8e2)

Program on the board

![](https://mintcdn.com/primastem/cz6RCmv4RJMap1Eo/images/book-3/tests/b3-t2-1-field.svg?fit=max\&auto=format\&n=cz6RCmv4RJMap1Eo\&q=85\&s=cc6ea05f8a8d4870c864d52c6240c417)

What the robot draws

### Task 2

After each step, “\*2” gives 20, 40, 80, 160, 320, and “+50” gives 60, 110, 160, 210, 260. At step 4, “\*2” is still behind (160 against 210). At step 5, it is ahead (320 against 260). “\*2” overtakes “+50” at step 5.

### Task 3

Halve the lengths and keep the angles: `L30 F50 L120 F`. The last Forward without a number repeats 50.

Board: top row Left 30, Forward 50, Left 120, Forward.

[Run in the simulator](https://simulator.primastem.com/#top=clef.n030,cfor.n050,clef.n120,cfor\&s=l1047402\&r=275-278-180\&run)

![](https://mintcdn.com/primastem/cz6RCmv4RJMap1Eo/images/book-3/tests/b3-t2-3h-board.svg?fit=max\&auto=format\&n=cz6RCmv4RJMap1Eo\&q=85\&s=591cc429fd0ce43da1d9b1640157557b)

Program on the board

![](https://mintcdn.com/primastem/cz6RCmv4RJMap1Eo/images/book-3/tests/b3-t2-3h-field.svg?fit=max\&auto=format\&n=cz6RCmv4RJMap1Eo\&q=85\&s=3467cd6b5b663fac91fbb9d62bf6274f)

What the robot draws

### Task 4

In Logo: `repeat 5 [fd 100 rt 72]`.

Board: top row Function × 5. Bottom row: Forward 100, Right 72.

[Run in the simulator](https://simulator.primastem.com/#top=cfun.r005\&fn=cfor.n100,crig.n072\&s=l1047402\&r=223-350-0\&run)

![](https://mintcdn.com/primastem/cz6RCmv4RJMap1Eo/images/book-3/tests/b3-t2-4-board.svg?fit=max\&auto=format\&n=cz6RCmv4RJMap1Eo\&q=85\&s=fbabafa2d559e38a1b1226e6d0603024)

Program on the board

![](https://mintcdn.com/primastem/cz6RCmv4RJMap1Eo/images/book-3/tests/b3-t2-4-field.svg?fit=max\&auto=format\&n=cz6RCmv4RJMap1Eo\&q=85\&s=5672cf75fd886adc3f86020537930434)

What the robot draws

### How to grade

Grade each task on three levels, as in the “The child can” table in [Appendix. Course map and materials](https://docs.primastem.com/en/book-3/appendix.md):

* **on their own**: solved it correctly without a hint;
* **with a hint**: solved it correctly after one question from the teacher;
* **with help**: solved it together with the teacher.

Accept a different program too, if it is correct. Check it in the simulator.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.