Study Guide for CS 312 Test 1 (Summer 2016) * Test 1 covers material in chapters 1-3 and 5. It will be in class on Monday, 27 Jun 2016. * Define Variables * ASCII and Unicode representations of characters * Conversion of decimal numbers to binary, octal and hexadecimal and vice versa * 2's complement representation of negative numbers * Write Boolean expressions that evaluate to True under given conditions * Evaluate expressions using operators - Arithmetic, Comparison, Boolean, Bitwise, and Shift * Use increment and decrement operators * Know the difference between applying (&& and &) and (|| and |) * Prove Boolean identities using truth tables * 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 * Make sure you can use nested loops especially in the creation of patterns * Use break and continue effectively and labeled loops 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 simpler versions of the programming assignments. 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, and Logic-2.2. * 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.