Trail-Making Test B is a neuropsychological test of visual attention and task switching. Participants are instructed to connect a set of 18 dots as fast as possible while still maintaining accuracy. It can provide information about visual search speed, scanning, speed of processing, mental flexibility, as well as executive functioning.