
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) |
47 - 7 |
40 |
| 2) |
13.1 - -6 |
19.1 |
| 3) |
0.483 * 90 |
43.47 |
| 4) |
2 + 23 |
25 |
| 5) |
7967 - 5 |
7962 |
| 6) |
882 * 0.002 |
1.764 |
| 7) |
0.755 / 0.005 |
151 |
| 8) |
9 - -48 |
57 |
| 9) |
0.01 + 66 |
66.01 |
| 10) |
-4 * -10 |
40 |
| 11) |
-46 + 1 |
-45 |
| 12) |
542 - -359 |
901 |
| 13) |
919 + -1 |
918 |
| 14) |
-0.01 + 32.02 |
32.01 |
| 15) |
37 - 26 |
11 |
| 16) |
10 - 479 |
-469 |
| 17) |
625.5 + -86 |
539.5 |
| 18) |
-0.4 - 0.1 |
-0.5 |
| 19) |
0.006 + 8.1 |
8.106 |
| 20) |
83 + 921 |
1004 |
| 21) |
0.006 / 6 |
0.001 |
| 22) |
496 + -989 |
-493 |
| 23) |
-20 - 18 |
-38 |
| 24) |
6289 - 4 |
6285 |
| 25) |
224.7 - -48 |
272.7 |
| 26) |
-468 / -4 |
117 |
| 27) |
83 + 872 |
955 |
| 28) |
0.179 - -0.8 |
0.979 |
| 29) |
-37.5 + 9 |
-28.5 |
| 30) |
0.007 + 0.086 |
0.093 |
| 31) |
8.4 * 94 |
789.6 |
| 32) |
5 + 0.88 |
5.88 |
| 33) |
0.08 + -8 |
-7.92 |
| 34) |
-105 - -38 |
-67 |
| 35) |
-8 - 0.33 |
-8.33 |
| 36) |
401.3 - 9.4 |
391.9 |
| 37) |
90.6 - 2 |
88.6 |
| 38) |
1 + 0.009 |
1.009 |
| 39) |
-77 / 0.1 |
-770 |
| 40) |
0.06 - -51 |
51.06 |
| 41) |
0.01 + 1 |
1.01 |
| 42) |
47 - -8 |
55 |
| 43) |
-9 + -16 |
-25 |
| 44) |
6076 - 723 |
5353 |
| 45) |
78 + 88 |
166 |
| 46) |
7.66 * 50 |
383 |
| 47) |
8.5 - 19 |
-10.5 |
| 48) |
0.01 + 78 |
78.01 |
| 49) |
77 * 1.2 |
92.4 |
| 50) |
-697 + -62 |
-759 |
| 51) |
0.004 - 0.003 |
0.001 |
| 52) |
-322 * -5 |
1610 |
| 53) |
0.01 + 0.008 |
0.018 |
| 54) |
-5 - 42 |
-47 |
| 55) |
-835 - 56 |
-891 |
| 56) |
-0.1 - 9 |
-9.1 |
| 57) |
-6 - 1.5 |
-7.5 |
| 58) |
0.2 + -0.32 |
-0.12 |
| 59) |
9.8 + -0.714 |
9.086 |
| 60) |
0.03 * 18 |
0.54 |
| 61) |
6.3 * 4 |
25.2 |
| 62) |
155 - 2.9 |
152.1 |
| 63) |
3 / 1 |
3 |
| 64) |
80.5 * 0.5 |
40.25 |
| 65) |
1.1 - 2.6 |
-1.5 |
| 66) |
3 / 4 |
0.75 |
| 67) |
0.14 + 0.056 |
0.196 |
| 68) |
0.5 * -8 |
-4 |
| 69) |
-0.1 - 9 |
-9.1 |
| 70) |
8 + 8099 |
8107 |
| 71) |
330 + 660.6 |
990.6 |
| 72) |
-99 - 663 |
-762 |
| 73) |
-0.85 * -2.76 |
2.346 |
| 74) |
8.516 - 0.04 |
8.476 |
| 75) |
32 * 0.06 |
1.92 |
| 76) |
4.6 + 0.37 |
4.97 |
| 77) |
-0.8 + 655 |
654.2 |
| 78) |
159 + -3.9 |
155.1 |
| 79) |
-6 / 3 |
-2 |
| 80) |
-4 * 0.005 |
-0.02 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized