First look at the end of sections in Chapters 1-4. These have valuable "test your knowledge" questions that are similar and useful in preparation for this exam. Sample Questions to consider: page 30-31 1.1, 1.4, 1.5, 1.8, 1.9, 1.10, 1.11, 1.12, 1.13, 1.14, 1.15, 1.16 page 63-66 2.1, 2.2, 2.4, 2.5 (%), 2.8, 2.9, 2.10, 2.11, 2.12, 2.13, 2.14, 2.15, 2.16, 2.24, 2.27 page 104-109 3.1, 3.2, 3.3, 3.4 (% again), 3.5, 3.6, 3.7, 3.8, 3.9, 3.10, 3.11, 3.14, 3.15, 3.16, 3.17, 3.18, 3.20, 3.31, 3.32, 3.33, 3.34 page 141-145 4.1, 4.2, 4.3 (% again), 4.5, 4.6, 4.7, 4.8, 4.9, 4.10, 4.11, 4.12, 4.13, 4.14, 4.16, 4.17, 4.19, 4.20, 4.21, 4.22 Some example questions (without the actual questions). Remember that during the test you will need to use good programming practices throughout. There will be question 'types' that are not listed below, so just knowing how to answer these is not enough to get 100% on the test. You should also go over the review problems in the book for the chapters we have covered - as well as read any portions of the chapters you may have missed. Some problems will likely come directly from those as well. Given the following snippet of code, what is the output? (code would follow) Code may include if statements, boolean logic, comparison logic, assignments, implicit or explicit type casts - or any combination. Give C++ code for the following problem statement. (a problem statement would follow) What does the following code do? What are the values of all variables at the end of its execution? (code would follow) see types that code may include above What is the maximum and minimum integer? Name several C++ types. What is the largest C++ type (biggest possible real world number)? Which type is the most precise for real numbers. Give several valid identifiers and invalid identifiers? What is a compiler and what does it do? What is the difference between source code and machine code? Find all errors (run-time and compiler) in the following code. (code would follow) What is the difference between C++ types? (you would have to describe the difference between any of the types here, for example, the difference between int, float, bool, double, string, char) Does the following code take advantage of boolean short-circuit evaluation? What is the difference between implicit and explicit type casting? Rewrite this code to take advantage of a loop. Rewrite this loop in terms of another. Other things to understand: -arithmetic -if statements -Any C++ keywords (for ex: int, float, if, ...) -cout/cin -literals -type casting (implict and explicit)