Among the things that you should know:
Examples (where k, m, x, etc., are variables whose data types and values would be indicated on the test):
5 + k * 8 | k / 4 | (k+3) % m | 5 * 2.5 |
(char)('A' + 4) | (double)(k - 2) | Math.abs(k) | (3 * k) / m * x |
s.charAt(k+2) | s.substring(k,m) | (s+t).length() |
s + t.substring(k) | s.indexOf('A') | s.substring(s.indexOf(','), s.lastIndexOf(' ')) |