
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) |
7 * -0.7 |
-4.9 |
| 2) |
-2009 / -0.7 |
2870 |
| 3) |
1 + 3662 |
3663 |
| 4) |
0.9 + 49 |
49.9 |
| 5) |
6370 - 215 |
6155 |
| 6) |
8804 + 1 |
8805 |
| 7) |
0.3 + 86.4 |
86.7 |
| 8) |
4 + 0.03 |
4.03 |
| 9) |
7 - 80.1 |
-73.1 |
| 10) |
-4 * 52 |
-208 |
| 11) |
-539 + 8 |
-531 |
| 12) |
6 * -9.5 |
-57 |
| 13) |
0.57 - 4 |
-3.43 |
| 14) |
-8.1 + 0.8 |
-7.3 |
| 15) |
8 * 0.03 |
0.24 |
| 16) |
88 + -6 |
82 |
| 17) |
-2 + 9950 |
9948 |
| 18) |
0.1 * 78.5 |
7.85 |
| 19) |
85 + -43 |
42 |
| 20) |
8091 + 102 |
8193 |
| 21) |
6.9 + -8.3 |
-1.4 |
| 22) |
-6 - -381 |
375 |
| 23) |
6 + -2.405 |
3.595 |
| 24) |
-95 - 309 |
-404 |
| 25) |
81 + -6.37 |
74.63 |
| 26) |
-1 + -6 |
-7 |
| 27) |
78 + 40 |
118 |
| 28) |
-6568 + 5939 |
-629 |
| 29) |
95.3 - 98 |
-2.7 |
| 30) |
-22 + 0.8 |
-21.2 |
| 31) |
94 - -6 |
100 |
| 32) |
-69 + 2 |
-67 |
| 33) |
0.4 + -0.74 |
-0.34 |
| 34) |
2423 + 7532 |
9955 |
| 35) |
-411 * 0.02 |
-8.22 |
| 36) |
2 + -8 |
-6 |
| 37) |
-142 * 3 |
-426 |
| 38) |
55 - 0.45 |
54.55 |
| 39) |
0.14 * 44 |
6.16 |
| 40) |
0.7 - -395 |
395.7 |
| 41) |
0.06 + 57.39 |
57.45 |
| 42) |
401.5 / -5 |
-80.3 |
| 43) |
98 - 79 |
19 |
| 44) |
5.9 - -588 |
593.9 |
| 45) |
5 + -0.007 |
4.993 |
| 46) |
96 / -6 |
-16 |
| 47) |
228 - 58 |
170 |
| 48) |
2.28 * 2.3 |
5.244 |
| 49) |
3 + 490 |
493 |
| 50) |
49 * 0.006 |
0.294 |
| 51) |
607.4 - 3 |
604.4 |
| 52) |
0.04 - 0.005 |
0.035 |
| 53) |
-3657 * -0.1 |
365.7 |
| 54) |
57 + -493 |
-436 |
| 55) |
0.6 * 4 |
2.4 |
| 56) |
0.8 + -0.005 |
0.795 |
| 57) |
-7 + -6 |
-13 |
| 58) |
3 + 0.04 |
3.04 |
| 59) |
325 - 9 |
316 |
| 60) |
-2 / 8 |
-0.25 |
| 61) |
0.002 * 6 |
0.012 |
| 62) |
703 - 57.3 |
645.7 |
| 63) |
-9 * 4 |
-36 |
| 64) |
147 + 29 |
176 |
| 65) |
-0.534 - -4.44 |
3.906 |
| 66) |
12 / 6 |
2 |
| 67) |
494 + 4918 |
5412 |
| 68) |
1.4 + -6.7 |
-5.3 |
| 69) |
943 - 607 |
336 |
| 70) |
-2 - -8.6 |
6.6 |
| 71) |
6.2 - 87 |
-80.8 |
| 72) |
39 + 3.56 |
42.56 |
| 73) |
148 / 0.37 |
400 |
| 74) |
-2.2 - 7 |
-9.2 |
| 75) |
-124 + 1 |
-123 |
| 76) |
0.01 + 0.748 |
0.758 |
| 77) |
-0.8 - -5 |
4.2 |
| 78) |
508 - -92 |
600 |
| 79) |
0.18 * -6 |
-1.08 |
| 80) |
49 - 58.7 |
-9.7 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized