36.
In list slicing, the start and stop can be given beyond limits. If it is then
a. raise exception IndexError
b. raise exception ValueError
c. return elements falling between specified start and stop values
d. return the entire list
37.
In list slicing negative index -1 refers to
a. first element
b. last element
c. second last element
d. second element
38.
Which of the following operator cannot used with strings?
a. ==
b. +
c. *
d. /
39.
Ms. Hetvee is working on a string program. She wants to display last four characters of a string object named s. Which of the following is statement is true?
a. s[4:]
b. s[:4]
c. s[-4:]
d. s[:-4]
40.
The append() method adds an element at
a. first
b. last
c. specified index
d. at any location