CPE 112 Fall 2001 Test I Solution 1. _out_of_time, payRate, and timeOfDay are syntactically correct variables try-it has a special character 2beornot2be starts with a number const is reserved 2. sequential 3. selection, repetition, function call 4. int(x)/ 5 x / n 5.875 float (n * m) 12.0 float(n) / m + y 8.53 double(n / m) 1.0 (int)x % m 2 5. A compiler translates from a high level language into machine language. 6. one 7. z / a * b - 2 * w * -y -14 -y * w / z - a -2 -(z / b) + -b 4 -z - b -2 (a * (b * w / z * a) - z) -13 (a * z + a + a + a * w) 22 8. a) (a * sqrt(c) + d)/(e * (u - v)) b) fabs(a) + c * sqrt(u * v * w) 9. const int Num = 50; 10. char initial; string first_name; 11. first_name = "Albert"; 12. The answer is# ________ Abraham Lincoln ________ ________ #so, there # is a blank ______ is a blank line 13. True 14. True 15. const float E = 2.7128; 16. int total; float average; 18. a. someInt = int(float(5) + someFloat * float(3)); b. someFloat = 2.5 * float(someInt) / someFloat; 18. someInt + 1 19. string addres; // Employee's street address // including apartment 20. cout << setprecision(2) << fixed << setw(12);