
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.5 + 101 |
101.5 |
2) |
6 - 0.052 |
5.948 |
3) |
2 + 0.083 |
2.083 |
4) |
77.56 - 9 |
68.56 |
5) |
6601 + -9 |
6592 |
6) |
9 + 0.67 |
9.67 |
7) |
3 * 0.3 |
0.9 |
8) |
-2 + 749.2 |
747.2 |
9) |
-4 - 0.81 |
-4.81 |
10) |
8170 + -9 |
8161 |
11) |
7.98 + -5 |
2.98 |
12) |
8 + -0.074 |
7.926 |
13) |
88.6 - -0.8 |
89.4 |
14) |
5908 - 7 |
5901 |
15) |
2.271 + 2 |
4.271 |
16) |
5 - 0.53 |
4.47 |
17) |
997 - -5 |
1002 |
18) |
0.008 + 0.6 |
0.608 |
19) |
0.1 * 3 |
0.3 |
20) |
81 * 0.4 |
32.4 |
21) |
5 - -2.96 |
7.96 |
22) |
2 - -97.25 |
99.25 |
23) |
-69 * -63 |
4347 |
24) |
-88 + 18.6 |
-69.4 |
25) |
-251 + -89 |
-340 |
26) |
57.2 + 97 |
154.2 |
27) |
0.02 + 8.36 |
8.38 |
28) |
-6 - -59 |
53 |
29) |
-9.44 - -3 |
-6.44 |
30) |
0.029 * 3 |
0.087 |
31) |
2506 - 585 |
1921 |
32) |
4 + 0.01 |
4.01 |
33) |
0.6 - 0.016 |
0.584 |
34) |
93 + 9081 |
9174 |
35) |
745 - 85 |
660 |
36) |
23.7 + 0.58 |
24.28 |
37) |
26 * -0.005 |
-0.13 |
38) |
0.644 + -0.017 |
0.627 |
39) |
8 - -99 |
107 |
40) |
-1 * 59 |
-59 |
41) |
0.4 + 8.94 |
9.34 |
42) |
9.431 - 0.16 |
9.271 |
43) |
95 - 837 |
-742 |
44) |
62 * 0.091 |
5.642 |
45) |
3.4 - 0.002 |
3.398 |
46) |
9 - 0.02 |
8.98 |
47) |
2540 - -578 |
3118 |
48) |
-48 - 4 |
-52 |
49) |
-54.9 + 346 |
291.1 |
50) |
-4 * -0.39 |
1.56 |
51) |
574 - 5 |
569 |
52) |
528 + 0.4 |
528.4 |
53) |
-8 * 102 |
-816 |
54) |
89 - 38 |
51 |
55) |
87 + 4 |
91 |
56) |
37 - 6.24 |
30.76 |
57) |
-93 + -4 |
-97 |
58) |
0.77 + -4.52 |
-3.75 |
59) |
654 + 2884 |
3538 |
60) |
6.51 - 4.6 |
1.91 |
61) |
74 + 898.7 |
972.7 |
62) |
-1 / 5 |
-0.2 |
63) |
6 * -89 |
-534 |
64) |
89 / 0.05 |
1780 |
65) |
2517 * 2 |
5034 |
66) |
41 - 0.1 |
40.9 |
67) |
-975 + 9748 |
8773 |
68) |
-21 - 77 |
-98 |
69) |
8 + 192 |
200 |
70) |
-45 - 0.7 |
-45.7 |
71) |
0.715 + 2 |
2.715 |
72) |
-69 - 5 |
-74 |
73) |
610 - 6 |
604 |
74) |
961 + -2 |
959 |
75) |
-30 / -4 |
7.5 |
76) |
0.07 + 1.1 |
1.17 |
77) |
2 - -0.002 |
2.002 |
78) |
2427 + -6 |
2421 |
79) |
5 * 0.18 |
0.9 |
80) |
20.31 + 0.01 |
20.32 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized