
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.09 + 9 |
9.09 |
2) |
2.07 - -0.002 |
2.072 |
3) |
2 * -7 |
-14 |
4) |
0.063 + 0.372 |
0.435 |
5) |
-2 / -0.005 |
400 |
6) |
7.651 - 2 |
5.651 |
7) |
-3 + -0.53 |
-3.53 |
8) |
82 + -33 |
49 |
9) |
-30 * 0.002 |
-0.06 |
10) |
-70.5 - -919 |
848.5 |
11) |
3 + 923.3 |
926.3 |
12) |
-0.008 * -9 |
0.072 |
13) |
696 + -1423 |
-727 |
14) |
-0.3 - 3.2 |
-3.5 |
15) |
108 / -1 |
-108 |
16) |
-6 * -0.068 |
0.408 |
17) |
0.4 * 7.3 |
2.92 |
18) |
-0.6 * 7.6 |
-4.56 |
19) |
3.2 - 0.03 |
3.17 |
20) |
0.09 - 5 |
-4.91 |
21) |
-0.065 + 0.5 |
0.435 |
22) |
2 + -6 |
-4 |
23) |
1651 + 50 |
1701 |
24) |
0.6 * 0.78 |
0.468 |
25) |
968 / 4 |
242 |
26) |
6 + 99 |
105 |
27) |
7.5 - 4.9 |
2.6 |
28) |
66 + 894 |
960 |
29) |
-1660 / -2 |
830 |
30) |
0.9 + 0.06 |
0.96 |
31) |
84 - -1800 |
1884 |
32) |
47 + -3.85 |
43.15 |
33) |
0.3 + 72 |
72.3 |
34) |
6 - -40 |
46 |
35) |
-720 - 9 |
-729 |
36) |
-0.067 * -57 |
3.819 |
37) |
75.15 / 0.01 |
7515 |
38) |
470.2 - 278 |
192.2 |
39) |
0.03 - 0.005 |
0.025 |
40) |
5 * -0.062 |
-0.31 |
41) |
2.2 + 0.872 |
3.072 |
42) |
6.3 + 0.995 |
7.295 |
43) |
0.006 * 4 |
0.024 |
44) |
18 + -2 |
16 |
45) |
3 - 0.008 |
2.992 |
46) |
0.06 * 677 |
40.62 |
47) |
852 * 3 |
2556 |
48) |
-7 + 393.5 |
386.5 |
49) |
801 + 9.2 |
810.2 |
50) |
3305 - -5 |
3310 |
51) |
-9 - -546 |
537 |
52) |
-7.48 * 5 |
-37.4 |
53) |
-57 + 70 |
13 |
54) |
38 - -0.8 |
38.8 |
55) |
-20 + -62 |
-82 |
56) |
0.021 / -0.007 |
-3 |
57) |
16 * 403 |
6448 |
58) |
7 * -14 |
-98 |
59) |
-1 + -98 |
-99 |
60) |
1 + -0.146 |
0.854 |
61) |
7.5 - 56 |
-48.5 |
62) |
-8.72 - 0.24 |
-8.96 |
63) |
-0.9 + 0.08 |
-0.82 |
64) |
4.85 + 4 |
8.85 |
65) |
195 / 5 |
39 |
66) |
-5 - 6 |
-11 |
67) |
5 + 496.1 |
501.1 |
68) |
44 + 28 |
72 |
69) |
932 + 0.9 |
932.9 |
70) |
403 - 0.7 |
402.3 |
71) |
0.86 * -2 |
-1.72 |
72) |
-2 - -79 |
77 |
73) |
66 + -63.6 |
2.4 |
74) |
6 + -0.05 |
5.95 |
75) |
15.5 + 65.61 |
81.11 |
76) |
71 * 18 |
1278 |
77) |
-4 + 7787 |
7783 |
78) |
1 + 6 |
7 |
79) |
175.9 - -72.4 |
248.3 |
80) |
5 - -24 |
29 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized