# Assessment 5

#### Match each opcode with its best use cases:

| Opcodes   | Use Cases                                               |
| --------- | ------------------------------------------------------- |
| OP\_DEPTH | Creating a script that accepts either 1 or 2 signatures |
| OP\_SIZE  | Validating that a hash is exactly 32 bytes              |
| OP\_SIZE  | Checking if a username is under 20 bytes                |

**Notes to Learners**

OP\_DEPTH answers "how many inputs?" while OP\_SIZE answers "how big is this input?" Choose based on whether you're checking **quantity** (depth) or **size** (bytes).


---

# 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/stack-data-queries/assessment-5.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.
