============================= CMSI 185 Computer Programming Preparation for Quiz 1 To be held 2009-02-26 ============================= The quiz will take up the entire period. It will be open everything --- the only rule is that you cannot solicit help, nor look at or take pictures of anyone else's exam, etc. You can not give help either. This review page is a summary of the topics we've covered so far in class; material from course notes, lectures, and Chapters 1-4 in David Eck's book. The quiz will contain 10 questions on topics from this list. There will be short answer questions, questions asking you to find an error in code, and questions asking you to write code. Computing Definition Five subfields Seven great principles Myths Careers Computer Science Some definitions Subject areas Relation to other fields Programming Hello, World Different kinds of programs The file system Files and directories Basic commands Getting started with Java Installing Java Installing Eclipse Running javac and java from the command line .java files and .class files Java programming Basic form of a Java application Classes should be named with nouns public static void main(String[] args) System.out.println System.out.print Popup messages Comments Random number generation Console input if statements == || && Dialog box input Commandline arguments for-statements to go through the args array replaceAll Converting integers and doubles to/from strings Variables Expressions Reserved words Assignment The 8 primitive types Strings Enums TextIO vs. Scanner vs. System.console All of the arithmetic, relational and boolean operators Type casts Precedence Algorithm design While loops break and continue For loops if statements switch try, catch Basic applets paint() Methods on the Graphics object Subroutines Statics Parameters Return values Pacakges Javadocs It certainly would not hurt to make sure you have read Chapters 1-4 in the book, And remember, the only way to become adept at programming is to practice, so running programs from the book, and writing and testing modifications to them is crucial.