What is the primary function of a stock market index?

Which of the following best describes the relationship between a rising stock market index and investor sentiment?

How can a stock market index be used for benchmarking?

What is the most common method used in India to construct stock market indices?

What does a sector-specific index represent?