Question about ERC20 token price

Sorry, I need to clarify some doubts regarding ERC20 tokens.

  1. How is the price of the token defined?
  2. Is the price stated in the smartcontract the real market price?
    I am seeing a token that in the smartcontract indicates $3.97, in coingeeko $4 and in Metamask $6.97.