Answer the following statements true (T) or false (F)
1. Items may be added to a list and removed from a list while the world is running.
2. The list automatically expands as items are added to it, and it automatically shrinks as items are removed from it.
3. An array can have additional elements added to it while the world is running.
4. The first position in a list is position 1.
5. The first position in an array is position 0.
1. TRUE
2. TRUE
3. FALSE
4. FALSE
5. TRUE
You might also like to view...
Select all that apply. Given: x = 5, y = 6, z = 8. Which of the following are false?
``` 1. x == 5; 2. x < (y + 2); 3. z <= 4; 4. y > (z - x); 5. z >= (y + x) 6. y <= 6 ``` a. 1 b. 2 c. 3 d. 4 e. 5 f. 6
Which of the following statements is false?
a. An object's attributes are specified as part of the object’s class. b. A bank-account object would likely have a balance attribute that represents the amount of money in the account. c. Each bank-account object knows the balance in the account it represents, but not the balances of the other accounts in the bank. d. Attributes are specified by the class’s methods.