• Post Reply Bookmark Topic Watch Topic
  • New Topic

Strategies for reading blocks of code on exam  RSS feed

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 234
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
look at the options and then try and find them in the code

------------------
sona nagee
SCJP
 
Ranch Hand
Posts: 185
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A very good ques Dan, i myself need to know such startegies.Thanks to all those who has answered this ques.
Regards
Lusha
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!