see attachment
Questions 1 – 5 are True/False. Mark A for True and B for False. 1. In C++, the variables total and ToTaL are NOT considered to be the same variable. 2. The body of a while loop is only executed if the loop condition is false. 3. Pseudocode is considered a “high level” programming language. 4. An expression containing the operator && is true only if both its operands are true. 5. else if statements are tested sequentially until a match occurs. 6. Which of the following is a valid constant declaration? 7. const, while, if, and int are examples of: 8. Which of the following is a valid C++ assignment statement? 9. The formula: 10. Which of the following is a valid variable name? 11. Which library must be included to enable keyboard input? 12. Which of the following is an invalid variable name? 13. Which library must be included to enable formatted output? 14. Which of the following is an invalid variable name? 15. What is the comment section at the beginning of a program that gives information about the author and the program called? 16. A __________ is evaluated to true or false each time an if statement is encountered in code. 17. A while loop that is controlled by the user ends with a __________ value. 18. A while loop that runs a pre-determined number of times is controlled by a __________. 19. A variable that accumulates the sum of numbers entered by the user is accumulating a __________. 20. a == b 21. c < d A) True B) False 22. c == a 23. a >= c || b >= d 24. (c < b && d < b) || (a != c) A) True B) False Trace through the following Code: 25. for (i = 3; i <= 6; i++) { cout << "*"; } A) * B) ** C) *** D) **** E) 3 4 5 6 Consider the following code for Questions 26 and 27: int count = 10; int num = 4; do { if ((count % 2) == 1) { num += 3; } else { num -= 2; } count--; } while (count > 5); 26. What is the value of count after the following code is executed? This question is worth 2 points. 27. What is the value of num after the following code is executed? This question is worth 2 points. 28. 3 * 3 + 3 / 3 – 3 % 3 29. 6 * (8 – 12 / 2) + 9 / 3 30. (8 – 3) % 2 + 12 / 4 |