> ## 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.

# Test 2

> Book 2, at the end of the course. 20 minutes, no robot.

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

At the end of the course. 20 minutes, no robot. The grid sheet has 1 cm cells.

Name \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_ Group \_\_\_\_\_\_ Class \_\_\_\_\_\_ Date \_\_\_\_\_\_\_\_\_\_

### Task 1. Predict the drawing

Board: top row Forward 60, Right 120, Function × 2. Bottom row: Forward, Right. Start: the green dot, the robot faces up. Above each token without a number, write the number it takes. Draw on the sheet what comes out and mark the finish with an arrow.

![](https://mintcdn.com/primastem/oAzqmLMPmuYxZWeP/images/book-2/tests/test2-tri-board.svg?fit=max\&auto=format\&n=oAzqmLMPmuYxZWeP\&q=85\&s=449e0fb100161d70f4bfe7cfdbbc36d3)

Program on the board

![Grid sheet of 10 × 10 cells with the start at the bottom](https://mintcdn.com/primastem/oAzqmLMPmuYxZWeP/images/book-2/tests/test2-task1-blank.svg?fit=max\&auto=format\&n=oAzqmLMPmuYxZWeP\&q=85\&s=48855620c9d3f1672046b3e038be9be9)

Draw here

### Task 2. Function contract

Board: top row Function × 3. Bottom row: Forward 100, Backward 100, Right, Forward 40, Left. Start: the top-left corner of the frame, the robot faces right. Fill in the contract: where the robot is and where it faces before the function call and after it. Where is the robot after the third call?

![Program on the board](https://mintcdn.com/primastem/oAzqmLMPmuYxZWeP/images/book-2/tests/test2-comb-board.svg?fit=max\&auto=format\&n=oAzqmLMPmuYxZWeP\&q=85\&s=54b8c1f3a1ddf3202c8e9f7f50b49e21)

| | Where the robot is | Where it faces |
| - | - | - |
| Before the call | | |
| After the call | | |
| After the third call | | |

### Task 3. Mirror

Board: top row Forward 100, Right, Forward 100, Right, Forward 50. The robot drew a J. Start: the top-right corner, the robot faces down. Write the program for a mirrored J: write the tokens on the empty board, in each pair the command on top and the number below it. In the empty frame, mark the start of the mirrored J and the arrow.

![Letter J in a frame with the start](https://mintcdn.com/primastem/oAzqmLMPmuYxZWeP/images/book-2/tests/test2-task3-J.svg?fit=max\&auto=format\&n=oAzqmLMPmuYxZWeP\&q=85\&s=821aa839dd11c1eb0aec7ddf2a1f04a8)

What the robot drew

![Empty frame of 10 × 10 cells](https://mintcdn.com/primastem/oAzqmLMPmuYxZWeP/images/book-2/tests/test2-task3-blank.svg?fit=max\&auto=format\&n=oAzqmLMPmuYxZWeP\&q=85\&s=4b6b36795ea4ef5b0145d5d628ba4def)

Draw the start of the mirrored J

![Empty board: top row 6 pairs, bottom row 5 pairs](https://mintcdn.com/primastem/qh_Y4RsDSx4JyXs-/images/book-1/attachment4-empty-board.svg?fit=max\&auto=format\&n=qh_Y4RsDSx4JyXs-\&q=85\&s=c18ba079e087ea9ea63f9a6bba536a5a)

### Task 4. Find the first wrong pair

We wanted the letter H. Board: top row Function, Left, Forward 100, Left, Function. Bottom row: Forward 40, Backward 100, Forward 60. Start: the left side of the frame, 60 mm from the bottom, the robot faces up. The robot drew something else. Which pair is the first wrong one? What do you put in its place?

![](https://mintcdn.com/primastem/oAzqmLMPmuYxZWeP/images/book-2/tests/test2-hwrong-board.svg?fit=max\&auto=format\&n=oAzqmLMPmuYxZWeP\&q=85\&s=4a2a3c993245fac97abec9f35d728a7d)

Program on the board

![](https://mintcdn.com/primastem/oAzqmLMPmuYxZWeP/images/book-2/tests/test2-hfixed-field.svg?fit=max\&auto=format\&n=oAzqmLMPmuYxZWeP\&q=85\&s=f1f16ba2d97831dccbd0341d2f892ee3)

What we wanted

![](https://mintcdn.com/primastem/oAzqmLMPmuYxZWeP/images/book-2/tests/test2-hwrong-field.svg?fit=max\&auto=format\&n=oAzqmLMPmuYxZWeP\&q=85\&s=8e9a142213f2a538018fd33eea6b4d82)

What the robot drew

![Lines for the answer](https://mintcdn.com/primastem/xwp0do405f3AQ7Hp/images/book-2/tests/lines-2.svg?fit=max\&auto=format\&n=xwp0do405f3AQ7Hp\&q=85\&s=6c85f64bbdbdf59c3a0a48e2c6b9a67b)


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