Unit 11 Programming
Paper 2 will often throw questions asking you to evaluate statements. The following is the example taken from the exemplar paper. Here is a table giving pre-determined values.
The following question shows how each expression would be evaluated
The following is how each of these statements would be determined as input, process or output. Note that assignment is a process and input must come from an external source (the user, a file, sensor, etc). Item 4 may look like an output, but due to the concatenation, this involves processing before the output operation can happen.