In 3rd year or in 4th year..
Only Final year you can write the gate examination. Final Year of Engineering only. Gate certificate from your college or your Head of Department.