34. What is the decimal equivalent of the binary number 110?
35. Which of the following best describes a memory location whose value can change during runtime?
36. Which number system is used to store data in memory?
37. What is the difference between fundamental data types and user-defined data types? Explain your answer.
38. Why is the use of camel case preferred in C++ programs when declaring variables and named constants that are
composed of two or more words? In addition to your explanation, give an example of where camel case is preferred.
39. Write the C++ statements to declare and approprately initialize variables representing the following:
1. Your name
2. Your age
3. Your income
40. The short data type requires two bytes of memory and stores an integer value in the range from -32,768 to
+32,767. Since the int data type requires four bytes of memory, why is the range for the int data type much more than
twice as much as that of the short data type? Be sure to show the math in your answer.
41. In the ASCII chart on page 59, notice that each of the binary values has eight bits, but the first bit is always 0. ASCII
does not use this bit in representing characters, but since bits are grouped in eights (a byte), this bit will always be
zero. Since only 7 bits are actually used in computing the maximum number of characters to represent, how many
characters are in the ASCII character set? Be sure to show the math in your answer.
42. Why is it important to always initialize variables when you declare them? Explain your answer.
43. What type of memory location is declared the most in C++ programs, variables or named constants? Explain your
answer.
44. What happens in C++ when a number is converted from one data type to another data type that can store only smaller
numbers? Are there any potential consequences from this occuring? If so, please give an example.
45. What is the primary difference between a variable and a named constant in C++?