# Questions about Checking Answer

**URL:** <https://cl.desmos.com/t/questions-about-checking-answer/1698>\
**Category:** Questions\
**Tags:** validation, correctness\
**Created:** [October 14, 2020, 4:20pm UTC](https://cl.desmos.com/t/questions-about-checking-answer/1698 "2020-10-14T16:20:14Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Olivia\_Deeming](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/olivia_deeming/32/1323_2.png) [@Olivia\_Deeming](https://cl.desmos.com/u/Olivia_Deeming)\
**Post date:** [October 14, 2020, 4:20pm UTC](https://cl.desmos.com/t/questions-about-checking-answer/1698/1 "2020-10-14T16:20:14Z")

</div>

I want the students to answer the question when they hit the button “Check your answer” if they got it right I want it to say correct. If they got it wrong I want it to say Try again. How do I do this?

Here is my activity: [Dividing Fractions Practice • Activity by Olivia Deeming](https://teacher.desmos.com/activitybuilder/custom/5f871e175b65852d764b2988)

---

<div class="post-metadata">

**Author:** ![Daniel\_Grubbs](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/daniel_grubbs/32/719_2.png) [@Daniel\_Grubbs](https://cl.desmos.com/u/Daniel_Grubbs)\
**Post date:** [October 14, 2020, 4:29pm UTC](https://cl.desmos.com/t/questions-about-checking-answer/1698/2 "2020-10-14T16:29:51Z")

</div>

There are a few things that we’d need to know. Do you expect the answer in a certain form? I assume a fraction, but will you accept improper? Mixed? Both? I also assume you mean you want `note1` to be the “Correct” or “Try Again”.

---

<div class="post-metadata">

**Author:** ![Olivia\_Deeming](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/olivia_deeming/32/1323_2.png) [@Olivia\_Deeming](https://cl.desmos.com/u/Olivia_Deeming)\
**Post date:** [October 14, 2020, 6:00pm UTC](https://cl.desmos.com/t/questions-about-checking-answer/1698/3 "2020-10-14T18:00:03Z")

</div>

So I want the fraction in the simplest form and improper fractions to mixed numbers.

---

<div class="post-metadata">

**Author:** ![Daniel\_Grubbs](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/daniel_grubbs/32/719_2.png) [@Daniel\_Grubbs](https://cl.desmos.com/u/Daniel_Grubbs)\
**Post date:** [October 14, 2020, 6:27pm UTC](https://cl.desmos.com/t/questions-about-checking-answer/1698/4 "2020-10-14T18:27:52Z")

</div>

Here’s one from another thread:

> [@Correct Check for Numeric Value](https://cl.desmos.com/t/correct-check-for-numeric-value/760/5):
>
> I assume you meant you wanted to check that an answer is given as a mixed fraction. I’d use something like this (in the math input component): checkValue = numericValue("\abs(${this.latex}-(8/3))")\<=0.01 checkMixed = countNumberUsage(this.latex,2)=2 and countNumberUsage(this.latex,3)=1 correct: checkValue and checkMixed checkValue just checks if the value is correct within 0.01, so 2.67, 8/3, or 2 2/3 would output true. checkMixed uses countNumberUsage to see if the number 2 is used twice, an…

---

<div class="post-metadata">

**Author:** ![Olivia\_Deeming](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/olivia_deeming/32/1323_2.png) [@Olivia\_Deeming](https://cl.desmos.com/u/Olivia_Deeming)\
**Post date:** [October 14, 2020, 7:10pm UTC](https://cl.desmos.com/t/questions-about-checking-answer/1698/5 "2020-10-14T19:10:26Z")

</div>

It didn’t word. I want the student to click the check answer button and for it to say if they are correct or not. The first questions answer is 1/18. Thats the only answer I will accept

---

<div class="post-metadata">

**Author:** ![Daniel\_Grubbs](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/daniel_grubbs/32/719_2.png) [@Daniel\_Grubbs](https://cl.desmos.com/u/Daniel_Grubbs)\
**Post date:** [October 14, 2020, 7:47pm UTC](https://cl.desmos.com/t/questions-about-checking-answer/1698/6 "2020-10-14T19:47:37Z")

</div>

Here, I edited slide 2. The `input` CL has the answer check. The `note` has conditions to display a message. (I also moved the note from under the sketch because it wasn’t apparent when it changed.)

> **[\[Copy of\] Dividing Fractions Practice • Activity Builder by Desmos](https://teacher.desmos.com/activitybuilder/custom/5f872679c952910ce46312aa)**
>
> by Daniel Grubbs

---

<div class="post-metadata">

**Author:** ![Olivia\_Deeming](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/olivia_deeming/32/1323_2.png) [@Olivia\_Deeming](https://cl.desmos.com/u/Olivia_Deeming)\
**Post date:** [October 14, 2020, 8:18pm UTC](https://cl.desmos.com/t/questions-about-checking-answer/1698/7 "2020-10-14T20:18:50Z")

</div>

Thank you so much! How would I do this with a mixed number problem?

---

<div class="post-metadata">

**Author:** ![Olivia\_Deeming](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/olivia_deeming/32/1323_2.png) [@Olivia\_Deeming](https://cl.desmos.com/u/Olivia_Deeming)\
**Post date:** [October 14, 2020, 8:48pm UTC](https://cl.desmos.com/t/questions-about-checking-answer/1698/8 "2020-10-14T20:48:32Z")

</div>

So I just need help on slide 5

---

<div class="post-metadata">

**Author:** ![Olivia\_Deeming](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/olivia_deeming/32/1323_2.png) [@Olivia\_Deeming](https://cl.desmos.com/u/Olivia_Deeming)\
**Post date:** [October 14, 2020, 8:54pm UTC](https://cl.desmos.com/t/questions-about-checking-answer/1698/9 "2020-10-14T20:54:19Z")

</div>

I did it! Thank you so much
