ITPEC FE Subject B April 2026 Question 15

Source exam: ITPEC FE Subject B April 2026Topic: Math & Data Science

ITPEC FE Subject B April 2026 — Question 15 of 20

A is {1, 2, 1, 1, 2, 2, 1, 0} and B is {1, 2, 0, 1, 1, 2, 2, 1}.

Count each word of the sequence {He, is, a, an, good, boy, honest, the} in each document, ignoring case.

document-III — "He is a good boy. An honest boy is good."

  • He 1, is 2 (both sentences), a 1, an 1, good 2, boy 2, honest 1, the 0

document-IV — "He is an honest boy. The good boy is honest."

  • He 1, is 2, a 0, an 1, good 1, boy 2, honest 2, the 1

Answer (i)

Why not others: the options split into three groups for each blank, and only one group in each is right.

  • (a), (b) and (c) — give is a count of 1 in document-III, missing its second occurrence in "boy is good"
  • (d), (e) and (f) — give good and boy a count of 1 in document-III, though each appears twice
  • (a), (d) and (g) — give is a count of 1 in document-IV, missing "boy is honest"
  • (b), (e) and (h) — give boy and honest a count of 1 in document-IV, though each appears twice

Key rule: Bag of Words counts every occurrence, not merely presence, and the vector positions follow the shared word sequence — so a word absent from one document contributes a 0 rather than being skipped.

AI-generated — may contain errors

The original exam layout is preserved in the image so diagrams, formulas, tables, and code remain accurate.

This question comes from an official ITPEC past paper. ITPEC Practice is an independent study tool and is not affiliated with ITPEC. See the official FE past-paper collection or Report an issue.