- Data types that do not accept negative numbers are called unsigned.
- The double data type cannot store integer values.
Short Answer - Answer on the back of this worksheet.
- What is the decrementing operator?
- What is the extraction operator?
- What is the multiplication operator?
- How many bytes is used to store an int variable?
- What decimal value is represented by the binary number 1100?
- How many combinations of bits are possible using 5 bits?
- List 2 typecast operators.
Write a C++ statement that performs the following task.
- Write a declaration statement that declares myDouble as a double
variable.
- Write a statement that uses a compound operator to subtract 5 from
the value of myInt.
- Write an assignment statement that assigns the value 5.05 to myDouble.
- On the back of this worksheet, write a complete program that obtains integer
inputs for the number of wins and losses for the Wyomissing Area High School
football team. Compute and display the team's winning percentage to some accurate
degree of precision.
Essay - On the back of this worksheet, answer the following essays.
- Explain the meaning of overflow in C++. Show your complete understanding
by giving a technical description. Draw illustrations to support your answer
if necessary.
- What is the difference between an interpreted language and a compiled
language? Explain thoroughly using examples where possible.