Direction of magnetic field: Imagine the current carrying solenoid in your right hand such that the curled fingers are in the direction of current, then the extended thumb will indicate the direction of emerging magnetic field line, i.e. the face of solenoid which has North polarity.