
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.64 - 3 |
-2.36 |
| 2) |
85.7 / 5 |
17.14 |
| 3) |
92 * 76 |
6992 |
| 4) |
19 + 7 |
26 |
| 5) |
570 * 0.05 |
28.5 |
| 6) |
-0.08 + 6 |
5.92 |
| 7) |
35 - 0.05 |
34.95 |
| 8) |
-269 - 6 |
-275 |
| 9) |
16.65 * -2 |
-33.3 |
| 10) |
0.28 - -74 |
74.28 |
| 11) |
2.664 - 2.3 |
0.364 |
| 12) |
-96 / -0.4 |
240 |
| 13) |
-4 + 1.2 |
-2.8 |
| 14) |
9547 - 36 |
9511 |
| 15) |
803 - -7 |
810 |
| 16) |
3 * 2.781 |
8.343 |
| 17) |
1.4 - 4 |
-2.6 |
| 18) |
-398 + -3 |
-401 |
| 19) |
6.3 + 6 |
12.3 |
| 20) |
8439 - 6 |
8433 |
| 21) |
0.05 * 4 |
0.2 |
| 22) |
70 - -53 |
123 |
| 23) |
3946 + -518 |
3428 |
| 24) |
-3.8 + 890 |
886.2 |
| 25) |
95 * 0.071 |
6.745 |
| 26) |
0.003 - 0.002 |
0.001 |
| 27) |
-82 + 398.3 |
316.3 |
| 28) |
5 + 69 |
74 |
| 29) |
-890 - -7185 |
6295 |
| 30) |
19 + 21.5 |
40.5 |
| 31) |
43 * 14.1 |
606.3 |
| 32) |
-5 - -2998 |
2993 |
| 33) |
-0.024 + 6 |
5.976 |
| 34) |
97 - 9.2 |
87.8 |
| 35) |
107 + 33 |
140 |
| 36) |
26 + 0.2 |
26.2 |
| 37) |
80 * -1 |
-80 |
| 38) |
2 + -0.005 |
1.995 |
| 39) |
4 - -0.191 |
4.191 |
| 40) |
96 * -3 |
-288 |
| 41) |
-0.4 + 43 |
42.6 |
| 42) |
-74 - -9 |
-65 |
| 43) |
1651 / 0.2 |
8255 |
| 44) |
0.02 + 89 |
89.02 |
| 45) |
5.55 - -33 |
38.55 |
| 46) |
0.15 + 21.99 |
22.14 |
| 47) |
1 * 0.083 |
0.083 |
| 48) |
-0.42 + -6 |
-6.42 |
| 49) |
-4 - 0.74 |
-4.74 |
| 50) |
9395 - 97 |
9298 |
| 51) |
-9 * -0.007 |
0.063 |
| 52) |
9.3 + 94.6 |
103.9 |
| 53) |
-77 - 16 |
-93 |
| 54) |
0.37 * -80 |
-29.6 |
| 55) |
-9 + 79.73 |
70.73 |
| 56) |
2.87 - 0.002 |
2.868 |
| 57) |
8 + 3 |
11 |
| 58) |
0.01 * -52 |
-0.52 |
| 59) |
641 + 4 |
645 |
| 60) |
30 * 3.7 |
111 |
| 61) |
0.022 + 0.3 |
0.322 |
| 62) |
-746 * -0.001 |
0.746 |
| 63) |
4 + 50 |
54 |
| 64) |
8.8 - 0.037 |
8.763 |
| 65) |
-0.041 + 8 |
7.959 |
| 66) |
558 + 9 |
567 |
| 67) |
-90 * 8 |
-720 |
| 68) |
754.5 + 7 |
761.5 |
| 69) |
46.26 + 3 |
49.26 |
| 70) |
-0.6 / 0.004 |
-150 |
| 71) |
3.2 + 0.91 |
4.11 |
| 72) |
-0.04 + 2.1 |
2.06 |
| 73) |
7.9 - -57.68 |
65.58 |
| 74) |
0.62 * 20 |
12.4 |
| 75) |
-72 * 0.6 |
-43.2 |
| 76) |
2 - -687 |
689 |
| 77) |
8 - 982 |
-974 |
| 78) |
56.1 + -78 |
-21.9 |
| 79) |
4 - 393 |
-389 |
| 80) |
8.4 + 19.64 |
28.04 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized