Which of the following hydrocarbons follows the molecular formula C_nH_{2n-2 ?
Alkynes follow the general formula C_nH_{2n-2, as they contain a triple bond. This follows from NCERT principle where the relation explains the outcome clearly for students in simple steps.
Ref: NCERT Chemistry Textbook for Class XI and XII, Chapter: Some Basic Concepts, Structure of Atom and Periodicity, Topic: Mole concept, atomic models and periodic trends.