Answer:
Main function of a file extension is to indicate which program is needed to open it.
Step-by-step explanation:
A file extension is added to a file name in last, by writing a dot and then name of an extension suitable for it. For example, an extension used in any text file is .txt. You cannot use .txt extension for any photo.