
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) |
57 + 5.39 |
62.39 |
2) |
1 - -0.05 |
1.05 |
3) |
460 * -0.02 |
-9.2 |
4) |
8258 + 3 |
8261 |
5) |
0.06 * 59 |
3.54 |
6) |
-497 + -5 |
-502 |
7) |
2 * -8.1 |
-16.2 |
8) |
1.5 * 82 |
123 |
9) |
7.6 * -9 |
-68.4 |
10) |
-6 + -32 |
-38 |
11) |
-12.1 * 7 |
-84.7 |
12) |
894 + -0.4 |
893.6 |
13) |
9 * 0.07 |
0.63 |
14) |
7.4 - -7.37 |
14.77 |
15) |
0.82 - 1 |
-0.18 |
16) |
3 + -1.58 |
1.42 |
17) |
4544 + 554 |
5098 |
18) |
5 + 0.839 |
5.839 |
19) |
261.1 * 2 |
522.2 |
20) |
-194 + -9 |
-203 |
21) |
0.72 * -97.5 |
-70.2 |
22) |
87.6 + 9.2 |
96.8 |
23) |
0.1 * 1134 |
113.4 |
24) |
1 + 0.003 |
1.003 |
25) |
-7.5 - -30 |
22.5 |
26) |
24 + 632 |
656 |
27) |
0.78 + 0.04 |
0.82 |
28) |
7 + 0.066 |
7.066 |
29) |
5.3 * -7 |
-37.1 |
30) |
-89 * -0.7 |
62.3 |
31) |
995 - 5 |
990 |
32) |
7.625 - 0.009 |
7.616 |
33) |
-0.1 - 5 |
-5.1 |
34) |
-39.6 + 84.3 |
44.7 |
35) |
0.4 / 0.004 |
100 |
36) |
2.1 - -0.045 |
2.145 |
37) |
0.093 * 2 |
0.186 |
38) |
-1 + 35 |
34 |
39) |
93.4 * 55 |
5137 |
40) |
916 + -95 |
821 |
41) |
-18 - -9 |
-9 |
42) |
335 * 0.2 |
67 |
43) |
0.91 - -1.92 |
2.83 |
44) |
-7 + 87.52 |
80.52 |
45) |
495.8 - 4 |
491.8 |
46) |
8.3 - 61 |
-52.7 |
47) |
66 / 6 |
11 |
48) |
25 * 1.304 |
32.6 |
49) |
0.9 - -0.2 |
1.1 |
50) |
0.2 * 39 |
7.8 |
51) |
4032 * 1 |
4032 |
52) |
88 + -735 |
-647 |
53) |
0.07 * 197 |
13.79 |
54) |
9 + 6070 |
6079 |
55) |
0.04 * 6735 |
269.4 |
56) |
905 + 2 |
907 |
57) |
-9.069 / -0.3 |
30.23 |
58) |
0.04 - -99.88 |
99.92 |
59) |
2 + 0.36 |
2.36 |
60) |
485 - 0.9 |
484.1 |
61) |
-2 - -4.2 |
2.2 |
62) |
68.09 + 7.4 |
75.49 |
63) |
9 - 9.1 |
-0.1 |
64) |
241 + 41 |
282 |
65) |
1.1 + -0.005 |
1.095 |
66) |
-3 * -0.318 |
0.954 |
67) |
266 - -727 |
993 |
68) |
81 - -1 |
82 |
69) |
-16.4 + 9 |
-7.4 |
70) |
9880 - -9 |
9889 |
71) |
9 + 314 |
323 |
72) |
568.9 - 9 |
559.9 |
73) |
5 * 0.09 |
0.45 |
74) |
-400 - 1 |
-401 |
75) |
687 / 3 |
229 |
76) |
-190 + -64 |
-254 |
77) |
5 - 420 |
-415 |
78) |
215 * 0.08 |
17.2 |
79) |
44 - 68 |
-24 |
80) |
1048 + 8745 |
9793 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized