How to add Math Quiz?

⇒  Go to https://your.backend.site/game/quiz?id=1

⇒  There is a form will appear to Add a Math quiz in left side like the screenshot below:

screenshot-1

 

Question: Enter your quiz question. You can add the string like $str_a, $os whatever real valued string you set in your Enter your function and result field. So when the math bot make any question it will change $str_a, $os to some random real values like 18, 2

For countries: Enter 2 digit Country ISO for who can see this quiz. Multiple Country ISOs can be added that needs to be separated by comma  You can leave this input field empty if you want to make this quiz visible for all countries.

Enter your function and result: In this field first I will add some real valued strings like:

$str_a = 18      <= Here 18 is the real value and $str_a is a string name
$str_b = 154
$ccc = 56
$os = 2

Then I will create a math function with this values with a prefix $function = 

$function = $os - $str_a + $str_b - $ccc

Now lets see what result brings this function by replacing strings into given real values $result = (2 - 18 + 154 - 56) = 82

Then I will set the result with a prefix $result =  by calculating the real values of above given strings:

$result = 82

 

So the whole thing will be like this:

What is the result of $os - $str_a + $str_b - $ccc will be?
$str_a = 18
$str_b = 154
$ccc = 56
$os = 2
$function = $os - $str_a + $str_b - $ccc
$result = 82

Article Details

Article ID:
36
Category:

Related articles


Copyright © 2024 MintSoft LLC