# Knowledge check

### Check your knowledge

**1. Under what conditions does a test expression that uses the `and` operator evaluate to `True`?**

* [x] A test expression that uses the `and` operator evaluates to `True` when both subexpressions are true.

{% hint style="info" %}
Correct! Both conditions in the test expression must be true for the entire test expression to evaluate to `true`.
{% endhint %}

* [ ] A test expression that uses the `and` operator evaluates to `True` when one subexpression is true and the other is false.
* [ ] A test expression that uses the `and` operator evaluates to `True` when both subexpressions are false.

**2. What is the keyword `elif` short for in Python?**

* [x] else if

{% hint style="info" %}
Correct! You can use the `elif` keyword to add multiple test expressions to your program.
{% endhint %}

* [ ] only if
* [ ] else

3\.  What values in a test expression are always interpreted as false?

* [ ] Any non-zero values
* [ ] Empty
* [x] None and 0

{% hint style="info" %}
Correct! None and 0 are interpreted as false in Python.
{% endhint %}


---

# 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-2-use-boolean-logic-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.
