
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.293 + 3 |
3.293 |
| 2) |
-6 + 4242 |
4236 |
| 3) |
0.009 / 1 |
0.009 |
| 4) |
-32 + 4637 |
4605 |
| 5) |
70.3 * 3 |
210.9 |
| 6) |
5.4 + 97 |
102.4 |
| 7) |
4455 + 99 |
4554 |
| 8) |
-762 - 10 |
-772 |
| 9) |
9846 / 60 |
164.1 |
| 10) |
1 + 339 |
340 |
| 11) |
394 - -3470 |
3864 |
| 12) |
19 * -0.09 |
-1.71 |
| 13) |
51.7 + 2.19 |
53.89 |
| 14) |
4.992 - 0.024 |
4.968 |
| 15) |
7690 + 25 |
7715 |
| 16) |
0.43 - 0.077 |
0.353 |
| 17) |
4.352 / 0.005 |
870.4 |
| 18) |
-27 * 0.07 |
-1.89 |
| 19) |
0.7 * 2.8 |
1.96 |
| 20) |
0.06 + 0.006 |
0.066 |
| 21) |
6.6 * 3 |
19.8 |
| 22) |
-16 * 8 |
-128 |
| 23) |
9251 + 73 |
9324 |
| 24) |
6828 - -6 |
6834 |
| 25) |
1200 - -3407 |
4607 |
| 26) |
6 * 1343 |
8058 |
| 27) |
-82 + 1 |
-81 |
| 28) |
21 * 0.22 |
4.62 |
| 29) |
-7.6 - -4 |
-3.6 |
| 30) |
107 * -4 |
-428 |
| 31) |
0.7 * 0.66 |
0.462 |
| 32) |
88 + -79 |
9 |
| 33) |
7 + 2 |
9 |
| 34) |
19 - 7 |
12 |
| 35) |
-4 + 6.7 |
2.7 |
| 36) |
-3.92 + 95 |
91.08 |
| 37) |
-616 + 7856 |
7240 |
| 38) |
3.55 - 1 |
2.55 |
| 39) |
0.7 + 0.74 |
1.44 |
| 40) |
-0.009 / -9 |
0.001 |
| 41) |
0.04 + -1 |
-0.96 |
| 42) |
-1 * -8 |
8 |
| 43) |
1 / 0.2 |
5 |
| 44) |
1 + -0.2 |
0.8 |
| 45) |
-97 - -36 |
-61 |
| 46) |
0.08 + 7.6 |
7.68 |
| 47) |
33 + 2 |
35 |
| 48) |
317.9 - -71 |
388.9 |
| 49) |
3 / 8 |
0.375 |
| 50) |
4454 + 88 |
4542 |
| 51) |
34.8 / -0.75 |
-46.4 |
| 52) |
35.8 + -93.1 |
-57.3 |
| 53) |
14.6 / 0.2 |
73 |
| 54) |
-0.5 / -0.05 |
10 |
| 55) |
-9 + -7.3 |
-16.3 |
| 56) |
0.002 * 98 |
0.196 |
| 57) |
-2.04 - 0.32 |
-2.36 |
| 58) |
0.06 - 3.2 |
-3.14 |
| 59) |
0.09 + 7 |
7.09 |
| 60) |
54.22 + 0.1 |
54.32 |
| 61) |
55 * 59 |
3245 |
| 62) |
93 + -342 |
-249 |
| 63) |
0.003 - -0.09 |
0.093 |
| 64) |
-889 + -3 |
-892 |
| 65) |
3 + -0.07 |
2.93 |
| 66) |
-12 - 92 |
-104 |
| 67) |
1 - 0.069 |
0.931 |
| 68) |
0.2 / -1 |
-0.2 |
| 69) |
105 + 2.6 |
107.6 |
| 70) |
85.2 - 0.59 |
84.61 |
| 71) |
434 + 85 |
519 |
| 72) |
0.2 - 40.7 |
-40.5 |
| 73) |
384.6 - 6 |
378.6 |
| 74) |
-139 * -0.003 |
0.417 |
| 75) |
0.078 - 0.025 |
0.053 |
| 76) |
-2.2 + 0.08 |
-2.12 |
| 77) |
-0.2 * 0.1 |
-0.02 |
| 78) |
0.2 + -9 |
-8.8 |
| 79) |
-6 * -5 |
30 |
| 80) |
7858 - -7 |
7865 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized