I am seeking advice on how to ask a generic interview question that would test a candidate's programming aptitude. Is the following question on track or am I way off base?
'Using the data resulting from your completion of the Excel part of this test, write the code in the programming language of your choice, which would yield the average number of people with impaired hearing by city. For purposes of this test, only interested in the code that creates the dataset wanted and not all the other code that may surround it. Place comment statements (/* comment */) in your code to describe its purpose.’
Thanks for any advice you're able to give me.