In Piaget's cognitive development, this falls on the preoperational stage (2-7 yrs.old). The child sees the association of turning the switches with the light's condition. It is a part of the child's learning of concepts and reasoning. The child may also use apply this state of learning on other conditions and prove the consistency of behavior in some actions.