Not if the variable is declared as Static. It will always keep its previous value. If the answer is wrong, it redoes the entire function from the beginning, so after a few times of redoing the function, keeping its value from the previous attempt, it will be true.