C. Abdominal ultrasonography is the most useful test in determining the etiology of pancreatitis and is the technique of choice for detecting gallstones.