The name of a compound is determined by IUPAC nomenclature
The International Union of Pure and Applied Chemistry have designated a universal rule for the nomenclature of organic compounds generally known as IUPAC nomenclature.
The whole idea of the IUPAC nomenclature is to have a universally agreed pattern of naming organic compounds according to their structure.
The compound is always named in such a way that the substituents and the functional group receives the lowest number.
In this case, the functional group is alkyne hence the name of the compound ends in -yne. The methyl group is substituted on position four.
Putting all these together the compound should be named as; 4-methylhept-2-yne
For IUPAC nomenclature of an inorganic compound
see:
https://brainly.com/question/11587934