1. Which of the following is a valid identifier?
big-number50Percentdouble$SalesTaxMore information: Lesson 2.1.3
2. What is the value of degreesC after the following statements execute?
double degreesC, degreesF; degreesF = 122; degreesC = 5 / 9 * (degreesF - 32);
More information: Lesson 2.3.3
3. What is the value of the following expression?
(true && (4 / 3 || !(6)))
More information: Lesson 4.1
4. What is the value of the following expression?
(false || (!(4 / 3) && !(6)))
More information: Lesson 4.1
5. What is the output from the following loop:
int i = 10;
while (i >= 0)
cout << i << endl;
i--;
More information: Lesson 4.4.4