The correct option is D All the above
The tendency of a liquid to rise up against gravity when confined within a narrow tube is called capillary action.
It occurs due to adhesion, cohesion and surface tension.
The attractive forces that exist between molecules of same substance (in this case, water molecules) is called cohesion.
The attractive forces between molecules of different substances is called adhesion. For example, water and wall of xylem (in this case,water and the wall of the straw).
Water molecules get attracted to each other in liquid phase which causes a tension on their surface. This allows the liquid surfaces to shrink into the minimum surface area possible. This phenomenon is called surface tension.