# Can't tell if student did not do Unit 12 bubble 10 or if he overwrote the answer in bubble 12

**URL:** <https://forum.code.org/t/cant-tell-if-student-did-not-do-unit-12-bubble-10-or-if-he-overwrote-the-answer-in-bubble-12/22272>\
**Category:** Unit and Lesson Discussion\
**Tags:** csp-unit-5, csp-unit-5-lesson-12\
**Created:** [November 17, 2018, 1:19pm UTC](https://forum.code.org/t/cant-tell-if-student-did-not-do-unit-12-bubble-10-or-if-he-overwrote-the-answer-in-bubble-12/22272 "2018-11-17T13:19:55Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![jimwelsh50](https://avatars.discourse-cdn.com/v4/letter/j/b5a626/32.png) [@jimwelsh50](https://forum.code.org/u/jimwelsh50)\
**Post date:** [November 17, 2018, 1:19pm UTC](https://forum.code.org/t/cant-tell-if-student-did-not-do-unit-12-bubble-10-or-if-he-overwrote-the-answer-in-bubble-12/22272/1 "2018-11-17T13:19:55Z")

</div>

I am grading Unit 12, bubble 10 where the student wrote code to see how long it takes to get 12 heads in a row. I can’t tell if he did not do the assignment or if he did do the assignment and he then overwrote it in bubble 12 where students are encouraged to experiment. I pasted the code I see for Unit 12 bubble 10 which has nothing to do with coins. Would bubble 12 overwrite the answer in bubble 10? If so, I am sure I am not the first teacher to hit this problem. I will have to tell my students to NOT do bubble 12 so I can grade bubble 10 next year.

Code below.  
var x = -1;  
var y = 0;  
var unl = 0;  
while (y \<= 100) {  
x=randomNumber(1,20);  
//write(x);  
y++;  
if(x\<=3){  
unl++;  
write(“unl=”+unl);  
}else{  
unl=0;  
}  
}  
write(“done”);

---

<div class="post-metadata">

**Author:** ![frank\_w\_lee](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/frank_w_lee/32/4895_2.png) [@frank\_w\_lee](https://forum.code.org/u/frank_w_lee)\
**Post date:** [November 17, 2018, 10:55pm UTC](https://forum.code.org/t/cant-tell-if-student-did-not-do-unit-12-bubble-10-or-if-he-overwrote-the-answer-in-bubble-12/22272/2 "2018-11-17T22:55:05Z")

</div>

Hi @jimwelsh50,

You are correct in that whatever work done in bubble 12 will overwrite the work done in bubble 10, since those are “linked” work spaces.

I do see the problem you mention and I’m sure I’ve run into that problem before too. I’ll bring up your concern with [code.org](http://code.org) staff. I wonder if it would be possible for the teacher to view previous versions…

Sorry for this issue catching you off guard and thank you for bringing this to our attention!

Frank

---

<div class="post-metadata">

**Author:** ![jimwelsh50](https://avatars.discourse-cdn.com/v4/letter/j/b5a626/32.png) [@jimwelsh50](https://forum.code.org/u/jimwelsh50)\
**Post date:** [November 18, 2018, 2:24pm UTC](https://forum.code.org/t/cant-tell-if-student-did-not-do-unit-12-bubble-10-or-if-he-overwrote-the-answer-in-bubble-12/22272/3 "2018-11-18T14:24:47Z")

</div>

Thank you very much!

---

<div class="post-metadata">

**Author:** ![rwilliams](https://avatars.discourse-cdn.com/v4/letter/r/74df32/32.png) [@rwilliams](https://forum.code.org/u/rwilliams)\
**Post date:** [March 21, 2019, 5:45am UTC](https://forum.code.org/t/cant-tell-if-student-did-not-do-unit-12-bubble-10-or-if-he-overwrote-the-answer-in-bubble-12/22272/4 "2019-03-21T05:45:03Z")

</div>

Yes, I’m having that problem where all of Unit 5, Lesson 12 is showing the same code for some of the students. I’m assuming they went back and forth, thus overwriting their entire lesson with the next lesson’s code. Wouldn’t it be better, even on linked lessons, to have the code for each bubble save as submitted, so that if we need to compare what they did in #5 to #6 or #7, we could go back and review?

---

<div class="post-metadata">

**Author:** ![bhatnagars](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/bhatnagars/32/4919_2.png) [@bhatnagars](https://forum.code.org/u/bhatnagars)\
**Post date:** [March 21, 2019, 2:22pm UTC](https://forum.code.org/t/cant-tell-if-student-did-not-do-unit-12-bubble-10-or-if-he-overwrote-the-answer-in-bubble-12/22272/5 "2019-03-21T14:22:04Z")

</div>

I agree. Please make this request at [support@code.org](mailto:support@code.org). For now, I think you can look at version history to see previous versions of the code. Have you tried using that?

---

<div class="post-metadata">

**Author:** ![rwilliams](https://avatars.discourse-cdn.com/v4/letter/r/74df32/32.png) [@rwilliams](https://forum.code.org/u/rwilliams)\
**Post date:** [March 21, 2019, 3:49pm UTC](https://forum.code.org/t/cant-tell-if-student-did-not-do-unit-12-bubble-10-or-if-he-overwrote-the-answer-in-bubble-12/22272/6 "2019-03-21T15:49:16Z")

</div>

Thanks, but I can only see the “Version History” button for my own code. When I am reviewing the students’ code as the Teacher, I do not have that option available. The only thing I can do is click into each bubble, to see if they worked on it and submitted something. However, if they completed a certain task, all the linked code prior (and in some cases, after), is appearing identical, so I don’t know if they copied and pasted the same code to each, or if AppLab overwrote their previous/later code, or if they just stopped at that point.

---

<div class="post-metadata">

**Author:** ![bhatnagars](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/bhatnagars/32/4919_2.png) [@bhatnagars](https://forum.code.org/u/bhatnagars)\
**Post date:** [March 21, 2019, 4:04pm UTC](https://forum.code.org/t/cant-tell-if-student-did-not-do-unit-12-bubble-10-or-if-he-overwrote-the-answer-in-bubble-12/22272/7 "2019-03-21T16:04:18Z")

</div>

You are correct, you cannot see versions of the student’s code. That would be a good feature to have. Code Studio does overwrite the code in the previous levels if the levels are linked. Again, please make the feature request to [support@code.org](mailto:support@code.org).
