Depends upon the University you are applying to.......most of the Universities sponsor B1/ B2 visa but now due to some of the recent changes in the Visas many universities require you to come on J visa even for electives. You can apply for visa once you have received the acceptance letter. If you have received the acceptance letter, then you should contact the electives co-ordinator of the respective university and confirm their visa requirements and then apply for that category of visa! If you wish to come to USA for any of the following reasons, you can apply for B1 or B2 Visitor VISA. (Visiting your relatives/friends, medical treatment, Attending meeting, company sponsored training).
Business related visitors can only apply for B1. Others can apply for B2.
The purpose of your VISIT should be short term and you should have permanent residence in the home country (in your case Pakistan).
To obtain B1/B2 VISA, the visitor should show strong evidence to prove that their intention is just to visit USA and their stay in US will only be temporary. Also, they should submit the documents to prove that they have strong base in their home country and will return from US within the permitted time.
Documents for B1 Visitor Visa
Letter from your sponsor. US company or organization explaining the purpose of your visit, duration etc.
Supporting documents from you to explain the purpose of the visit. If your visit is for the company purpose, you need the letter from your company.
Supporting documents from you. To prove that you have strong tip up with your home country (Bank statements, Family details, employment details)
VISA application form. - (Form DS-156)
Valid Passport
2 Photographs
Visa fee
source