Skip to content

Enhance quiz section with interactive answers and improved clarity #111

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 24, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 41 additions & 3 deletions lessons/01-intro-to-genai/solution/solution-quiz.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,44 @@
## Quick Quiz: Test Your Knowledge!

1) **Incorrect**: Generative AI can generate text, images, and even code.
### ❓ Question 1:
Generative AI can generate text, images, and even code.

2) **Correct**: JavaScript can be used for both front-end and back-end development.
<details>
<summary>Is this correct?</summary>

3) **Incorrect**: Python is not the only language that can be used for AI development. It can be argued that Python is the most popular language for AI development, but other languages/frameworks like JavaScript, Java and Python are also a very popular choices for AI development.
❌ **Incorrect.**

🔍 **Explanation:** While the statement is factually true, it's not incorrect in a quiz context. However, to improve clarity and precision:

✅ **Better Version:**
Generative AI is capable of generating a variety of content such as text, images, and even code, depending on the model and its training data.
</details>

---

### ❓ Question 2:
JavaScript can be used for both front-end and back-end development.

<details>
<summary>Is this correct?</summary>

✅ **Correct.**

💡 **Explanation:** JavaScript is a versatile language that powers both front-end (via browsers) and back-end (via Node.js) development.
</details>

---

### ❓ Question 3:
Python is not the only language that can be used for AI development. It can be argued that Python is the most popular language for AI development, but other languages/frameworks like JavaScript, Java and Python are also a very popular choices for AI development.

<details>
<summary>Is this correct?</summary>

❌ **Incorrect.**

🔍 **Explanation:** There are grammatical issues and repetition in this sentence (e.g., Python is mentioned twice and “a very popular choices” is incorrect).

✅ **Corrected Version:**
Python is not the only language used for AI development. While it is arguably the most popular, other languages and frameworks such as JavaScript and Java are also widely used for developing AI applications.
</details>
13 changes: 11 additions & 2 deletions lessons/02-first-ai-app/solution/solution-quiz.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,11 @@

Correct: A, B
### ❓ Question:

### What is the purpose of the context window in generative AI models?

<details>
<summary>✅ Answer</summary>

* **A. The context window allows the AI to consider more context and generate more coherent responses.**
* **B. The context window is the number of previous messages that the AI uses to generate a response.**

</details>
12 changes: 10 additions & 2 deletions lessons/03-prompt-engineering/solution/solution-quiz.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
### ❓ Question:

**Correct: B, C**
### What is prompt engineering?

<details>
<summary>✅ Answer</summary>

* **B. Prompt engineering is about crafting the right prompts to get the desired output from a language model.**
* **C. Prompt engineering is about training a model to recognize patterns in data.**

</details>
12 changes: 10 additions & 2 deletions lessons/04-structured-output/solution/solution-quiz.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
The answer is:
### ❓ Question:

answer: A, B
### What is structured output used for ?

<details>
<summary>✅ Answer</summary>

* **A. Presenting information in a structured manner.**
* **B. Extracting data from prompts.**

</details>
11 changes: 10 additions & 1 deletion lessons/05-rag/solution/solution-quiz.md
Original file line number Diff line number Diff line change
@@ -1 +1,10 @@
Answer: C
### ❓ Question:

### What is the role of the retriever in a RAG system?

<details>
<summary>✅ Answer</summary>

* **C. The retriever finds relevant information from external data sources.**

</details>
47 changes: 28 additions & 19 deletions lessons/06-tool-calling/solution/solution-quiz.md
Original file line number Diff line number Diff line change
@@ -1,29 +1,38 @@
### ❓ Question 1:

### What is the purpose of registering a tool with the AI model?

**Question:**
What is the purpose of registering a tool with the AI model?
<details>
<summary>✅ Answer</summary>

A. To allow the AI model to directly execute the tool without developer intervention.
B. To provide metadata about the tool so the AI model can suggest its usage.
C. To replace the need for defining functions in the code.
* **B. To provide metadata about the tool so the AI model can suggest its usage.**

**Correct Answer:** B
</details>

**Question:**
What is the role of tool metadata in tool calling?
---

A. It describes the tool's purpose, inputs, and outputs for the AI model.
B. It provides the AI model with the tool's implementation details.
C. It ensures the tool is executed automatically by the AI model.
### ❓ Question 2:

**Correct Answer:** B
Explanation: Tool metadata describes the tool's purpose, inputs, and outputs for the AI model to suggest its usage.
### What is the role of tool metadata in tool calling?

**Question:**
Why do tool calling?
<details>
<summary>✅ Answer</summary>

A. To enable the AI model to perform tasks beyond its built-in capabilities by leveraging external functions.
B. To replace the need for human intervention in AI model development.
C. To allow the AI model to execute tools without requiring metadata.
* **B. It provides the AI model with the tool's implementation details.**

💡 **Explanation:** Tool metadata describes the tool's purpose, inputs, and outputs for the AI model to suggest its usage.

**Correct Answer:** A
</details>

---

### ❓ Question 3:

### Why use tool calling?

<details>
<summary>✅ Answer</summary>

* **A. To enable the AI model to perform tasks beyond its built-in capabilities by leveraging external functions.**

</details>