Python What is the use of duck typing? No restriction on the type values that can be passed to a given method Less restriction on the type values that can be passed to a given method Makes the program code smaller More restriction on the type values that can be passed to a given method No restriction on the type values that can be passed to a given method Less restriction on the type values that can be passed to a given method Makes the program code smaller More restriction on the type values that can be passed to a given method ANSWER DOWNLOAD EXAMIANS APP
Python The expression a{5} will match _____________ characters with the previous regular expression. 5 or less exactly 4 5 or more exactly 5 5 or less exactly 4 5 or more exactly 5 ANSWER DOWNLOAD EXAMIANS APP
Python Say s=”hello” what will be the return value of type(s) in Python? String str int bool String str int bool ANSWER DOWNLOAD EXAMIANS APP
Python Suppose list1 is [3, 4, 5, 20, 5], what is list1.index(5) return in Python? 4 0 2 1 4 0 2 1 ANSWER DOWNLOAD EXAMIANS APP
Python To insert 5 to the third position in list1, we use which Python command? list1.insert(3, 5) list1.insert(2, 5) list1.append(3, 5) list1.add(3, 5) list1.insert(3, 5) list1.insert(2, 5) list1.append(3, 5) list1.add(3, 5) ANSWER DOWNLOAD EXAMIANS APP