
Easy level
This level has a single operation per question and the terms are at most 4 digits (including decimals).
All answers have 4 digits or less. This is (much) simpler than a real trading test. If you want you can
also try this level as a test (posts to
!) or set up a
custom exercise.
}
elseif( $_GET['quickselect'] == 'math_medium' )
{
$level = "Medium";
$_GET['maxTermLength'] = 5;
$_GET['maxTermDecimalLength'] = 4;
$_GET['maxAnswerLength'] = 5;
$_GET['maxAnswerDecimalLength'] = 4;
$_GET['minOperations'] = 1;
$_GET['maxOperations'] = 4;
?>
Medium level
This level has a maximum of 4 operations per question and all terms are at most 5 digits including the decimal part.
All answers have 5 digits or less. This is about the level of some trading tests. If you want you can also try this
level as a test (posts to
!) or set up a
custom exercise.
}
elseif( $_GET['quickselect'] == 'math_hard' )
{
$level = "Hard";
$_GET['maxTermLength'] = 6;
$_GET['maxTermDecimalLength'] = 5;
$_GET['maxAnswerLength'] = 6;
$_GET['maxAnswerDecimalLength'] = 5;
$_GET['minOperations'] = 3;
$_GET['maxOperations'] = 4;
?>
Hard level
This level has a maximum of 6 operations per question and all terms are at most 6 digits including the decimal part.
All answers have 5 digits or less. This is beyond the level of most trading tests. If you want you can also try this
level as a test (posts to
!) or set up a
custom exercise.
}
else
{
$generateTest = false;
echo 'Invalid quick select: ' . $_GET['quickselect'];
}
}
// Clean start default variables
if( ! isset( $_GET['posted'] ) )
{
$_GET['useNegativeVariables'] = 'on';
$_GET['optimizeSolvability'] = 'on';
$_GET['preventTooSimple'] = 'on';
$_GET['showSetup'] = 'on';
}
// Generate test?
if( $generateTest )
{
// Normalize values
if( ! isset( $_GET['questionCount'] ) ||
! is_numeric( $_GET['questionCount'] ) ||
$_GET['questionCount'] <= 0 ||
$_GET['questionCount'] > 250 )
{
$_GET['questionCount'] = 80;
}
if( ! isset( $_GET['maxTermLength'] ) ||
! is_numeric( $_GET['maxTermLength'] ) ||
$_GET['maxTermLength'] <= 0 ||
$_GET['maxTermLength'] > 20 )
{
$_GET['maxTermLength'] = 6;
}
if( ! isset( $_GET['maxTermDecimalLength'] ) ||
! is_numeric( $_GET['maxTermDecimalLength'] ) ||
$_GET['maxTermDecimalLength'] <= 0 ||
$_GET['maxTermDecimalLength'] > 20 )
{
$_GET['maxTermDecimalLength'] = 3;
}
if( ! isset( $_GET['maxAnswerLength'] ) ||
! is_numeric( $_GET['maxAnswerLength'] ) ||
$_GET['maxAnswerLength'] <= 0 ||
$_GET['maxAnswerLength'] > 20 )
{
$_GET['maxAnswerLength'] = 4;
}
if( ! isset( $_GET['maxAnswerDecimalLength'] ) ||
! is_numeric( $_GET['maxAnswerDecimalLength'] ) ||
$_GET['maxAnswerDecimalLength'] < 0 ||
$_GET['maxAnswerDecimalLength'] > 20 )
{
$_GET['maxAnswerDecimalLength'] = 3;
}
if( ! isset( $_GET['minOperations'] ) ||
! is_numeric( $_GET['minOperations'] ) ||
$_GET['minOperations'] <= 0 ||
$_GET['minOperations'] > 9 )
{
$_GET['minOperations'] = 1;
}
if( ! isset( $_GET['maxOperations'] ) ||
! is_numeric( $_GET['maxOperations'] ) ||
$_GET['maxOperations'] <= 0 ||
$_GET['maxOperations'] > 9 )
{
$_GET['maxOperations'] = 4;
}
if( $_GET['minOperations'] > $_GET['maxOperations'] )
{
$_GET['minOperations'] = 1;
$_GET['maxOperations'] = 4;
}
if( ! isset( $_GET['mode'] ) ||
( //$_GET['mode'] != 'exam' &&
$_GET['mode'] != 'test' &&
$_GET['mode'] != 'practice' ) )
{
$_GET['mode'] = 'practice';
}
if( ! isset( $_GET['useVariableInteger'] ) &&
! isset( $_GET['useVariableDouble'] ) )
{
$_GET['useVariableInteger'] = 'on';
$_GET['useVariableDouble'] = 'on';
}
if( ! isset( $_GET['useOperatorAdd'] ) &&
! isset( $_GET['useOperatorSubtract'] ) &&
! isset( $_GET['useOperatorMultiply'] ) &&
! isset( $_GET['useOperatorDivide'] ) )
{
$_GET['useOperatorAdd'] = 'on';
$_GET['useOperatorSubtract'] = 'on';
$_GET['useOperatorMultiply'] = 'on';
$_GET['useOperatorDivide'] = 'on';
}
// FIXME this prevent do..while deadlocks below but it's not nice
if( ! isset( $_GET['useVariableInteger'] ) &&
isset( $_GET['useVariableDouble'] ) &&
! isset( $_GET['useVariableFactor'] ) &&
! isset( $_GET['useOperatorAdd'] ) &&
! isset( $_GET['useOperatorSubtract'] ) &&
isset( $_GET['useOperatorMultiply'] ) &&
! isset( $_GET['useOperatorDivide'] ) &&
! isset( $_GET['optimizeSolvability'] ) )
{
die( 'Impossible combination to guarantee easy exercises, disable optimizeSolvability if you really want this.' );
}
// Show setup?
if( isset( $_GET['showSetup'] ) )
{
?>
Set up exercise
Scoring
You get one point for every correct answer. Deduct one point for each error. If you skip a question or run out of time in a timed test, all following questions are not used in your score. Time yourself to 6 seconds per question. Generally you need to pass 55 out of 80 questions or ~70% of the maximum score, but higher is always better.
Manual
The answer to the test will be printed right next to it in the site's background color. You can use CTRL+A, Command+A or use
the mouse to select all text on this page.
Questions
| 1) |
0.78 - 0.554 |
0.226 |
| 2) |
14.6 * 16 |
233.6 |
| 3) |
429 - 5.2 |
423.8 |
| 4) |
-0.01 + -5 |
-5.01 |
| 5) |
35.2 / 5 |
7.04 |
| 6) |
213 - 12 |
201 |
| 7) |
280 + -310 |
-30 |
| 8) |
0.09 * 5 |
0.45 |
| 9) |
7 * 61 |
427 |
| 10) |
1930 + 9 |
1939 |
| 11) |
511 - 91 |
420 |
| 12) |
1781 + 4088 |
5869 |
| 13) |
0.1 - 0.071 |
0.029 |
| 14) |
0.887 + 7 |
7.887 |
| 15) |
-7.6 + 982 |
974.4 |
| 16) |
3.6 - -99 |
102.6 |
| 17) |
6 - 0.07 |
5.93 |
| 18) |
-0.33 + 43 |
42.67 |
| 19) |
7209 - -765 |
7974 |
| 20) |
6 * 5.6 |
33.6 |
| 21) |
9.57 + 0.333 |
9.903 |
| 22) |
-8.6 + 8 |
-0.6 |
| 23) |
-476 * -0.001 |
0.476 |
| 24) |
6.421 - 0.005 |
6.416 |
| 25) |
13 * 0.005 |
0.065 |
| 26) |
-337 + -3 |
-340 |
| 27) |
412 + -480.3 |
-68.3 |
| 28) |
411 + -5 |
406 |
| 29) |
4.17 - 0.004 |
4.166 |
| 30) |
0.11 - 5.2 |
-5.09 |
| 31) |
-726 * -0.3 |
217.8 |
| 32) |
2 + 289 |
291 |
| 33) |
0.8 - 35 |
-34.2 |
| 34) |
0.7 + 2 |
2.7 |
| 35) |
1 + -656 |
-655 |
| 36) |
2.413 - -0.4 |
2.813 |
| 37) |
-4.227 + 5.61 |
1.383 |
| 38) |
12 + 5361 |
5373 |
| 39) |
-2.34 / -1 |
2.34 |
| 40) |
3695 + 896 |
4591 |
| 41) |
6 - 0.73 |
5.27 |
| 42) |
53 + 2 |
55 |
| 43) |
-310 * 0.5 |
-155 |
| 44) |
48 + 268 |
316 |
| 45) |
-58 + 518.5 |
460.5 |
| 46) |
4372 - 14 |
4358 |
| 47) |
7 - -580.3 |
587.3 |
| 48) |
-527 * -0.6 |
316.2 |
| 49) |
0.65 - -0.09 |
0.74 |
| 50) |
0.35 + 0.24 |
0.59 |
| 51) |
0.007 + 6 |
6.007 |
| 52) |
0.02 + 59 |
59.02 |
| 53) |
504 - 376 |
128 |
| 54) |
-0.006 + 1 |
0.994 |
| 55) |
0.08 - -40.2 |
40.28 |
| 56) |
-1 - -714 |
713 |
| 57) |
0.1 - -0.8 |
0.9 |
| 58) |
6 * 0.091 |
0.546 |
| 59) |
995 + 7 |
1002 |
| 60) |
0.6 * 17.5 |
10.5 |
| 61) |
-306 * -19 |
5814 |
| 62) |
-0.017 / 0.01 |
-1.7 |
| 63) |
2 - 48.5 |
-46.5 |
| 64) |
-39 + -5 |
-44 |
| 65) |
1.7 * 0.5 |
0.85 |
| 66) |
88.2 - -0.75 |
88.95 |
| 67) |
8.475 * 0.2 |
1.695 |
| 68) |
-729 * -3 |
2187 |
| 69) |
-5 + 711 |
706 |
| 70) |
982 - -3298 |
4280 |
| 71) |
3.05 + 3 |
6.05 |
| 72) |
0.1 + 0.76 |
0.86 |
| 73) |
6 * 331 |
1986 |
| 74) |
165 / 15 |
11 |
| 75) |
82.36 - 0.03 |
82.33 |
| 76) |
68 - 245 |
-177 |
| 77) |
-1.1 - -73 |
71.9 |
| 78) |
-17 + -8 |
-25 |
| 79) |
62 - 0.01 |
61.99 |
| 80) |
0.02 - 0.017 |
0.003 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized