# Knowledge check

## Check your knowledge

1. **Are strings immutable?**

* [ ] No, because they can be modified.
* [x] Yes, because you can't modify them.
* [ ] No, because you can split them.

2\. What types of quotation marks can be used with strings?

* [ ] Single, double, and triple quotation marks.
* [ ] Single and double quotation marks.
* [ ] Only double quotation marks.

3\. What is the string method call to use to break strings into separate lines?

* [ ] The `.separate(' ')` method.
* [ ] The `.newlines()` method.
* [ ] The `.split(' ')` method.

4\. What two string methods can you use to check to see whether a word exists in a string?

* [ ] The `.find()` and `.count()` methods.
* [ ] The `.search()` and `.count()`methods.
* [ ] The `.check()` and `.search()` methods.

5\. What is a problem you might run into when you use `%` for formatting?

* [ ] When many replacements are needed, it can make a program slower.
* [ ] The code can be harder to read when many replacements are needed.
* [ ] It isn't possible to replace more than nine variables.

6\. How can you round down a number when you use f-strings?

* [ ] Use the `.format()` method to round down.
* [ ] Use the `round()` function inside the string, enclosed in braces (`{}`).
* [ ] You can't round a number when you use f-strings. You must round it before you use it in a string.


---

# 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://learn.pqtkha.com/programming/technology/python/microsoft-training-python-for-beginners/module-3-use-strings-in-python/knowledge-check.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.
