# Assessment 3

#### Which Chronicle-restored opcode would you use to extract bytes 5-8 from a byte sequence?

* [ ] OP\_5 OP\_4 OP\_SUBSTR
* [ ] OP\_5 OP\_LEFT OP\_4 OP\_RIGHT
* [x] OP\_4 OP\_5 OP\_SUBSTR
* [ ] OP\_5 OP\_8 OP\_SPLIT

**Notes to Learners**

OP\_SUBSTR takes three inputs from the stack: the byte sequence, starting position (4, to start at the 5th byte using zero-indexing), and length (4, to extract 4 bytes). This extracts bytes at positions 4, 5, 6, and 7 (the 5th through 8th bytes). The syntax is: `<data> <position> <length> OP_SUBSTR`.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://hub.bsvblockchain.org/higher-learning/bsv-academy/bsv-opcodes/historical-opcodes-and-chronicle-restoration/assessment-3.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
