Self-assessment quiz

Quiz on Object Oriented Programming

--- primary_color: orange secondary_color: lightgray text_color: black shuffle_questions: false --- ## Programming paradigms --- shuffle_answers: true --- What is a programming paradigm? - [x] A method or style of programming that defines a set of principles, techniques, and patterns for structuring code to solve problems on a computer. - [ ] A programming language used for solving complex problems. - [ ] A programming concept that focuses on data manipulation. - [ ] A programming technique for optimizing code performance. ## Procedural programming --- shuffle_answers: true --- What is one advantage of procedural programming? - [x] Program modularity and ease of code reuse and maintenance. - [ ] Improved code performance. - [ ] Enhanced data manipulation capabilities. - [ ] Simplified debugging process. ## Object-oriented programming --- shuffle_answers: true --- What is object-oriented programming (OOP)? - [x] A programming paradigm based on the concept of objects. - [ ] A programming paradigm based on the concept of functions. - [ ] A programming paradigm based on the concept of variables. - [ ] A programming paradigm based on the concept of arrays. ## OOP Advantages --- shuffle_answers: true --- What problem did the object-oriented programming paradigm aim to solve? - [x] The difficulty of creating and maintaining programs to solve increasingly complex problems. - [ ] The need for faster code execution. - [ ] The documentation of code. - [x] The lack of code modularity and reusability. ## Object --- shuffle_answers: true --- What is an object? - [x] An abstraction of a real-world entity involved in the execution of a program. - [ ] A collection of variables. - [ ] A collection of functions. - [ ] A collection of arrays. ## Class --- shuffle_answers: true --- What is a class? - [x] An entity that defines the structure and behavior of a family of objects. - [ ] An entity that defines the structure and behavior of a single object. - [ ] An entity that defines the structure and behavior of a collection of variables. - [ ] An entity that defines the structure and behavior of a collection of functions. ## Encapsulation --- shuffle_answers: true --- What is encapsulation? - [x] The principle of hiding or protecting the state of an object. - [ ] The principle of exposing the state of an object. - [ ] The principle of hiding or protecting the state of a class. - [ ] The principle of exposing the state of a class.