The magnetic field lines around a bar magnet originate from the north pole and curve around to enter the south pole. These lines represent the direction of magnetic force and never intersect.
Below is the diagram: 
The direction of the force acting on the electron entering perpendicular to the magnetic field as shown in the figure, will be:
The value of $\dfrac{1+\cot^2 \theta}{1+\tan^2 \theta}$ will be: