CIS 115 All Assignments CIS 115 All Assignments | Page 20

2. (TCO 5) Which of the following statements is false? (Points : 4) 3. (TCO 5) Which loop may not execute the body of the loop at all? (Points : 4) 4. (TCO 5) Repetition that loops a certain number of times is typically referred to as _____. (Points : 4) 5. (TCO 5) How many times will the following loop be executed? 6. (TCO 7) Subscripts or indexes of any array are always declared with what data type? (Points : 4) 7. (TCO 7) What is an array element? (Points : 4) 8. (TCO 7) What is the value of the index used to access the last element in a zero-based array declared as num(12)? (Points : 4) 9. (TCO 7) When processing/manipulating the elements of an array, what control structure is used to move through each element within the array? (Points : 4) 10. (TCO 7) A zero-based array named sales has been declared and loaded with the values 100, 1100, 3400, 5550, 3000, 22300, and 1200. What value will be stored in the array element sales(1)? (Points : 4) 11. (TCO 6) A record contains _____. (Points : 4) 12. (TCO 6) What are the three modes of operation on a file? (Points : 4) 13. (TCO 8) Algorithms that allow users to direct the flow of control are often referred to as _____. (Points : 4) 14. (TCO 9) What type of error occurs when an array subscript’s value goes beyond the total number of elements in the array? (Points : 4) 15. (TCO 2) Which of the following is not an advantage of modular design? (Points : 4) 1. (TCO 10) A retail store is having a customer appreciation sale. Depending on the total dollars purchased, the customer could receive a discount on his or her total purchases. You are to develop pseudocode that will obtain the total dollars purchased from the user, determine the discount percentage, and display the total amount due. When the purchases are more than $100, the discount is 10%. When the purchases are $100 or less, the discount is 5%. (Points : 10)