Subjectively and objectively determined ( accelerometry ) physical activity and sedentary behavior were assessed to examine the association between these free-living behaviors and cognitive function .