
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.008 - -3.3 |
3.308 |
2) |
4.1 + 8 |
12.1 |
3) |
0.69 + 84.1 |
84.79 |
4) |
0.006 * 27 |
0.162 |
5) |
4.6 * 0.06 |
0.276 |
6) |
2.786 - 0.095 |
2.691 |
7) |
2619 + 350 |
2969 |
8) |
9 * 9.2 |
82.8 |
9) |
-5 / -0.8 |
6.25 |
10) |
816 / 2 |
408 |
11) |
-8.3 * 1 |
-8.3 |
12) |
3 + 2 |
5 |
13) |
99 + 1890 |
1989 |
14) |
-96 * -5 |
480 |
15) |
-17 + -74 |
-91 |
16) |
-22 / 4 |
-5.5 |
17) |
8670 + 6 |
8676 |
18) |
6.2 / -4 |
-1.55 |
19) |
89 - 866 |
-777 |
20) |
2 * 19 |
38 |
21) |
44 + 18 |
62 |
22) |
320 + 82 |
402 |
23) |
48 / -60 |
-0.8 |
24) |
86.6 + 43 |
129.6 |
25) |
0.92 - 7 |
-6.08 |
26) |
85 - 31 |
54 |
27) |
-8 + -9 |
-17 |
28) |
66 - -7.28 |
73.28 |
29) |
6631 - 26 |
6605 |
30) |
-0.069 - 0.001 |
-0.07 |
31) |
69 / 0.03 |
2300 |
32) |
9 - -7506 |
7515 |
33) |
0.42 * 71 |
29.82 |
34) |
706 + 7.7 |
713.7 |
35) |
110 + 38.4 |
148.4 |
36) |
4114 + 348 |
4462 |
37) |
-348 - 619 |
-967 |
38) |
90.9 / 6 |
15.15 |
39) |
-478 + -8 |
-486 |
40) |
79 - 48.25 |
30.75 |
41) |
613 - 362 |
251 |
42) |
0.075 + 2 |
2.075 |
43) |
-0.009 - -3.74 |
3.731 |
44) |
0.03 + 8.511 |
8.541 |
45) |
-80 + -45 |
-125 |
46) |
865 - 7 |
858 |
47) |
5 + 9 |
14 |
48) |
6 * 7.3 |
43.8 |
49) |
0.731 / 0.17 |
4.3 |
50) |
655 - 97 |
558 |
51) |
-342 / 4 |
-85.5 |
52) |
82 - -827.5 |
909.5 |
53) |
1 - 195 |
-194 |
54) |
3 / -1 |
-3 |
55) |
0.35 + 17 |
17.35 |
56) |
26 - 6 |
20 |
57) |
229 + -830 |
-601 |
58) |
918.1 - 0.8 |
917.3 |
59) |
5 * 4.8 |
24 |
60) |
817.4 - 69 |
748.4 |
61) |
481 + 150 |
631 |
62) |
90.7 / 0.02 |
4535 |
63) |
1 - -0.8 |
1.8 |
64) |
9 + 245 |
254 |
65) |
-4 + 84 |
80 |
66) |
44 + 0.03 |
44.03 |
67) |
8 * 76 |
608 |
68) |
9 - -2969 |
2978 |
69) |
2.84 * 7 |
19.88 |
70) |
-3.981 + 9.653 |
5.672 |
71) |
3.5 * 4 |
14 |
72) |
3 * -4 |
-12 |
73) |
-7 / 1 |
-7 |
74) |
0.43 - 4 |
-3.57 |
75) |
7 / 0.007 |
1000 |
76) |
1.7 + -905.7 |
-904 |
77) |
0.08 + -0.09 |
-0.01 |
78) |
0.23 - 0.008 |
0.222 |
79) |
9 + -2.37 |
6.63 |
80) |
43 + 741 |
784 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized