Accenture Interview Question

What is the batch class? What are the best practices to write a trigger.