Before you ask him out, you should know if he is straight, gay or bi. The best way to determine this is to get to know him first. This is true of any potential partner. Ask him to lunch, or study together, or go to a game. When it feels right, tell him you’re gay (or bi). If he’s into you too, he’ll let you know.