Hey Aspirant, Yes you are eligible to give the compartment exams that are supposed to held in the month of july as you are failing in 2 subjects. As failing in 3 or more than 3 subjects result in failing that class and repeating that. So, without worrying you can give the compartment exam.
Hope this helps
Good luck
Regular exam updates, QnA, Predictors, College Applications & E-books now on your Mobile