1) If I want to print something out to the screen, I would use:
a) CIN
b) COUT
c) cin
d) cout
e) more than one of the above
2) At the top of all the programs so far, we have #included
a) iostream
b) istream
c) ostream
d) streamstream
3) If I wanted to store a value such as "hello", I would put it in a variable of type:
a) int
b) string
c) double
d) cout
4) The arrows for cin go in the direction of:
a) >>
b) <<
c) ^^
d) vv
5) Write a program that will print out a double, 0.3333, by first dividing 1 by 3. Take care that you don't end up printing just a 0, because of the rules of integer division.
Monday, February 22, 2010
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment