codingSectionTips - o Look at examples in your notes or...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
CODING SECTION TIPS The coding section is the easiest part of the exam. Most of the points lost in the coding section are from careless mistakes or improper syntax. If you take your time and double-check your answers, you can avoid losing unnecessary points. Common costly mistakes Do not forget your semi-colons (;) (-1 for each instance) Do not forget curly brackets {} or parentheses () where needed (-1 for each instance) Do not use non-C++ symbols, e.g. , or 2 1 (-1 for each instance) Do not use variables that have not been declared (-2 for each instance) Do not use variables that have not been initialized to some value (-2 for each instance) Make sure you are using proper syntax when writing functions o Do not use semi-colons when not required o Pass the variables correctly—use variable type and name in the implementation, even for objects. o Look at examples in your notes or projects of how to pass arrays into functions
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: o Look at examples in your notes or projects of how to pass variables by reference into functions General suggestions • Try to understand what the problem is asking you do to before you write anything down. o If you are not sure what the function is supposed to do, ASK A T.A. o Plan out what variables you will need and what loops / if statements (if any) you will need before writing down your solution. Use another piece of paper to figure this out if necessary. This will help keep your code clean and organized and easier for you to double-check and for us to grade. • Make sure your function does what is asked of it. • Generally, if your solution does not fit in the allotted space, your answer is either incorrect or excessively complicated. • Look at examples in your notes or projects, or even in the multiple choice section for ideas and correct syntax....
View Full Document

This note was uploaded on 09/05/2011 for the course CGS 2421 taught by Professor Onal during the Fall '09 term at University of Florida.

Ask a homework question - tutors are online