Answer the following questions:

1. In order to increase the variable x by one, you would write the statement:

x++;
x = x+1;
Either of the above
Neither of the above


2. Which of the following is a valid variable declaration:

int my number;
int 7654;
int number1;
int double;


3. The statement: if (a>5 || b<3) :translates to mean:

if a is greater than 5 AND b is less than 3
if a is greater than 5 OR b is less than 3
if a and b equal either 5 or 3
None of the above


4. How many times will the message "Hello World!" appear based on the following:
for (int i=3; i<=7; i++)
cout<<"Hello World!";

0 times
3 times
4 times
5 times


5. C++ is one example of a:

Binary Language
Assembly Language
Object-Oriented Language
All of the above


6. A(n) ________ is always used to translate C++ into machine language:

Assembler
Compiler
Operating system
Visual Studio File


7. Which of the following is NOT a valid data type in C++:

letter
bool
char
float


8. Which of the following is NOT a keyword in C++:

break
for
double
These are all keywords


9. Which library handles number formatting:

iomanip
stdlib
iostream
string


10. Which of the following is a valid initialization of a constant:

const int x;
const int x = 5;
con int x;
con int x = 5;