CIS 115 Seek Your Dream /newtonhelp.com

Page 5

14. (TCO 3 & 4) Which of the selection structures determines if the user enters a number between 20 and 45? (Points : 4) 15. (TCO 3 & 4) What value gets displayed for the variable Z? Set Set Set If ((balance <> 800) OR (stateCode<> 6) OR (creditCode<> 7) then Set Else Set EndIf Display Z (Points : 4) 1. (TCO 5) The variable used to create an expression controlling the loop is known as the _____. (Points : 4) 2. (TCO 5) Which of the following statements is false? (Points : 4) 3. (TCO 5) Which control structure is classified as a loop? (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? Set DOWHILE x <> 7 Display x Set + 1 ENDO (Points : 4) 6. (TCO 7) What is a subscript or an index? (Points : 4) 7. (TCO 7) Suppose you have an array named number and two of its elements are number(1) and number(4). You know that _____. (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 loading/initializing the elements of an array, what control structure is used to move through each element within the array? (Points : 4)


Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.