The compounds containing sp hybridized carbon atom are
(i) (ii) pyridine (iii) (iv)

From the KVPY 2016 · Streams SB/SX paper. Try it, check your answer, then read the worked solution below.
The compounds containing sp hybridized carbon atom are
(i) (ii) pyridine (iii) (iv)

Try it yourself first, then check your working against this.
Worked solution
So (iii) and (iv).
(B)
Concepts used: nitrile carbon and cumulated allene carbon are sp
Every past question tagged to the same part of the syllabus, with solutions.
All KVPY questions on Chemical Bonding and Molecular Structure · All KVPY questions on General Organic Chemistry
Past questions on the same topic (Hybridisation), each with a worked solution.
Timed, in the real format, and marked the moment you submit.