Which are the advantages of functions in python? Reducing duplication of code All of the mentioned Improving clarity of the code Decomposing complex problems into simpler pieces TRUE ANSWER : ? YOUR ANSWER : ?
What arithmetic operators cannot be used with strings in Python? * + – All of the mentioned TRUE ANSWER : ? YOUR ANSWER : ?
Which one of these is used for floor division in Python? / // None of the mentioned % TRUE ANSWER : ? YOUR ANSWER : ?
To add a new element to a list we use which Python command? list1.addEnd(5) list1.add(5) list1.addLast(5) list1.append(5) TRUE ANSWER : ? YOUR ANSWER : ?
Which of the following is not a standard exception in Python? IOError NameError AssignmentError ValueError TRUE ANSWER : ? YOUR ANSWER : ?
The expression a{5} will match _____________ characters with the previous regular expression. 5 or more 5 or less exactly 4 exactly 5 TRUE ANSWER : ? YOUR ANSWER : ?
Methods provided by Python for receiving and sending TCP messages. None of the mentioned Both (A) and (B) s.recvfrom(),s.sendto() s.recv(), s.send() TRUE ANSWER : ? YOUR ANSWER : ?
Suppose list1 is [3, 4, 5, 20, 5], what is list1.index(5) return in Python? 1 4 0 2 TRUE ANSWER : ? YOUR ANSWER : ?
Which of the following blocks will be executed whether an exception is thrown or not? except Assert Else finally TRUE ANSWER : ? YOUR ANSWER : ?
Correct way to draw a line in canvas tkinter None of the mentioned canvas.create_line() create_line(canvas) line() TRUE ANSWER : ? YOUR ANSWER : ?