Exam I Review

  1. What are the primary two components of a computer?
  2. What is the primary difference between main memory (RAM) and secondary memory?
  3. What is the primary purpose of the hard drive?
  4. What is a bit?
  5. What is a byte?
  6. Why do computers use a binary number system?
  7. Convert the decimal number 121 to a binary number.
    Convert the binary number 11001011 to a decimal.
  8. How many characters can be represented using 1 byte of storage?
    How many characters could be represented using 2 bytes of storage?
    Justify your answers with a short calculation.
  9. What is an IDE and what are it primary three functions?
  10. Compare and contrast procedural, object-oriented and event-driven programming.
  11. Create a one line example of C++ code to illustrate how the following items are used
  12. Label each of the operators in the expression below in the order of execution.
    2 + 3*42 + (3-7)
  13. What is a variable?
  14. List and describe the four properties of a variable.
  15. Be able to recognize valid C++ identifiers (variable names).
    Example:  which of the following are valid identifiers in C++.
  16. List the four primitive data types in C++ and give typical storage requirements for members of each data type.
  17. What is ASCII?