Exam I Review
- What are the primary two components of a computer?
- What is the primary difference between main memory (RAM) and secondary
memory?
- What is the primary purpose of the hard drive?
- What is a bit?
- What is a byte?
- Why do computers use a binary number system?
- Convert the decimal number 121 to a binary number.
Convert the binary number 11001011 to a decimal.
- 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.
- What is an IDE and what are it primary three functions?
- Compare and contrast procedural, object-oriented and event-driven
programming.
- Create a one line example of C++ code to illustrate how the following items are
used
- cout
- cin
- variable declaration
- assignment statements
- Label each of the operators in the expression below in the order of
execution.
2 + 3*42 + (3-7)
- What is a variable?
- List and describe the four properties of a variable.
- Be able to recognize valid C++ identifiers (variable names).
Example: which of the following are valid identifiers in C++.
- cat
- side1
- 2cars
- twoCars
- freight_train
- double
-
house mouse
- List the four primitive data types in C++ and give typical storage
requirements for members of each data type.
- What is ASCII?