What is a "Formal examination of evidence by a judge" called?

A formal examination of evidence by a judge is called a "hearing".

A lawyer who represents a person or group in a court of law is called what?

A lawyer who represents a person or group in a court of law is called an "attorney" or "lawyer".