Question 11
Assuming that the following snippet has been successfully executed, which of the equations are True? (Choose two.)
- len(a) == len (b)
- b [0] +1 ==a [0]
- a [0] == b [0]
- a [0] + 1 ==b [0]
Question 12
Assuming that the following snippet has been successfully executed, which of the equations are False? (Choose two.)
- len(a)== len (b)
- a [0]-1 ==b [0]
- a [0]== b [0]
- b [0] - 1 ==a [0]
Question 13
Which of the following statements are true? (Choose two.)
- Python strings are actually lists
- Python strings can be concatenated
- Python strings can be sliced like lists
- Python strings are mutable
Question 14
Which of the following sentences are true? (Choose two.)
- Lists may not be stored inside tuples
- Tuples may be stored inside lists
- Tuples may not be stored inside tuples
- Lists may be stored inside lists
Question 15
Assuming that String is six or more letters long, the following slice is shorter than the original string by:
- four chars
- three chars
- one char
- two chars