
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.08 * -40 |
-3.2 |
| 2) |
34.95 - -4 |
38.95 |
| 3) |
1 + 0.038 |
1.038 |
| 4) |
-0.028 - -9 |
8.972 |
| 5) |
393.4 / 1 |
393.4 |
| 6) |
-0.42 + 88.1 |
87.68 |
| 7) |
0.151 - -0.4 |
0.551 |
| 8) |
853 + 61.1 |
914.1 |
| 9) |
982 - -26 |
1008 |
| 10) |
9743 + -831 |
8912 |
| 11) |
8 - 0.64 |
7.36 |
| 12) |
278 / -5 |
-55.6 |
| 13) |
-28.8 + 882.6 |
853.8 |
| 14) |
8 - 13.1 |
-5.1 |
| 15) |
0.7 * 5 |
3.5 |
| 16) |
942.7 + 49 |
991.7 |
| 17) |
0.5 + 7.93 |
8.43 |
| 18) |
6560 * -0.075 |
-492 |
| 19) |
948 - -88 |
1036 |
| 20) |
-3 - 603 |
-606 |
| 21) |
4252 + 6 |
4258 |
| 22) |
-0.008 + 0.6 |
0.592 |
| 23) |
9935 + 6 |
9941 |
| 24) |
0.9 - 0.003 |
0.897 |
| 25) |
66 - 1.2 |
64.8 |
| 26) |
5 - -6 |
11 |
| 27) |
-38.9 + -9 |
-47.9 |
| 28) |
-173 * -47 |
8131 |
| 29) |
-627 - 342 |
-969 |
| 30) |
5.2 * 5.3 |
27.56 |
| 31) |
6519 - 994 |
5525 |
| 32) |
76 / 0.2 |
380 |
| 33) |
11 + -8.49 |
2.51 |
| 34) |
99 / 0.3 |
330 |
| 35) |
8 * -0.04 |
-0.32 |
| 36) |
-0.096 - -4 |
3.904 |
| 37) |
-0.1 + -6 |
-6.1 |
| 38) |
595 - -83 |
678 |
| 39) |
18.16 + 24 |
42.16 |
| 40) |
0.7 / -0.08 |
-8.75 |
| 41) |
0.06 - -7.6 |
7.66 |
| 42) |
-86 + -78 |
-164 |
| 43) |
18 - -0.07 |
18.07 |
| 44) |
36 * 9 |
324 |
| 45) |
132 - -449 |
581 |
| 46) |
0.5 / 0.08 |
6.25 |
| 47) |
1612 - -9 |
1621 |
| 48) |
-97 * 8 |
-776 |
| 49) |
-9 + 51 |
42 |
| 50) |
96 * 0.8 |
76.8 |
| 51) |
2 - -12.9 |
14.9 |
| 52) |
6.5 + 9 |
15.5 |
| 53) |
9197 - 1339 |
7858 |
| 54) |
5553 + 47 |
5600 |
| 55) |
2.97 + 9.8 |
12.77 |
| 56) |
-0.625 + 0.821 |
0.196 |
| 57) |
-384 + 937 |
553 |
| 58) |
9324 / 6 |
1554 |
| 59) |
-331 + -357 |
-688 |
| 60) |
-66 + 12 |
-54 |
| 61) |
292 - -297 |
589 |
| 62) |
7 * 544 |
3808 |
| 63) |
-567 + 8 |
-559 |
| 64) |
14 - 72 |
-58 |
| 65) |
-63 - 8 |
-71 |
| 66) |
293 + -950 |
-657 |
| 67) |
6 * 6.17 |
37.02 |
| 68) |
-240 - 137 |
-377 |
| 69) |
5 + -58 |
-53 |
| 70) |
2 * 49.2 |
98.4 |
| 71) |
-0.365 - -6 |
5.635 |
| 72) |
9 + 7 |
16 |
| 73) |
8299 - 6570 |
1729 |
| 74) |
0.003 + 5.7 |
5.703 |
| 75) |
69.39 - -4 |
73.39 |
| 76) |
909 + -5 |
904 |
| 77) |
0.005 * -4 |
-0.02 |
| 78) |
5 / 2 |
2.5 |
| 79) |
50.18 - 6.73 |
43.45 |
| 80) |
6447 + 73 |
6520 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized