# Quiz 25

What is the purpose of the 'Choice' function in SHA-256?

**Type all answers and select the correct one**

* [x] To select between two values based on a condition
* [ ] To perform a bitwise AND operation
* [ ] To rotate bits to the right
* [ ] To compute the majority of three values<br>

**Note to Learners**

"The Choice Function: if(x) then y else z."<br>

To learn more about it, you can follow the course [Walkthrough Implementation of SHA-256 in Golang](https://bsvblockchain.360learning.com/course/play/68bac07ee4056be2a5dd1108)


---

# 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/bitcoin-primitives-hash-functions/quiz-bitcoin-hash-functions/quiz-25.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.
