I think step 3 of Question No 6 of Practice Assignment (Week 1) is wrong. The step says "
If Pile 1 is empty then stop the execution". If execution is stopped, then steps 9 to 12 won't get executed which means variable X won't be created and X does not represent anything. In that case option 6 ("
None of the above") would be correct and not the option 4 ("
Number of stores which Neeraja visited").
We need to stop iterator when pile 1 is empty and not the execution.
For option 6 to be correct, I think step 3 should have been "If Pile 1 is empty then move to step 9".
If I am wrong, please explain the reason.