Checking whether a question code will stop or not