Python What is the use of duck typing? Makes the program code smaller 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 More restriction on the type values that can be passed to a given method Makes the program code smaller 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 More restriction on the type values that can be passed to a given method ANSWER DOWNLOAD EXAMIANS APP
Python Suppose list1 is [3, 4, 5, 20, 5], what is list1.index(5) return in Python? 2 0 4 1 2 0 4 1 ANSWER DOWNLOAD EXAMIANS APP
Python To add a new element to a list we use which Python command? list1.append(5) list1.addEnd(5) list1.add(5) list1.addLast(5) list1.append(5) list1.addEnd(5) list1.add(5) list1.addLast(5) ANSWER DOWNLOAD EXAMIANS APP
Python In Python, which of the following cannot be a variable? in It __init__ on in It __init__ on ANSWER DOWNLOAD EXAMIANS APP
Python What is the result of cmp(3, 1) in python? 0 True False 1 0 True False 1 ANSWER DOWNLOAD EXAMIANS APP
Python Which of the following results in a SyntaxError? ‘3\’ “He said, ‘Yes!'” ”’That’s okay”’ ‘”Once upon a time…”, she said.’ ‘3\’ “He said, ‘Yes!'” ”’That’s okay”’ ‘”Once upon a time…”, she said.’ ANSWER DOWNLOAD EXAMIANS APP