
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.1 * 4.51 |
0.451 |
2) |
-9.6 + 7 |
-2.6 |
3) |
82.8 / 0.009 |
9200 |
4) |
-7 * 81 |
-567 |
5) |
-9 - -3.57 |
-5.43 |
6) |
6 + 4.93 |
10.93 |
7) |
47 + 7364 |
7411 |
8) |
555.3 - -0.9 |
556.2 |
9) |
-0.4 + -4 |
-4.4 |
10) |
-9 - -157 |
148 |
11) |
601 + 23 |
624 |
12) |
0.46 * 0.5 |
0.23 |
13) |
5.73 + 2 |
7.73 |
14) |
0.57 - 0.9 |
-0.33 |
15) |
555.7 + -92 |
463.7 |
16) |
939 - 7 |
932 |
17) |
9 + 0.08 |
9.08 |
18) |
37.2 / -8 |
-4.65 |
19) |
920 - -12 |
932 |
20) |
0.61 + 11.69 |
12.3 |
21) |
612 - 2 |
610 |
22) |
0.06 + 69 |
69.06 |
23) |
1 + 2.68 |
3.68 |
24) |
0.2 + -9.91 |
-9.71 |
25) |
-2 + -458 |
-460 |
26) |
6.63 / 0.005 |
1326 |
27) |
-94 * -0.5 |
47 |
28) |
6519 - -17 |
6536 |
29) |
0.95 + 54 |
54.95 |
30) |
32.7 - 1 |
31.7 |
31) |
331 + 9116 |
9447 |
32) |
0.7 - -0.986 |
1.686 |
33) |
5 * -2.42 |
-12.1 |
34) |
8.8 - -0.064 |
8.864 |
35) |
0.7 + 5.155 |
5.855 |
36) |
566 - 62 |
504 |
37) |
0.56 + 9 |
9.56 |
38) |
0.7 - 4 |
-3.3 |
39) |
5 - 2.657 |
2.343 |
40) |
6.76 + 14 |
20.76 |
41) |
7.123 - 0.03 |
7.093 |
42) |
202 * 0.001 |
0.202 |
43) |
94 + 8 |
102 |
44) |
-83 * 3 |
-249 |
45) |
13.9 + 0.01 |
13.91 |
46) |
0.004 * 265 |
1.06 |
47) |
0.06 * 8.3 |
0.498 |
48) |
0.89 - 0.04 |
0.85 |
49) |
-2 + 0.3 |
-1.7 |
50) |
-490 + 69 |
-421 |
51) |
-0.01 - 3.64 |
-3.65 |
52) |
5.03 * 1 |
5.03 |
53) |
236 - 91 |
145 |
54) |
-3 + 3 |
0 |
55) |
16 - 77.2 |
-61.2 |
56) |
5 * -3.4 |
-17 |
57) |
20 - 0.6 |
19.4 |
58) |
-56.4 + 33 |
-23.4 |
59) |
0.472 * 8 |
3.776 |
60) |
4.24 + 0.69 |
4.93 |
61) |
9 - 6.6 |
2.4 |
62) |
-7.5 * 66 |
-495 |
63) |
7.4 - 0.01 |
7.39 |
64) |
888 + -3 |
885 |
65) |
0.4 * 37 |
14.8 |
66) |
6 - 1.36 |
4.64 |
67) |
9831 - 53 |
9778 |
68) |
-0.003 + 0.22 |
0.217 |
69) |
50.8 / 20 |
2.54 |
70) |
46.8 - -51 |
97.8 |
71) |
627 + -7 |
620 |
72) |
32 + -0.06 |
31.94 |
73) |
4.991 / 0.005 |
998.2 |
74) |
0.08 + -0.009 |
0.071 |
75) |
570 / -95 |
-6 |
76) |
7 * 473 |
3311 |
77) |
6 + 1.174 |
7.174 |
78) |
7 * -8 |
-56 |
79) |
529.2 + -99 |
430.2 |
80) |
5.8 - -7 |
12.8 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized