
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) |
42.66 / 0.01 |
4266 |
| 2) |
1 - 0.005 |
0.995 |
| 3) |
-7940 * -0.007 |
55.58 |
| 4) |
0.88 - 9 |
-8.12 |
| 5) |
0.559 + 0.06 |
0.619 |
| 6) |
23 - 0.56 |
22.44 |
| 7) |
638 / -2 |
-319 |
| 8) |
-2 + 82 |
80 |
| 9) |
0.79 + 0.003 |
0.793 |
| 10) |
-7 - 0.75 |
-7.75 |
| 11) |
-931 + 650 |
-281 |
| 12) |
0.002 - -7 |
7.002 |
| 13) |
2 + 0.03 |
2.03 |
| 14) |
1 + 0.009 |
1.009 |
| 15) |
5 - -953.7 |
958.7 |
| 16) |
0.5 * -7 |
-3.5 |
| 17) |
-65 + 107 |
42 |
| 18) |
320 - 265 |
55 |
| 19) |
0.505 + 0.8 |
1.305 |
| 20) |
3 - 0.04 |
2.96 |
| 21) |
-6.25 + 77 |
70.75 |
| 22) |
0.008 * 5 |
0.04 |
| 23) |
-0.08 - 8.4 |
-8.48 |
| 24) |
229 - 8 |
221 |
| 25) |
-2474 / -25 |
98.96 |
| 26) |
5.1 * 4.2 |
21.42 |
| 27) |
56.9 + 5.64 |
62.54 |
| 28) |
-5.4 + 73 |
67.6 |
| 29) |
7 * 83 |
581 |
| 30) |
15 * 5 |
75 |
| 31) |
8 + 8.7 |
16.7 |
| 32) |
-1 + 7 |
6 |
| 33) |
7542 + 8 |
7550 |
| 34) |
-81 - 96 |
-177 |
| 35) |
0.6 + 21.89 |
22.49 |
| 36) |
65 * 0.01 |
0.65 |
| 37) |
-3 - -205.7 |
202.7 |
| 38) |
34.2 - -0.04 |
34.24 |
| 39) |
8 * 1.11 |
8.88 |
| 40) |
-568 + 7780 |
7212 |
| 41) |
8 - 0.832 |
7.168 |
| 42) |
9 + 5 |
14 |
| 43) |
-2.3 / -0.5 |
4.6 |
| 44) |
0.7 * 31 |
21.7 |
| 45) |
2.7 * 10.1 |
27.27 |
| 46) |
3.8 - 0.3 |
3.5 |
| 47) |
92.53 - 6 |
86.53 |
| 48) |
-22.5 + 50 |
27.5 |
| 49) |
7643 - -5 |
7648 |
| 50) |
47 + 17 |
64 |
| 51) |
0.052 + 5 |
5.052 |
| 52) |
0.062 - 0.05 |
0.012 |
| 53) |
0.009 + 4.94 |
4.949 |
| 54) |
415 + -57 |
358 |
| 55) |
1 * 0.97 |
0.97 |
| 56) |
52 + 506 |
558 |
| 57) |
4984 - 66 |
4918 |
| 58) |
4 + 0.6 |
4.6 |
| 59) |
9 * 298 |
2682 |
| 60) |
0.005 * 4 |
0.02 |
| 61) |
76.5 + 3 |
79.5 |
| 62) |
-0.06 + 13 |
12.94 |
| 63) |
2 - -0.047 |
2.047 |
| 64) |
-20.9 - 11 |
-31.9 |
| 65) |
-9 + 59 |
50 |
| 66) |
1 - 278 |
-277 |
| 67) |
0.7 - -7 |
7.7 |
| 68) |
99 - 6.6 |
92.4 |
| 69) |
9.35 * 9 |
84.15 |
| 70) |
4 + 2 |
6 |
| 71) |
238 - 96 |
142 |
| 72) |
-0.139 + 8.45 |
8.311 |
| 73) |
-5.6 * -0.99 |
5.544 |
| 74) |
7 - 2.9 |
4.1 |
| 75) |
-66 / 1 |
-66 |
| 76) |
57 + 311.2 |
368.2 |
| 77) |
0.96 - -0.95 |
1.91 |
| 78) |
-5 * 37 |
-185 |
| 79) |
64.05 / 0.01 |
6405 |
| 80) |
869.4 / 14 |
62.1 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized