Can anyone recommend a good strategy for attacking the blocks of code in the exam questions? I'm wondering what's the best way to scan through and determine if the code compiles, the output, etc. For instance, is it best to read the larger blocks of code line by line top to bottom, to start with the main method and trace through its execution, etc. Any advice is appreciated.
The blocks of code you'll see aren't that complicated (if you're clued up). Just read through them once, line by line. You'll pretty much understand what they do and may spot the actual question from the code. Don't rush in though (you've got plenty of time). Review the questions, go back to the code and pick the correct answer. It's sometimes a good idea to have a look at all the other answers and check that you've got the correct answer because all the other possible answers don't work.
I suggest: 1. glance at the code 2. read the options you have to choose from carefully 3. NOW read the code keeping in mind the options. Do NOT get bogged down in trying to spot things in that first glance, remember, your goal is to pick one or more options, not critique the code. Bill