Lisa is 100% correct. I interviewed more than a handful of trainers before I hired one who I felt was confident enough to teach me to lift. I wrote up interview questions and a requirements document just to be efficient with the process. There are some amazingly bad trainers out there.
So that is a big component in the equation. Don't use whoever the gym hands you. Interview at least 10 of them before making your decision.