["C"]
Step-by-Step Solution
Key idea: This is an assertion-reason question testing understanding of Kahn's algorithm mechanics, specifically how in-degrees are decremented and vertices are enqueued.
Step 1: Evaluate Assertion (A). In Kahn's algorithm on a DAG, we start by enqueuing all vertices with in-degree 0. Then, as we process each vertex, we decrement in-degrees of its neighbors, and enqueue any neighbor whose in-degree becomes 0. Since the graph is a DAG (no cycles), every vertex will eventually have its in-degree reduced to 0 and be enqueued. Therefore, exactly vertices are enqueued. Assertion (A) is TRUE.
Step 2: Evaluate Reason (R). The reason claims "each vertex's in-degree is decremented exactly once." This is FALSE. A vertex's in-degree is decremented once for each incoming edge. If vertex has in-degree (meaning edges point to ), then 's in-degree will be decremented times — once when each of its predecessors is processed. Only when the final decrement brings the in-degree to 0 is enqueued.
Step 3: The correct explanation for (A) is: In a DAG, every vertex is reachable from some vertex with in-degree 0, and processing all predecessors will eventually reduce every vertex's in-degree to 0, causing it to be enqueued. The reason (R) incorrectly states that each in-degree is decremented only once, which is an overcounting error.
Step 4: Therefore, A is true but R is false.
Answer: C (A is true, R is false)
Common trap: Students may think "each vertex is enqueued once, so its in-degree is decremented once." But enqueuing happens once per vertex, while in-degree decrement happens once per incoming edge. These are different counts.