Are LLMs Aware that Some Questions are not Open-ended?