Wednesday, March 3, 2010

quiz 2

1) The following is NOT a valid loop in C++:
a) for
b) while
c) do-while loop
d) fruit

2) The following is NOT a valid built-in data type:
a) float
b) double
c) triple
d) string

3) When working in Visual Studio, to use a string data type, you must:
a) #include
b) #include
c) #include
d) all of the above

4) The watch window, in Visual Studio, lets you:
a) time things using a stopwatch
b) check the current value of variables
c) declare a variable
d) none of the above

5) Write a loop to print the numbers 1 thru 4, inclusive

No comments:

Post a Comment