OOP Definitions Exam With 100%Corect
Answers
Procedural programming - correct answers ✔✔Programs are written as a series of step-by-step
instructions on how to solve the problem. Usually broken down into modules and the program
them consists of a series of calls to procedures or functions.
Object-oriented programming - correct answers ✔✔A program is composed of a number of
interacting objects, each of which is responsible for its own data and the operations on the
data.
Class - correct answers ✔✔A blueprint or template for an object - it defines the attributes and
behaviours (methods) of objects in that class.
Information hiding - correct answers ✔✔Other classes cannot directly access the private
attributes of a class.
Constructor - correct answers ✔✔Used to create objects of a class.
Instantiation - correct answers ✔✔The creation of a new object (an instance of a class).
Encapsulation - correct answers ✔✔Data and methods are wrapped up into a single entity so
that the attributes and behaviours of one object cannot affect another object. Means that
programmers can work on different classes independently and can use other classes without
needing to know how they work.