
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) |
3 * -263 |
-789 |
2) |
142.9 + -5.5 |
137.4 |
3) |
777 + 17 |
794 |
4) |
-3 * 53 |
-159 |
5) |
-2.49 + 0.06 |
-2.43 |
6) |
455 - -76.2 |
531.2 |
7) |
-0.97 + 0.49 |
-0.48 |
8) |
46.2 + 96.7 |
142.9 |
9) |
0.95 + 1 |
1.95 |
10) |
3167 + -40 |
3127 |
11) |
5090 - 10 |
5080 |
12) |
35 - -9775 |
9810 |
13) |
86.88 + -0.09 |
86.79 |
14) |
1 - -4 |
5 |
15) |
-1 - -76 |
75 |
16) |
-4.58 + 3 |
-1.58 |
17) |
-65 + 37.5 |
-27.5 |
18) |
2860 + -4 |
2856 |
19) |
6 - 8 |
-2 |
20) |
70 - -0.05 |
70.05 |
21) |
-0.2 / -0.005 |
40 |
22) |
2 + -10.74 |
-8.74 |
23) |
-8 - -2 |
-6 |
24) |
2 + 0.69 |
2.69 |
25) |
1.64 - 2.3 |
-0.66 |
26) |
-857 + 16 |
-841 |
27) |
681 - 5 |
676 |
28) |
355 - 71 |
284 |
29) |
2 * 77.3 |
154.6 |
30) |
-0.05 - -59 |
58.95 |
31) |
-9 - -98 |
89 |
32) |
-0.6 * -114 |
68.4 |
33) |
-315 / -10 |
31.5 |
34) |
0.08 + 2 |
2.08 |
35) |
608 - -1607 |
2215 |
36) |
-98 + -9 |
-107 |
37) |
-4 - 1 |
-5 |
38) |
490 / -14 |
-35 |
39) |
-3 + 39 |
36 |
40) |
760 + 805 |
1565 |
41) |
-0.57 / 0.006 |
-95 |
42) |
18 + 5179 |
5197 |
43) |
5742 + -2 |
5740 |
44) |
-896 - -7 |
-889 |
45) |
1.4 * 40.9 |
57.26 |
46) |
0.002 / -0.004 |
-0.5 |
47) |
0.7 + 427.1 |
427.8 |
48) |
3 * -0.04 |
-0.12 |
49) |
99.24 + -4.12 |
95.12 |
50) |
-91 * -83 |
7553 |
51) |
9 / 4 |
2.25 |
52) |
46 * 6.5 |
299 |
53) |
85 - 1.18 |
83.82 |
54) |
-9.4 - -83 |
73.6 |
55) |
380 + -2 |
378 |
56) |
624 + 1.7 |
625.7 |
57) |
534 - 4 |
530 |
58) |
467 + 89.4 |
556.4 |
59) |
-489 / -0.6 |
815 |
60) |
-0.024 - -0.03 |
0.006 |
61) |
34.6 * 16 |
553.6 |
62) |
1.507 + -0.045 |
1.462 |
63) |
-47 - 6 |
-53 |
64) |
-92 - 771 |
-863 |
65) |
633 + 2.4 |
635.4 |
66) |
0.02 * -5 |
-0.1 |
67) |
13 + 0.03 |
13.03 |
68) |
1.1 * 0.9 |
0.99 |
69) |
0.8 + -1 |
-0.2 |
70) |
0.023 + 8 |
8.023 |
71) |
1 - 460 |
-459 |
72) |
-40 + 4 |
-36 |
73) |
67 * 0.03 |
2.01 |
74) |
6 - -8 |
14 |
75) |
-7.97 - 0.1 |
-8.07 |
76) |
-920 - 5 |
-925 |
77) |
3 + 4773 |
4776 |
78) |
-5 - 5.7 |
-10.7 |
79) |
70.4 + -2.64 |
67.76 |
80) |
-399 * -2.5 |
997.5 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized