Yes, it is legal to ask for help if the help has been taken from a legitimate and statutory body. Online exams should only be attempted from websites that promise to provide certificates after the completion of the test. Every online test has a purpose behind its occurrence, like getting admitted in a university or college, completing a subject or being hired for employment.