* Noun: When it refers to a place or position.
* Adjective: When it describes something as being related to location.
* Verb: Although less common, "locate" can be used as a verb meaning "to find the location of something".
Here are some examples:
* Noun: "The location of the meeting is still undecided."
* Adjective: "The location details are important for finding the place."
* Verb: "We need to locate the missing files."
In the example you provided, "What part of speech is location", it is being used as a noun since it refers to the word itself.