Computer Science and Entrepreneurship Python Programming Object Oriented Programming in Python Medium Q1. How do you create an object from a class in Python? By calling a function By defining a variable By calling the class like a function By using the self keyword
Computer Science and Entrepreneurship Python Programming Object Oriented Programming in Python Medium Q2. What is an object in Python? A blueprint for a class A function of a class An instance of a class A method of a class
Computer Science and Entrepreneurship Python Programming Object Oriented Programming in Python Medium Q3. What is a class in Python? A real object A blueprint for objects A collection of methods A list of functions
Computer Science and Entrepreneurship Python Programming Object Oriented Programming in Python Medium Q4. What does object-oriented programming help with? Managing code Speed optimization Memory usage Code duplication
Computer Science and Entrepreneurship Python Programming Advanced Python Concepts Medium Q5. Which file mode opens a file for both reading and writing? r w a r+
Computer Science and Entrepreneurship Python Programming Advanced Python Concepts Medium Q6. Which block always executes in Python exception handling? try except finally else
Computer Science and Entrepreneurship Python Programming Advanced Python Concepts Medium Q7. What is the purpose of exception handling in Python? Stop the program on error Program running despite errors Fix errors automatically Improve performance
Computer Science and Entrepreneurship Python Programming Testing and debugging in Python Medium Q8. What is a common debugging technique? Running code without changes Adding print statements Ignoring errors Running once only
Computer Science and Entrepreneurship Python Programming Testing and debugging in Python Medium Q9. What is debugging in programming? Writing new code Finding and fixing errors Testing performance Optimizing speed
Computer Science and Entrepreneurship Python Programming Testing and debugging in Python Medium Q10. What is integration testing? Test small code parts Code integration Bug fixing changes To user expectations