
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) |
91 - -93 |
184 |
2) |
-3 * 0.06 |
-0.18 |
3) |
-780 + -79 |
-859 |
4) |
-97 + 445.5 |
348.5 |
5) |
6 + 6.23 |
12.23 |
6) |
0.2 * -404 |
-80.8 |
7) |
-4.1 - -44 |
39.9 |
8) |
46 - 965 |
-919 |
9) |
4296 - 5 |
4291 |
10) |
27.4 + 0.9 |
28.3 |
11) |
541 * 0.3 |
162.3 |
12) |
37.46 - 45.68 |
-8.22 |
13) |
7 * 5 |
35 |
14) |
90 - -0.44 |
90.44 |
15) |
-0.05 - -39.33 |
39.28 |
16) |
0.9 * 5 |
4.5 |
17) |
-5 + 4484 |
4479 |
18) |
942 * 0.025 |
23.55 |
19) |
491 * 0.2 |
98.2 |
20) |
68.08 + 1.06 |
69.14 |
21) |
-2 * -0.928 |
1.856 |
22) |
4 - -4025 |
4029 |
23) |
422.9 - 49 |
373.9 |
24) |
21.5 * -38 |
-817 |
25) |
0.9 - 8 |
-7.1 |
26) |
0.006 * 2 |
0.012 |
27) |
74 - 6 |
68 |
28) |
0.05 + -0.008 |
0.042 |
29) |
490 - 0.1 |
489.9 |
30) |
3925 - 9 |
3916 |
31) |
50 + 2.29 |
52.29 |
32) |
4 - -8.02 |
12.02 |
33) |
452 * 3 |
1356 |
34) |
1 * 7.118 |
7.118 |
35) |
8 * -2.7 |
-21.6 |
36) |
-63 + 2.8 |
-60.2 |
37) |
-32 - -698 |
666 |
38) |
24 - 9 |
15 |
39) |
-23.66 - -0.96 |
-22.7 |
40) |
4.9 + 17.88 |
22.78 |
41) |
-6 - 163 |
-169 |
42) |
2658 - 3 |
2655 |
43) |
58 + 5 |
63 |
44) |
0.1 - 9 |
-8.9 |
45) |
7 + 14 |
21 |
46) |
9 - -6140 |
6149 |
47) |
0.003 + 0.05 |
0.053 |
48) |
0.71 - 6 |
-5.29 |
49) |
-0.062 + 4.548 |
4.486 |
50) |
7 * 0.85 |
5.95 |
51) |
46.21 - -33.3 |
79.51 |
52) |
0.001 + 0.008 |
0.009 |
53) |
0.3 - -0.09 |
0.39 |
54) |
0.107 + 1.27 |
1.377 |
55) |
9875 + 8 |
9883 |
56) |
-179 * -8 |
1432 |
57) |
0.3 * 9.08 |
2.724 |
58) |
7505 - 6457 |
1048 |
59) |
508 + 2 |
510 |
60) |
0.8 + 7 |
7.8 |
61) |
-3 - -30 |
27 |
62) |
0.098 / 0.5 |
0.196 |
63) |
42 - 9.6 |
32.4 |
64) |
4.9 - 96 |
-91.1 |
65) |
8 * -0.16 |
-1.28 |
66) |
39 * 22 |
858 |
67) |
8 + 3 |
11 |
68) |
2 - -3.6 |
5.6 |
69) |
0.3 + -2 |
-1.7 |
70) |
317.5 - -8 |
325.5 |
71) |
0.07 + 38.66 |
38.73 |
72) |
6 - -7512 |
7518 |
73) |
-183 / -2 |
91.5 |
74) |
0.2 - 7.4 |
-7.2 |
75) |
0.236 * 6 |
1.416 |
76) |
2132 - -375 |
2507 |
77) |
0.05 - -63 |
63.05 |
78) |
6 - 655 |
-649 |
79) |
-7.9 + -91 |
-98.9 |
80) |
2 * 103 |
206 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized