
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) |
5 - 544 |
-539 |
| 2) |
0.007 + 0.89 |
0.897 |
| 3) |
-0.082 + 0.86 |
0.778 |
| 4) |
6 - -3291 |
3297 |
| 5) |
-5.3 * -4.8 |
25.44 |
| 6) |
0.06 + -0.91 |
-0.85 |
| 7) |
2316 + 5058 |
7374 |
| 8) |
12 * 0.38 |
4.56 |
| 9) |
-0.8 + 421.5 |
420.7 |
| 10) |
0.9 + -8.64 |
-7.74 |
| 11) |
-0.05 * -2 |
0.1 |
| 12) |
-5 + -6 |
-11 |
| 13) |
0.04 - -97 |
97.04 |
| 14) |
0.79 - -6.3 |
7.09 |
| 15) |
9 + -0.34 |
8.66 |
| 16) |
6.7 * -1.4 |
-9.38 |
| 17) |
-0.008 + 0.392 |
0.384 |
| 18) |
2 + 34 |
36 |
| 19) |
-572 - -1746 |
1174 |
| 20) |
93 + 773.4 |
866.4 |
| 21) |
-805 + 324 |
-481 |
| 22) |
4 + 162 |
166 |
| 23) |
4920 + 459 |
5379 |
| 24) |
0.1 + 744 |
744.1 |
| 25) |
57 * 0.1 |
5.7 |
| 26) |
695 * 8 |
5560 |
| 27) |
0.91 + -2.78 |
-1.87 |
| 28) |
-5.65 - -79 |
73.35 |
| 29) |
23 / 0.05 |
460 |
| 30) |
7.419 + -0.02 |
7.399 |
| 31) |
0.48 / -4 |
-0.12 |
| 32) |
90 - 0.07 |
89.93 |
| 33) |
-8 * 0.7 |
-5.6 |
| 34) |
0.08 - 0.05 |
0.03 |
| 35) |
1452 + 54 |
1506 |
| 36) |
8 + -6.932 |
1.068 |
| 37) |
43 + -53.2 |
-10.2 |
| 38) |
6.7 + 5.8 |
12.5 |
| 39) |
5.2 - -951 |
956.2 |
| 40) |
0.6 + 8 |
8.6 |
| 41) |
97.7 - -1.5 |
99.2 |
| 42) |
707 + 1.8 |
708.8 |
| 43) |
-23.68 - -62 |
38.32 |
| 44) |
0.91 - 0.009 |
0.901 |
| 45) |
0.09 + -8.7 |
-8.61 |
| 46) |
0.2 * 9.29 |
1.858 |
| 47) |
2 - -3076 |
3078 |
| 48) |
-582 * -0.015 |
8.73 |
| 49) |
6113 + 728 |
6841 |
| 50) |
21 * 2.35 |
49.35 |
| 51) |
0.05 + 88.67 |
88.72 |
| 52) |
5.37 / 0.1 |
53.7 |
| 53) |
8.828 + 0.011 |
8.839 |
| 54) |
72.2 * 8 |
577.6 |
| 55) |
0.4 - -520 |
520.4 |
| 56) |
6 * 13.26 |
79.56 |
| 57) |
7160 * 0.4 |
2864 |
| 58) |
1 * 61 |
61 |
| 59) |
9 / 0.1 |
90 |
| 60) |
-74 + 6 |
-68 |
| 61) |
0.9 / -0.02 |
-45 |
| 62) |
0.57 + 0.2 |
0.77 |
| 63) |
-2 * -0.27 |
0.54 |
| 64) |
-1 * 56 |
-56 |
| 65) |
9376 - -13 |
9389 |
| 66) |
9055 + 9 |
9064 |
| 67) |
68 * 72 |
4896 |
| 68) |
1 + 9.23 |
10.23 |
| 69) |
-347 + 2718 |
2371 |
| 70) |
1.4 + -9.49 |
-8.09 |
| 71) |
-10.6 * -39 |
413.4 |
| 72) |
89 - 2.2 |
86.8 |
| 73) |
-0.3 * 7 |
-2.1 |
| 74) |
63.56 - -3.94 |
67.5 |
| 75) |
10 * 617 |
6170 |
| 76) |
-5.37 - 4.1 |
-9.47 |
| 77) |
-0.3 * -61 |
18.3 |
| 78) |
-9 + 3 |
-6 |
| 79) |
0.07 * 193 |
13.51 |
| 80) |
457.2 + -142 |
315.2 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized