Measuring the Cognitive Levels of Urban Residents