
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.07 / 0.008 |
8.75 |
| 2) |
4 / 0.008 |
500 |
| 3) |
3 + 7302 |
7305 |
| 4) |
88 + 432 |
520 |
| 5) |
0.2 * 508 |
101.6 |
| 6) |
6 - 3.9 |
2.1 |
| 7) |
8 - 0.03 |
7.97 |
| 8) |
9.389 + 0.1 |
9.489 |
| 9) |
47 * 2 |
94 |
| 10) |
0.002 + 0.03 |
0.032 |
| 11) |
9 - 272 |
-263 |
| 12) |
640 - -8 |
648 |
| 13) |
2 * 9.4 |
18.8 |
| 14) |
53 + 0.13 |
53.13 |
| 15) |
262 - 24 |
238 |
| 16) |
-8.3 + 9 |
0.7 |
| 17) |
-71 - 37 |
-108 |
| 18) |
669 + 1648 |
2317 |
| 19) |
8 * 56 |
448 |
| 20) |
5.95 / -5 |
-1.19 |
| 21) |
-63 * -0.006 |
0.378 |
| 22) |
951 + 6 |
957 |
| 23) |
114 - 7 |
107 |
| 24) |
0.7 / -7 |
-0.1 |
| 25) |
904 - 556 |
348 |
| 26) |
741 + 5 |
746 |
| 27) |
-207 - -99 |
-108 |
| 28) |
0.08 + 96.6 |
96.68 |
| 29) |
2.4 - 0.464 |
1.936 |
| 30) |
4.24 / -4 |
-1.06 |
| 31) |
2 - 0.004 |
1.996 |
| 32) |
4739 - -676 |
5415 |
| 33) |
465 + 5384 |
5849 |
| 34) |
66 - 306 |
-240 |
| 35) |
-13 + 301 |
288 |
| 36) |
-156 / 40 |
-3.9 |
| 37) |
90 + 3915 |
4005 |
| 38) |
-75 * -0.8 |
60 |
| 39) |
0.2 + -0.7 |
-0.5 |
| 40) |
19.6 - 5.73 |
13.87 |
| 41) |
-0.78 + 0.3 |
-0.48 |
| 42) |
-87 * -0.07 |
6.09 |
| 43) |
-97 + 807 |
710 |
| 44) |
9 - 304 |
-295 |
| 45) |
0.15 - -5 |
5.15 |
| 46) |
-8.3 + 9.23 |
0.93 |
| 47) |
7 + 337 |
344 |
| 48) |
8.76 + -0.002 |
8.758 |
| 49) |
14.14 + 0.85 |
14.99 |
| 50) |
0.8 + 0.08 |
0.88 |
| 51) |
-6 * 1.22 |
-7.32 |
| 52) |
162 - 6 |
156 |
| 53) |
918 + 6074 |
6992 |
| 54) |
-0.3 * 9 |
-2.7 |
| 55) |
0.76 + 0.98 |
1.74 |
| 56) |
377 - 76 |
301 |
| 57) |
276 * 0.002 |
0.552 |
| 58) |
-0.039 + 8.31 |
8.271 |
| 59) |
776 - 568.7 |
207.3 |
| 60) |
484 + 13 |
497 |
| 61) |
8 * 69 |
552 |
| 62) |
-53 + 4443 |
4390 |
| 63) |
-36.9 - 5 |
-41.9 |
| 64) |
7 / 0.02 |
350 |
| 65) |
0.9 - 9.49 |
-8.59 |
| 66) |
6065 + -5 |
6060 |
| 67) |
526.3 - -53 |
579.3 |
| 68) |
0.9 * -8.6 |
-7.74 |
| 69) |
794 * 0.4 |
317.6 |
| 70) |
-0.04 - -0.07 |
0.03 |
| 71) |
0.54 / 3 |
0.18 |
| 72) |
-0.6 * 9 |
-5.4 |
| 73) |
634 - -68 |
702 |
| 74) |
1.01 + 9 |
10.01 |
| 75) |
3331 - 245 |
3086 |
| 76) |
3 + 75 |
78 |
| 77) |
0.2 - -66 |
66.2 |
| 78) |
-0.01 - 0.5 |
-0.51 |
| 79) |
82 + -89 |
-7 |
| 80) |
-344 / 5 |
-68.8 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized