H
H
hesy2021-01-18 00:01:43
Programming
hesy, 2021-01-18 00:01:43

How to do a quiz test like “what kind of alcohol are you”?

I'm wondering how to make a quiz that doesn't have correct answers but just tweaks the final message based on the choice of answers.

For example, tests like here - testometrika or from the series "what kind of alcohol are you" and the like.

The counting algorithm itself is of interest, for example, there are 10 questions and 3 options for the end of the test.

It turns out, roughly speaking, I make each ending "weight", and depending on the answer to the question, I add +1 to the weight of the ending or vice versa subtract -1 and as a result the ending which will have more weight - show?

But it seems to me that this is not very correct and there are some special algorithms for this on which all such sites are built.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Daniil Vasilyev, 2021-01-25
@hello_my_name_is_dany

Usually, "weight" is chosen, that is, the number that will be summed up by the total. For example, either 0, or 1, or 2 to add depending on the answer. And then at the end specify the range of values. for example, 0 to 10 is beer, 10 to 20 is wine, 20 to 30 is vodka. Usually this is how such quizzes are done, but it depends on the platform. You can also write your tests with your system.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question