Homework 04




Homework 04

Directions: Answer the following questions. Homework answers
must be typed. For multiple choice questions, list the correct letter and
write out the answer. Consult your book for determining if a question
is multiple choice or not. 
You should be able to type the
information into the text boxes, and immediately print it from the web
page. If the homework goes to multiple pages, you will need to staple
the pages together so they do not come loose. Regardless, always make
sure you answer all questions in your own words.

Tutorial 4 – Pg. 130-131

1. A variable is ______________.

3. Which of the following declares and initializes a C++ variable that can store whole numbers only?

4. Which of the following is a valid name for a variable?

7. Which of the following will store the letter H in a char variable named initial?

10. Which of the following C++ statements decalres and initializes a float variable named rate?

13. Which of the following C++ statements creates a named constant called RATE whose value is 16.5?


Copyright ©2001-2002, Walter Wimberly – Instructor and
all ’round Cool Guy – IADT