# Quiz 13

#### Let's apply what you have learned so far to a specific scenario. Choose the correct response.

You are designing a clock system for a 24-hour format. The system needs to calculate the time after adding a certain number of hours to the current time. For example, if the current time is 22:00 and you add 5 hours, the result should be 03:00. Which modular arithmetic operation would you use to ensure the time wraps around correctly?

* [x] Use the modulo operation with modulus 24 to calculate the remainder after adding the hours.
* [ ] Subtract 24 from the total hours until the result is less than 24.
* [ ] Divide the total hours by 24 and use the quotient as the new time.
* [ ] Add the hours directly without any adjustment.

**Note to Learners**

In modular arithmetic, the modulo operation ensures that numbers wrap around after reaching a certain value (the modulus). For a 24-hour clock, the modulus is 24. By using the modulo operation, you can calculate the remainder after adding the hours, ensuring the time wraps around correctly. For example, (22 + 5) mod 24 = 3.

&#x20;

To learn more about it, you can follow the course [ECDSA Prerequisites](https://bsvblockchain.360learning.com/course/play/68dbb07606cfc0fb12dbac4d)


---

# 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-digital-signatures/quiz/quiz-13.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.
