The University of Alabama in Huntsville Electrical & Computer Engineering CPE 197 Spring 2001 Test I Solutions 1. time_out, PointsScored, and schmerdlap are syntactically correct variables ask? has a special character 2timing starts with a number float is reserved 2. A variable declaration reserves space in memory 3. no question 3 exists 4. int(x) / m 11 x / m 11.75 double (n * m) 10.0 double(n) / m + y 9.7 double(n / m) 2.0 (int)x % m 1 5. z / a * b - 2 * w + -y -11 -y * w / z - a 2 -(z / b) + -b -5 -z - b -8 (a * (b + w / y * a) - z) -8 (a * z + a + a + a * w) -10 6. a) (a * sqrt(c) + d)/(e * (u - v)) b) fabs(a) + c * sqrt(u * v * w) 7. Divide and conquer refers to breaking up the problem up into solvable components 8. one 9. char Loser = '0'; 10. char middle_initial; string first_name; 11. first_name = "Albert"; 12. The answer is# ________ AbrahamLincoln #so, there # is a blank ______ is a blank line 13. False 14. A rolling stone gathers ______ ______ nomoss or so they say. ______ Anonymous 15. True 16. const float E = 2.7128; 17. int sum; float stars; 18. a. someInt = int(float(5) + someFloat); b. someInt = int(2.5 * float(someInt) / someFloat); 19. someInt + 1 20. void 21. cout << setprecision(2) << fixed << setw(16);