In Python, which of these in not a core data type? Tuples Class Lists Dictionary TRUE ANSWER : ? YOUR ANSWER : ?
Why are local variable names beginning with an underscore discouraged in Python Programming? they confuse the interpreter they are used to indicate a private variables of a class they slow down execution they are used to indicate global variables TRUE ANSWER : ? YOUR ANSWER : ?
Correct way to draw a line in canvas tkinter None of the mentioned line() canvas.create_line() create_line(canvas) TRUE ANSWER : ? YOUR ANSWER : ?
Which of the following statements is true? Overriding isn’t possible in Python A non-private method in a superclass can be overridden A subclass method can be overridden by the superclass A private method in a superclass can be overridden TRUE ANSWER : ? YOUR ANSWER : ?
Suppose list1 is [3, 4, 5, 20, 5], what is list1.index(5) return in Python? 2 4 0 1 TRUE ANSWER : ? YOUR ANSWER : ?
Which of the following is not a standard exception in Python? IOError ValueError NameError AssignmentError TRUE ANSWER : ? YOUR ANSWER : ?
How many except statements can a try-except block have? more than zero more than one zero one TRUE ANSWER : ? YOUR ANSWER : ?
Which is the correct expression for power(xy ) in Python? x**y None of the mentioned x^^y x^y TRUE ANSWER : ? YOUR ANSWER : ?
When will the else part of try-except-else be executed? when an exception occurs in to except block Always when no exception occurs when an exception occurs TRUE ANSWER : ? YOUR ANSWER : ?
What does the function re.match do? none of the mentioned matches a pattern at the start of the string matches a pattern at any position in the string such a function does not exist TRUE ANSWER : ? YOUR ANSWER : ?