About this exercise
Task switching measures cognitive flexibility — your ability to reconfigure mental rules quickly.
The same digit has two possible responses depending on the current rule (parity vs magnitude).
When the rule changes from the previous trial, responses slow — that slowdown is the switch cost.
Smaller switch costs are associated with better multitasking under high load.