Dividends in price and market cap index

Do you Include dividends in the calculation of returns, price or market cap index? Sometimes the questions give you it?

total return if calculated includes dividends. Price return only involves capital appreciation.