By Fatskills Exam Guides Team — the exam nerds behind 28,500+ quizzes and 2.1M practice questions across 500+ global exams.
Question: What is called when a function is defined inside a class? Method Question: What will be the output for the following Program? #!/usr/bin/python3 i = 3 while True: if i%5 == 0: break print(i) i += 2 3 Question: Which one of the following is the equality test operator in Python? == Question: Which Data Type in Python maintains data in the form of Key-Value Pairs? Dictionary Question: What will be the result of : print(2^6) 4 Question: x = 100 print(~x) -101 Question: What will be the result for the following code? class mytest: def __init__(self,a): self.a=a def display(self): print(self.a) obj=mytest() obj.display()
Error message Question: What will happen if we open a file for writing and the file does not exist? The file will be created for writing Question: Which Method is used to recursively list the contents of a directory and all its subdirectories? walk Question: Which one of the following statements will assign the value of 100 to a and value of 200 to b? a,b = 100,200
Join 4M+ learners. Unlock unlimited quizzes, wrong-answer tracking, flashcards + reminders, study guides, and 1-on-1 challenges.