What is an expression tree used for in computer science?
A) To represent and evaluate mathematical expressions in a hierarchical manner
B) To sort and organize files in a directory structure
C) To manage and optimize memory allocation in a program
D) To create a visual representation of user interface elements