0 of 20 Questions completed
Questions:
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading…
You must sign in or sign up to start the quiz.
You must first complete the following:
0 of 20 Questions answered correctly
Your time:
Time has elapsed
You have reached 0 of 0 point(s), (0)
Earned Point(s): 0 of 0, (0)
0 Essay(s) Pending (Possible Point(s): 0)
2. The first programming language to use objects was__________
3. In which year OOPs concept was introduced?
4. What are the major principles of oops?
5. What is object
6. What is mean by class?
7. What is inheritance?
8. What is encapsulation?
9. _______ are the properties of object
10. ___________ is defined as one variable behaves in many forms
11. Find the output for bellow code?
def add(x, y, z = 0):
return x + y+z
print(add(2, 3))
print(add(2, 3, 4))
12. ________ will Hides complexity and shows only what we need
13. We can create listof object in Python by appending class instances to list is called _______
14. What we called if two or more methods have the same method name with different arguments or parameters and return type in opps?
15. _______ are the two main parts of class
16. Re-implementing of a method in class, which is inherited from parent class.
17. What is output of following code?
class Robot:
pass
if __name__ == “__main__”:
x = Robot()
y = Robot()
y2 = y
print(y == y2)
print(y == x)
18. The difference between methods and functions
19. Disadvantages of opps in python?
20. Applications of oops in python?