1. Which of the following allows the slice operator to function on them?
a) String
b) Tuple
c) Both a & b
d) Dictionary
2. What will be the Output?
val = (23,67,56,90,32)
print(val[-4:-1:3])
a)(67, 56, 90)
b)(67,56)
c)(67,)
d(90,)
3. What will be the Output?
x = ‘QuickQuizDS’
print(x[-1:-6:-1])
a)SDziu
b)ucQ
c)Szu
d)uickQ
1 Like
- ans :c
- ans :c
- ans :a
1 Like
1 ans c
2 ans c
3 ans a
1 Like
1ans=c
2ans=c
3ans=a
1 Like