Adding 1 to a variable is also called WHAT
a. digesting
b. resetting
c. decrementing
d. incrementing
When you decrement a variable, you _____.
a. set it to 0
b. reduce it by one-tenth
c. subtract 1 from it
d. remove it from a program
4. Each variable in an array must have the same _____ as the others.
a. data type
b. subscript
c. value
d. memory location
5. The subscripts of any array are always _____.
a. integers
b. fractions
c. characters
d. strings of characters
6. Suppose you have declared an array as follows: num values[4] = 0, 0, 0, 0. Which of the following is an allowed operation?
a. values[2] = 17
b. input values[0]
c. values[3] = values[0] + 10
d. all of the above
7. A _____ is a variable that you set to indicate whether some event has occurred.
a. subscript
b. banner
c. counter
d. flag
8. What do you call two arrays in which each element in one array is associated with the element in the same relative position in the other array?
a. cohesive arrays
b. parallel arrays
c. hidden arrays
d. perpendicular arrays
9. In most modern programming languages, the highest subscript you should use with a 10-element array is _____.
a. 8
b. 9
c. 10
d. 11
10. You can access every element of an array using a _____.
a. while loop
b. for loop
c. both of the above
d. none of the above
a. digesting
b. resetting
c. decrementing
d. incrementing
When you decrement a variable, you _____.
a. set it to 0
b. reduce it by one-tenth
c. subtract 1 from it
d. remove it from a program
4. Each variable in an array must have the same _____ as the others.
a. data type
b. subscript
c. value
d. memory location
5. The subscripts of any array are always _____.
a. integers
b. fractions
c. characters
d. strings of characters
6. Suppose you have declared an array as follows: num values[4] = 0, 0, 0, 0. Which of the following is an allowed operation?
a. values[2] = 17
b. input values[0]
c. values[3] = values[0] + 10
d. all of the above
7. A _____ is a variable that you set to indicate whether some event has occurred.
a. subscript
b. banner
c. counter
d. flag
8. What do you call two arrays in which each element in one array is associated with the element in the same relative position in the other array?
a. cohesive arrays
b. parallel arrays
c. hidden arrays
d. perpendicular arrays
9. In most modern programming languages, the highest subscript you should use with a 10-element array is _____.
a. 8
b. 9
c. 10
d. 11
10. You can access every element of an array using a _____.
a. while loop
b. for loop
c. both of the above
d. none of the above
Comment