Function that asks a question and returns a boolean value