China has been ranked first among a study that rates the countries that feel optimistic about the impact of digital technology and artificial intelligence (AI) on their lifestyles, according to the newly released Digital Society Index.