# \[Solved\] How to keep score in a quiz

**URL:** <https://community.thunkable.com/t/solved-how-to-keep-score-in-a-quiz/524283>\
**Category:** Questions about Thunkable X\
**Created:** [March 19, 2020, 10:44pm UTC](https://community.thunkable.com/t/solved-how-to-keep-score-in-a-quiz/524283 "2020-03-19T22:44:52Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![ines.v.dias2nya](https://avatars.discourse-cdn.com/v4/letter/i/73ab20/32.png) [@ines.v.dias2nya](https://community.thunkable.com/u/ines.v.dias2nya)\
**Post date:** [March 19, 2020, 10:44pm UTC](https://community.thunkable.com/t/solved-how-to-keep-score-in-a-quiz/524283/1 "2020-03-19T22:44:52Z")

</div>

Hey everyone.  
So i´m making a quiz app and at the end of the quiz i want to count how many correct answers the player did. Can somebody help me please?

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [March 19, 2020, 11:34pm UTC](https://community.thunkable.com/t/solved-how-to-keep-score-in-a-quiz/524283/2 "2020-03-19T23:34:10Z")

</div>

You would create a variable to store the number of correct answers and then each time a correct answer is chosen, you would increase the value of the variable by one.

Are you using Thunkable X or the older Thunkable Classic?

---

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [March 20, 2020, 12:51am UTC](https://community.thunkable.com/t/solved-how-to-keep-score-in-a-quiz/524283/3 "2020-03-20T00:51:04Z")

</div>

If user input equals correct response  
Set score as score plus 1

---

<div class="post-metadata">

**Author:** ![kartik14](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/kartik14/32/44782_2.png) [@kartik14](https://community.thunkable.com/u/kartik14)\
**Post date:** [March 20, 2020, 3:57am UTC](https://community.thunkable.com/t/solved-how-to-keep-score-in-a-quiz/524283/4 "2020-03-20T03:57:49Z")

</div>

@ines.v.dias2nya are you making this in Thunkable X ([x.thunkable.com](http://x.thunkable.com))?

* * *

If yes,

> [@jared](#):
>
> Set score as score plus 1

And the `score` will be a `local_storage` value, or a `stored variable` 👍

Thanks! 😊

---

<div class="post-metadata">

**Author:** ![ines.v.dias2nya](https://avatars.discourse-cdn.com/v4/letter/i/73ab20/32.png) [@ines.v.dias2nya](https://community.thunkable.com/u/ines.v.dias2nya)\
**Post date:** [March 21, 2020, 1:32pm UTC](https://community.thunkable.com/t/solved-how-to-keep-score-in-a-quiz/524283/5 "2020-03-21T13:32:39Z")

</div>

Thank you so much but can you tell me where i can find those controls?Thanks for your help 🙂

---

<div class="post-metadata">

**Author:** ![ines.v.dias2nya](https://avatars.discourse-cdn.com/v4/letter/i/73ab20/32.png) [@ines.v.dias2nya](https://community.thunkable.com/u/ines.v.dias2nya)\
**Post date:** [March 21, 2020, 1:33pm UTC](https://community.thunkable.com/t/solved-how-to-keep-score-in-a-quiz/524283/6 "2020-03-21T13:33:30Z")

</div>

I think this is the thunkable x

---

<div class="post-metadata">

**Author:** ![kartik14](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/kartik14/32/44782_2.png) [@kartik14](https://community.thunkable.com/u/kartik14)\
**Post date:** [March 21, 2020, 1:47pm UTC](https://community.thunkable.com/t/solved-how-to-keep-score-in-a-quiz/524283/7 "2020-03-21T13:47:23Z")

</div>

Hi, @ines.v.dias2nya! 👋

* * *

Here you can find the variables -

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/b/3/b311467998279e4de22ee727642e1722c8a012c4.png)

Thanks! 😊

---

<div class="post-metadata">

**Author:** ![ines.v.dias2nya](https://avatars.discourse-cdn.com/v4/letter/i/73ab20/32.png) [@ines.v.dias2nya](https://community.thunkable.com/u/ines.v.dias2nya)\
**Post date:** [March 21, 2020, 2:05pm UTC](https://community.thunkable.com/t/solved-how-to-keep-score-in-a-quiz/524283/8 "2020-03-21T14:05:13Z")

</div>

Thank you so much

---

<div class="post-metadata">

**Author:** ![ines.v.dias2nya](https://avatars.discourse-cdn.com/v4/letter/i/73ab20/32.png) [@ines.v.dias2nya](https://community.thunkable.com/u/ines.v.dias2nya)\
**Post date:** [March 21, 2020, 2:28pm UTC](https://community.thunkable.com/t/solved-how-to-keep-score-in-a-quiz/524283/9 "2020-03-21T14:28:32Z")

</div>

I really can´t figure out how to make it work.would you mind making the code so i can copy it?i would appreciate that 😃

---

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [March 21, 2020, 3:50pm UTC](https://community.thunkable.com/t/solved-how-to-keep-score-in-a-quiz/524283/10 "2020-03-21T15:50:01Z")

</div>

Hi @ines.v.dias2nya, please see the following tutorial. An example of how to count stuff

> [@How to make a simple counter App](http://community.thunkable.com/t/how-to-make-a-simple-counter-app/520169):
>
> Perhaps this has been done in the past but I thought I would take the opportunity to post a fresh tutorial! [Remix Link](https://x.thunkable.com/copy/fac954f680585012084fef75841ae9cf) So to create a counter you need a few basic things. First, you need your design layout. This may look like many things but for our use case (purpose) we will be including only a label and a button. Although you can’t see the label, it is there. The text was r…

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [March 21, 2020, 4:56pm UTC](https://community.thunkable.com/t/solved-how-to-keep-score-in-a-quiz/524283/11 "2020-03-21T16:56:53Z")

</div>

If you’re having trouble, post a screenshot of what you’ve tried and we can help you troubleshoot it.

---

<div class="post-metadata">

**Author:** ![ines.v.dias2nya](https://avatars.discourse-cdn.com/v4/letter/i/73ab20/32.png) [@ines.v.dias2nya](https://community.thunkable.com/u/ines.v.dias2nya)\
**Post date:** [March 21, 2020, 6:16pm UTC](https://community.thunkable.com/t/solved-how-to-keep-score-in-a-quiz/524283/12 "2020-03-21T18:16:31Z")

</div>

ok so basically i´m trying to count how many times sound1 plays because sound 1 is the corrct answer. And until now i´ve done this

![imagem](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/b/6bf08590f8c945bf8e00c4ecf1c029c4454a6001.png)

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [March 21, 2020, 7:40pm UTC](https://community.thunkable.com/t/solved-how-to-keep-score-in-a-quiz/524283/13 "2020-03-21T19:40:08Z")

</div>

That looks right to me. I don’t have experience with the _Sound • on source loaded_ block but if it fires then it should increase the value of stored.Counter by 1.

---

<div class="post-metadata">

**Author:** ![ines.v.dias2nya](https://avatars.discourse-cdn.com/v4/letter/i/73ab20/32.png) [@ines.v.dias2nya](https://community.thunkable.com/u/ines.v.dias2nya)\
**Post date:** [March 21, 2020, 7:45pm UTC](https://community.thunkable.com/t/solved-how-to-keep-score-in-a-quiz/524283/14 "2020-03-21T19:45:42Z")

</div>

the thing is that it´s not working.Maybe it´s because i put those blocks on the last screen instead of puting it on the beginning?Any idea of how i can do it ?  
Basically i think the block are counting the number of times sound on plays on SCREEN 12 which means that it doesnt count the pevious screens where the sound played.And thats what i want but im not able to do it. Any thoughts?

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [March 21, 2020, 8:14pm UTC](https://community.thunkable.com/t/solved-how-to-keep-score-in-a-quiz/524283/15 "2020-03-21T20:14:42Z")

</div>

I think that’s probably the problem, yes. Try a test with all blocks on one screen to see if that works.

---

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [March 22, 2020, 3:05am UTC](https://community.thunkable.com/t/solved-how-to-keep-score-in-a-quiz/524283/16 "2020-03-22T03:05:15Z")

</div>

if you provide a screenshot of all the blocks we could help further. there may be a more efficient way to track points without the need to change screens.

did @tatiang’s suggestions help you @ines.v.dias2nya?

---

<div class="post-metadata">

**Author:** ![kartik14](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/kartik14/32/44782_2.png) [@kartik14](https://community.thunkable.com/u/kartik14)\
**Post date:** [March 22, 2020, 3:16am UTC](https://community.thunkable.com/t/solved-how-to-keep-score-in-a-quiz/524283/17 "2020-03-22T03:16:03Z")

</div>

I think the stored variable will stay forever, won’t it?

The user will take quiz every-time he opens the app / or one time?

Thanks! 😊

---

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [March 22, 2020, 2:45pm UTC](https://community.thunkable.com/t/solved-how-to-keep-score-in-a-quiz/524283/18 "2020-03-22T14:45:33Z")

</div>

I have moved this post to a more appropriate location as your blocks, @ines.v.dias2nya, are from Thunkable X.

---

<div class="post-metadata">

**Author:** ![ines.v.dias2nya](https://avatars.discourse-cdn.com/v4/letter/i/73ab20/32.png) [@ines.v.dias2nya](https://community.thunkable.com/u/ines.v.dias2nya)\
**Post date:** [March 22, 2020, 4:01pm UTC](https://community.thunkable.com/t/solved-how-to-keep-score-in-a-quiz/524283/19 "2020-03-22T16:01:41Z")

</div>

I really dont know but I will send the screenshots right now.I hope you guys can help me

---

<div class="post-metadata">

**Author:** ![ines.v.dias2nya](https://avatars.discourse-cdn.com/v4/letter/i/73ab20/32.png) [@ines.v.dias2nya](https://community.thunkable.com/u/ines.v.dias2nya)\
**Post date:** [March 22, 2020, 4:06pm UTC](https://community.thunkable.com/t/solved-how-to-keep-score-in-a-quiz/524283/20 "2020-03-22T16:06:17Z")

</div>

Ok i have 12 screens. In the first one i have a when button click navigate to screen 2.That is where the quiz starts and then in the next 10 screens i have these blocks

 ![imagem](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/8/9862ad2f5e185b7098a6491658f5e825dbbb04fa.png)

[Next page](https://community.thunkable.com/t/solved-how-to-keep-score-in-a-quiz/524283.md?page=2)
