
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) |
13.9 + -40 |
-26.1 |
| 2) |
87 - 14.3 |
72.7 |
| 3) |
-802 / -25 |
32.08 |
| 4) |
-9 - -90.24 |
81.24 |
| 5) |
0.898 - 0.03 |
0.868 |
| 6) |
-5.93 + 4.4 |
-1.53 |
| 7) |
2.33 + 8.8 |
11.13 |
| 8) |
-9.8 - 0.8 |
-10.6 |
| 9) |
3 + -7 |
-4 |
| 10) |
0.06 * -37 |
-2.22 |
| 11) |
-9 + 2515 |
2506 |
| 12) |
60 + 0.05 |
60.05 |
| 13) |
-940 * -3 |
2820 |
| 14) |
0.5 + 0.96 |
1.46 |
| 15) |
0.28 * 34.9 |
9.772 |
| 16) |
-5 - -6.11 |
1.11 |
| 17) |
6.5 - -6 |
12.5 |
| 18) |
1.267 + 7.9 |
9.167 |
| 19) |
9 - 392 |
-383 |
| 20) |
0.29 + 7 |
7.29 |
| 21) |
0.66 + 43.52 |
44.18 |
| 22) |
1124 + 2988 |
4112 |
| 23) |
88.95 - -0.33 |
89.28 |
| 24) |
-1 + -15 |
-16 |
| 25) |
57.6 + -0.9 |
56.7 |
| 26) |
-0.5 * 92 |
-46 |
| 27) |
0.58 - -2.2 |
2.78 |
| 28) |
-2 - -141 |
139 |
| 29) |
67 - 0.03 |
66.97 |
| 30) |
5 * -0.94 |
-4.7 |
| 31) |
9 / 0.005 |
1800 |
| 32) |
0.02 - 3.1 |
-3.08 |
| 33) |
0.67 * 12 |
8.04 |
| 34) |
-716 / 2 |
-358 |
| 35) |
0.064 * 72 |
4.608 |
| 36) |
771 - 4 |
767 |
| 37) |
-93 + 3043 |
2950 |
| 38) |
-57.7 - 6 |
-63.7 |
| 39) |
0.028 + 0.835 |
0.863 |
| 40) |
0.077 - -7.1 |
7.177 |
| 41) |
4 + -0.092 |
3.908 |
| 42) |
-0.074 * -95 |
7.03 |
| 43) |
-0.005 - -0.98 |
0.975 |
| 44) |
7 * 0.011 |
0.077 |
| 45) |
47.3 - -0.4 |
47.7 |
| 46) |
0.007 + 2 |
2.007 |
| 47) |
13.16 - -0.06 |
13.22 |
| 48) |
-1 - -3.82 |
2.82 |
| 49) |
111 * -0.3 |
-33.3 |
| 50) |
2 + 248 |
250 |
| 51) |
-81 / 81 |
-1 |
| 52) |
83 + 279.6 |
362.6 |
| 53) |
6 * 1 |
6 |
| 54) |
2.51 + 2 |
4.51 |
| 55) |
4 * 0.04 |
0.16 |
| 56) |
2 + 0.903 |
2.903 |
| 57) |
-4 - -3.42 |
-0.58 |
| 58) |
-55.6 * -0.05 |
2.78 |
| 59) |
-55 * 5 |
-275 |
| 60) |
3.8 / 8 |
0.475 |
| 61) |
9951 - 530 |
9421 |
| 62) |
48 - -159 |
207 |
| 63) |
5556 + 6 |
5562 |
| 64) |
-0.083 * -8 |
0.664 |
| 65) |
10 - 0.8 |
9.2 |
| 66) |
89 * 0.02 |
1.78 |
| 67) |
0.8 * 23 |
18.4 |
| 68) |
710 + 7645 |
8355 |
| 69) |
2.29 / -0.1 |
-22.9 |
| 70) |
0.06 * 0.6 |
0.036 |
| 71) |
-0.51 / 1 |
-0.51 |
| 72) |
2 * 8.2 |
16.4 |
| 73) |
409.5 - 72.7 |
336.8 |
| 74) |
-9.1 + 33.6 |
24.5 |
| 75) |
98.4 + 50.6 |
149 |
| 76) |
46.27 + 1 |
47.27 |
| 77) |
89 - -584 |
673 |
| 78) |
761 - 64 |
697 |
| 79) |
15.8 + 9 |
24.8 |
| 80) |
1200 / 0.4 |
3000 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized