Study Guide for CS 312 Test 1 (Summer 2014) * Test 1 covers material in chapters 1-3 and 5-7. It will be in class on Friday, 26 Jun 2015. * Define Variables * ASCII and Unicode representations of characters * Write Boolean expressions * Evaluate expressions * Use increment and decrement operators * Know the difference between applying (&& and &) and (|| and |) * Use the conditional operator ? : * Read integers and floating point numbers from the console with Scanner * Output results unformatted (println or print) form * Use if-else or nested if-else in a computation * Use of switch statements - change switch to nested if-else and vice versa * Use different versions of loops: while, do-while, and for * Create simple methods * Use user defined methods * Create and use 1-D arrays The questions will be of two types - interpret a given piece of code or write a piece of code. The quiz questions we have been doing in class will serve as a guide for the level of difficulty of the interpretion questions. The questions on code that you will have to write will be similar to the ones on LiveLab and CodingBat. To prepare for the test: * Read the summary at the end of each chapter * Go over each listing in the chapters and try to interpret the code * Do the interactive quizzes on the companion site for the book * Do a substantial number of coding problems from the following sections in CodingBat - Warmup-1, Warmup-2, Logic-1, Logic-2, Array-1, Array-2, Array-3, and AP-1 * Do a substantial number of exercises at the end of each chapter in the book. Do the even numbered exercises since their solutions are given.