Unsquared position on expiry

What happens on expiry to F&O positions which are not squared?

  1. Equity Index/ stock futures - i understand they are cash settled on the basis of last half hour trading average on expiry day.
  2. Equity In the money Index/ Stock options - I understand STT is applied on the underlying contract value. How is it computed?
  3. Equity out of the money Index/Stock options - I understand they expire worthless. Any charges / penalties on these unsquared positions?
  4. Commodity futures - Are these cash settled or do they come with delivery option?