First look at the end of sections in Chapters. These have valuable "test your knowledge" questions that are similar and useful in preparation for this exam. The Liang website is also invaluable. Some example questions. Remember that during the test you will need to use good programming practices throughout. There may be question 'types' that are not listed below, but this is a good sample. Again, 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. Sample Questions to consider (they are spread throughout the chapters 1.10 is on page 10 for example) Checkpoint answers are available also at the website: cs.armstrong.edu/liang/cpp3e/solution.html Chapter 1 1.10 1.13 1.14 1.16 1.21 1.23 1.24 1.25 1.26 1.27 1.28 1.29 1.30 1.31 1.32 1.33 1.34 1.35 1.36 1.37 1.38 1.39 1.41 1.42 Chapter Summary is on page 25 with Quiz link on page 26 Chapter 2 2.1 2.2 2.3 2.4 2.5 2.6 2.8 (without the constant) 2.10 2.11 2.14 2.15 2.16 2.17 2.18 2.19 2.22 2.23 2.24 2.25 2.27 2.29 2.30 summary: page 63 with quiz link on page 64 Chapter 3 3.1 3.2 3.4 3.5 3.6 3.7 3.9 3.10 3.11 3.12 3.13 3.15 3.17 3.21 3.22 3.23 3.24 3.26 3.27 3.28 3.29 3.30 3.31 summary on page 105 Chapter 4 4.1a,d,h,q 4.17 4.18 summary on page 147 Chapter 5 5.1 5.4 5.5 5.10 5.11 5.12 5.13 5.14 5.15 (while) 5.16 5.17 5.18 5.19 5.20 5.21 5.22 a,b,c summary on 192 Chapter 6 6.1 6.2 6.5 6.6 6.7 6.8 6.9 6.10 6.11 6.18 6.21 (several sections on call by reference are not yet covered) summary on 250 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 (this always means console output)? (code would follow) Questions that ask for input are referring to console input. Code may include if statements, boolean logic, comparison logic, assignments, functions, 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 (approx okay)? Name several C++ types. What is the largest C++ type (biggest possible real world number)? Which type is the most precise for real numbers (integers?) 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. What is #include used for? Name some functions in cmath. Name two libraries used in #include. What is a function prototype? Give the function prototype for the following situation? Give the function definition for the following situation? -function basics (definition, prototype, location, calls, arguments) Give a function definition for . . . Give a function prototype for . . . Show how to call this function. What is a return type? What is a void function? What does the following function do . . . Linux commands: what do they do, how do we use them Which compiler do we use? Other things to understand: -arithmetic -if statements -Any C++ keywords (for ex: int, float, if, ...) -cout/cin -literals -type casting (implict and explicit)