
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) |
88.15 + 0.9 |
89.05 |
| 2) |
-31 - -96 |
65 |
| 3) |
-0.4 * -0.325 |
0.13 |
| 4) |
8.21 + 64 |
72.21 |
| 5) |
900 + 6 |
906 |
| 6) |
-0.006 / -6 |
0.001 |
| 7) |
0.1 * 65 |
6.5 |
| 8) |
9.7 - 7.34 |
2.36 |
| 9) |
0.3 * -94 |
-28.2 |
| 10) |
-90 - -5 |
-85 |
| 11) |
13 * -0.8 |
-10.4 |
| 12) |
0.084 - 0.04 |
0.044 |
| 13) |
0.8 + 647 |
647.8 |
| 14) |
29 - -60 |
89 |
| 15) |
5 * -2.8 |
-14 |
| 16) |
620 + -11 |
609 |
| 17) |
7 + 4 |
11 |
| 18) |
36 * 0.003 |
0.108 |
| 19) |
0.05 + 1.496 |
1.546 |
| 20) |
1.06 + 50 |
51.06 |
| 21) |
0.7 + 4.58 |
5.28 |
| 22) |
-612 / -1 |
612 |
| 23) |
9.4 + 7.9 |
17.3 |
| 24) |
-61 - -0.7 |
-60.3 |
| 25) |
0.476 + 8 |
8.476 |
| 26) |
0.005 + 5 |
5.005 |
| 27) |
92 - 0.99 |
91.01 |
| 28) |
-93 + 6713 |
6620 |
| 29) |
3465 - 23 |
3442 |
| 30) |
413 + 98 |
511 |
| 31) |
-6.85 - -0.1 |
-6.75 |
| 32) |
-1 + 8 |
7 |
| 33) |
1 / -1 |
-1 |
| 34) |
136 + 351 |
487 |
| 35) |
38.3 + -97 |
-58.7 |
| 36) |
-4.448 * -5 |
22.24 |
| 37) |
18.5 + -98 |
-79.5 |
| 38) |
-31 * -14 |
434 |
| 39) |
44 + -781 |
-737 |
| 40) |
5 - -568 |
573 |
| 41) |
19 + -0.8 |
18.2 |
| 42) |
-30 * -0.2 |
6 |
| 43) |
-0.001 + 0.008 |
0.007 |
| 44) |
4 * 0.085 |
0.34 |
| 45) |
53 + -61 |
-8 |
| 46) |
-0.8 * 2 |
-1.6 |
| 47) |
-0.97 + 56 |
55.03 |
| 48) |
-686 + 44 |
-642 |
| 49) |
-6.1 * 6 |
-36.6 |
| 50) |
-5 + 21 |
16 |
| 51) |
626.8 - 9 |
617.8 |
| 52) |
-153 * -29 |
4437 |
| 53) |
21 - 0.06 |
20.94 |
| 54) |
0.1 - -4.8 |
4.9 |
| 55) |
652 - 35 |
617 |
| 56) |
-0.096 * 5 |
-0.48 |
| 57) |
40 * -0.82 |
-32.8 |
| 58) |
0.082 - 0.08 |
0.002 |
| 59) |
-0.48 / 0.05 |
-9.6 |
| 60) |
0.2 * -1135 |
-227 |
| 61) |
484 - 36.3 |
447.7 |
| 62) |
42.7 + 0.4 |
43.1 |
| 63) |
-5 * -813 |
4065 |
| 64) |
246 + -10 |
236 |
| 65) |
56 * 0.04 |
2.24 |
| 66) |
-8 - 4 |
-12 |
| 67) |
53 + 0.02 |
53.02 |
| 68) |
92 - 9.7 |
82.3 |
| 69) |
2 + 464 |
466 |
| 70) |
9 / 0.01 |
900 |
| 71) |
88.47 - 42 |
46.47 |
| 72) |
0.4 * -32 |
-12.8 |
| 73) |
-7 + 9 |
2 |
| 74) |
0.002 - -8 |
8.002 |
| 75) |
306 * 0.35 |
107.1 |
| 76) |
29 - -0.05 |
29.05 |
| 77) |
-971 + 5 |
-966 |
| 78) |
-5348 / -1 |
5348 |
| 79) |
5363 + 80 |
5443 |
| 80) |
-833 - -513 |
-320 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized