In the following reaction
the major product is

From KVPY 2017 · Stream SA
In the following reaction
the major product is

Worked solution
In NaOH, phenol is present as phenoxide, a strongly activated ring. The benzenediazonium ion is a weak electrophile and attacks the para position (azo coupling):
The product is 4-hydroxyazobenzene, an orange dye.
(D)
Every past question tagged to the same part of the syllabus, with solutions.
Timed, in the real format, and marked the moment you submit.