CS 105: C++
Quiz 2 Requirements
C: Chapter 2

  1. Know what defines a legal variable name in C.

  2. Understand how the modulus operator works in simple cases (i.e., with positive operands).

  3. Understand how logical expressions work.  What evaluates to "true" or "false"?  What is the numerical value of an expression that evaluates to "true" or "false"?

  4. Understand the meaning of and difference between prefix and postfix versions of the increment and decrement operators.

  5. Understand how conditional expressions are evaluated.  (Are all parts of a conditional expression always evaluated?)

  6. Understand the basics of type conversion, especially between common type pairs, such as int and char, and int and float.

  7. What happens if you try to pass a value of the wrong type in a function call?

  8. Be able to understand and use the ternary operator.

  9. You will need to be familiar with the binary representation of numbers.  (You can reasonably be expected to handle numbers from 0 to 256.)

  10. Understand the use of bitwise operators.

  11. What is the largest number that can be represented in a char?  What happens if you attempt to store a larger number in a char?




Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.