1.) What is the worst case time complexity?
a.) O(n)
b.) O(1)
c ) O(logn)
d.) O(nlogn)
2.) What is the best case time complexity?
a.) O(n)
b.) O(1)
c ) O(logn)
d.) O(nlogn)
3.) What is the syntax of replace?
a.) variable name ( element to replace , with what to replace)
b ) ( element to replace , with what to replace)
c.) variable name.replace ( element to replace , with what to replace)
d.) None of above
4.) If element is not present in slicing, will it throw a error ?
list1 = [1,2,3,4,5,6,7]
print(list1[:8:])
a.) yes
b.) no
5.) If element is not present in indexing, will it throw a error ?
list1 = [1,2,3,4,5,6,7]
print(list1[8])
a.) yes
b.) no