Hii There
Yes, you are allowed to take both the compartment and improvement exams in the same year for class 12 CBSE. However, you must meet the eligibility requirements for each exam individually. For the compartment exam, you are eligible if you have failed in one or two subjects in the annual board exam.
I hope this answers your question.
Thanks
Regular exam updates, QnA, Predictors, College Applications & E-books now on your Mobile