
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) |
-8 * 4 |
-32 |
| 2) |
-9 + 4 |
-5 |
| 3) |
8.1 - 0.294 |
7.806 |
| 4) |
0.008 + 8.13 |
8.138 |
| 5) |
188 * -5 |
-940 |
| 6) |
0.7 + 9 |
9.7 |
| 7) |
-3 - 4 |
-7 |
| 8) |
4 + 14.7 |
18.7 |
| 9) |
3702 + 68 |
3770 |
| 10) |
99 + 619 |
718 |
| 11) |
813 / 2 |
406.5 |
| 12) |
6884 - -796 |
7680 |
| 13) |
563 + 1979 |
2542 |
| 14) |
-59 * -0.074 |
4.366 |
| 15) |
-111 - 421 |
-532 |
| 16) |
9.04 + 2 |
11.04 |
| 17) |
-9.94 * 1 |
-9.94 |
| 18) |
-7 + 9 |
2 |
| 19) |
329 + -36 |
293 |
| 20) |
-0.8 + 54.21 |
53.41 |
| 21) |
75.2 / -8 |
-9.4 |
| 22) |
225 + 669.8 |
894.8 |
| 23) |
0.1 - 6.73 |
-6.63 |
| 24) |
354.7 + -8 |
346.7 |
| 25) |
-7.1 + 127 |
119.9 |
| 26) |
9 * 0.173 |
1.557 |
| 27) |
-8.69 / 0.01 |
-869 |
| 28) |
-1053 + 899 |
-154 |
| 29) |
6 + 82 |
88 |
| 30) |
0.3 * 0.02 |
0.006 |
| 31) |
76.2 + -50 |
26.2 |
| 32) |
0.02 + 28.48 |
28.5 |
| 33) |
-5 + 5001 |
4996 |
| 34) |
-55.8 + 733 |
677.2 |
| 35) |
0.829 - 0.023 |
0.806 |
| 36) |
0.85 - -5.565 |
6.415 |
| 37) |
5.9 - 4.4 |
1.5 |
| 38) |
684.7 + 9.1 |
693.8 |
| 39) |
28 * 0.001 |
0.028 |
| 40) |
2 + 66 |
68 |
| 41) |
2489 * 1 |
2489 |
| 42) |
-0.96 + -0.07 |
-1.03 |
| 43) |
352 + -793 |
-441 |
| 44) |
457 * 13 |
5941 |
| 45) |
0.84 + -8.3 |
-7.46 |
| 46) |
-703 - -3735 |
3032 |
| 47) |
6493 + -936 |
5557 |
| 48) |
-3 / -8 |
0.375 |
| 49) |
6 * 763 |
4578 |
| 50) |
7 + 7.46 |
14.46 |
| 51) |
6.4 / -1 |
-6.4 |
| 52) |
923 - -16.5 |
939.5 |
| 53) |
0.53 - -0.19 |
0.72 |
| 54) |
350 / -0.4 |
-875 |
| 55) |
124 + -208.1 |
-84.1 |
| 56) |
-9 / 1 |
-9 |
| 57) |
0.001 * 5 |
0.005 |
| 58) |
5.4 / 1 |
5.4 |
| 59) |
-5 - -4.45 |
-0.55 |
| 60) |
-89 * -9 |
801 |
| 61) |
0.002 / 0.008 |
0.25 |
| 62) |
-3 * -99 |
297 |
| 63) |
0.1 * 338 |
33.8 |
| 64) |
-29 - 621 |
-650 |
| 65) |
-8 + -592 |
-600 |
| 66) |
-40 - -6738 |
6698 |
| 67) |
470 - 0.4 |
469.6 |
| 68) |
3.45 - -47.3 |
50.75 |
| 69) |
87.25 - 2.89 |
84.36 |
| 70) |
35 + 241.8 |
276.8 |
| 71) |
222 * 3 |
666 |
| 72) |
3 - -9.79 |
12.79 |
| 73) |
5 + 48.55 |
53.55 |
| 74) |
85.2 - 0.8 |
84.4 |
| 75) |
8248 + 81 |
8329 |
| 76) |
-0.3 + -8 |
-8.3 |
| 77) |
-21 + -729 |
-750 |
| 78) |
580 + 337 |
917 |
| 79) |
857 - 901 |
-44 |
| 80) |
2329 + -866 |
1463 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized