CSS 162 Programming Methodology - Summer 2012 Instructor: Uma Murthy MID-TERM EXAM The exam will be open book, open 1, 2-sided sheet but closed notes, computer, and closed phones or any other electronic devices. It will include the following types of questions, focusing on writing code, analyzing code, design*, and testing**: - multiple choice and true/false - short answer - long answer TOPICS An understanding of Java programming topics from css 161, such as flow-control (boolean expressions, conditional statements, loops, etc.), arrays, basic class definition, String class, Scanner class, screen output, etc. Chapter 4 4.1 -- 4.4 Chapter 5 5.1 -- 5.3 5.4 everything except javadoc (study pages 316-324) DESIGN AND TESTING DETAILS *design answers should include the following: - In your own words, a description of the problem statement. - A list of all the data variables and method signatures*. Make sure that you list the access modifier in each case. - For each method, describe what the method does, its parameters, return type, and pre- and post-conditions. Write about any special conditions and how the method will deal with those conditions. If a method outputs a String or returns a String, use an example to show the format of a sample output. *testing answers should include the following: - a testing strategy to test your program - sample input and expected output - exceptions or error conditions