No, it's not compulsory for any course . It's totally upon you that you want to stay in a hostel or to take PG.
But I personally recommend you to stay in a hostel and feel the campus environment and its greenery.Hostels are in good condition and Rabia mosque is there in the campus. It's very pleasurable to go for morning and evening walk with friends and parks are there for exercise lovers. Gym facilities are there for fitness freaks at a very reasonable price and canteens, fruit stalls, hospital, ATM facilities are also there.
Apart from this you will find lots of PG’s in that area specifically in Govindpuri, saket, sangam vihar area.
Regular exam updates, QnA, Predictors, College Applications & E-books now on your Mobile