📚 CBSE Grade-10 Study Guide
HomeArtificial Intelligence (417)

Artificial Intelligence (417) — CBSE Class 10 board question

Q1. [4] § Unit Overview and Learning Objectives
Create a document vector table from the following documents by implementing all the four steps of Bag of words model. Also depict the outcome of each step. Document 1: Sameera and Sanya are classmates. Document 2: Sameera likes dancing but Sanya loves to study mathematics.
Previously asked in CBSE board exam
2023 104 Q19
Generated by claude-sonnet-4-6 · 2026-06-21 03:19 · grounding rag
Model Answer

Step 1: Text Processing (Pre-processing)
Remove stop words (and, are, but, to), convert to lowercase.

Step 2: Create Dictionary (Vocabulary)
List all unique words from both documents:

| sameera | sanya | classmates | likes | dancing | loves | study | mathematics |
|---------|-------|------------|-------|---------|-------|-------|-------------|

Step 3: Create Document Vector for Doc 1

| sameera | sanya | classmates | likes | dancing | loves | study | mathematics |
|---------|-------|------------|-------|---------|-------|-------|-------------|
| 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 |

Step 4: Document Vector Table for All Documents

| sameera | sanya | classmates | likes | dancing | loves | study | mathematics |
|---------|-------|------------|-------|---------|-------|-------|-------------|
| 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 |
| 1 | 1 | 0 | 1 | 1 | 1 | 1 | 1 |

Source: Chapter 6, Section 6.5 – Bag of Words

---

Explanation
If a question refers to an image, map, graph or diagram that is not shown here, find the actual CBSE question paper on the CBSE website: cbse.gov.in.
Previous-year CBSE Grade 10 board exam questions, organised by subject and chapter, each with a model answer — free to read and print.