Following are given answers to each question, one by one:
Answer 1:
Option A: Object-Oriented
In object oriented programming, data and functions are encapsulated together in an object. The functions or methods take data as arguments and operate on them.
Answer 2:
Option A: Objects
An Object is a basic unit of Object Oriented Programming. It is basically an entity or component of a program that has information for interacting with other elements. It tells us that how specific actions will be performed. It contains both data and procedures.
Answer 3:
Option D: Fields
The variables, arrays, or other data structures that are stored in the object are known as the object’s Fields. Fields can be private or public depending on the fact that where they are declared.
Answer 4:
Option B: Methods
The procedures that the object performs are known as Methods. It can be defined as a process that is associated or linked with a class. They are the actions or behavior of an object defined or a class.
Answer 5:
Option B: Class
The programmer determines the fields and methods of an object and creates the Class code. While in Object oriented programming, a class can be named as a blueprint that provides initial values such as variables and attributes and member and unctions in order to create objects.
Answer 6:
Option B: definition
The class definition starts with the word Class followed by the name of the class. So, "class" is actually a keyword used for creating a class.
Answer 7:
Option D: members
The term used or the fields and methods that belong to a class is members.
Answer 8:
Option A: access specifier
The word Private that appears before a field declaration, in a class definition, is known as a(n) access specifier. It tell the scope of the field. This mean that where can it be used and where can not be used.
Answer 9:
Option B: is the correct answer.
The mutator methods are sometimes called accessors.
Answer 10:
Option D: Polymorphism
Polymorphism is a process that allows you to create methods with the same name in different classes and gives you the ability to call the correct method depending on the type of object that is used to call it.
Answer 11:
Option B: UML
UML is a standard way of drawing diagrams that describe object-oriented systems. UML stands or Unified Modeling Language. It presents a visual representation of objects, fields, states by integrated diagrams.
Answer 12:
Option A: getter
Getters is another name for accessor methods. Accessor methods are defined above.
Answer 13:
Option D: Constructor
Constructor method is called automatically when an object is created.
Answer 14:
Option C: Inheritance
Inheritance allows a new class to extend an existing class. It is a process in which a class or object is implemented on another class or object.
Answer 15:
Option D: All of above.
A procedure can:
- Read a file.
- Gathers input.
- Displays output.
Answer 16:
Option D: All of above.
A UML diagram of a class contains:
- Class name.
- Class fields.
- Class methods.
Answer 17:
Option A: +
In a UML diagram a plus "+" character is placed in front of a field of method name to indicate it is public.
Answer 18:
True
Answer 19:
True
When a constructor is not declared, it will be created by default by the compiler.
Answer 20:
True
It is the definition of over riding.
Answer 21:
True
Private methods have less scope than public ones so they cant be accessed by external entities.
Answer 22:
True
Answer 23:
False
Manipulation of private methods cannot be done directly.
Answer 24:
True
Answer 25:
False
Sub class is always inherited by the main class. This phenomenon can't be reversed
Answer 26:
True
Security is provided by hiding data.
Answer 27:
False
Basically two programming methods are used today, that are:
- procedural
- object oriented.
Answer 28:
True
Due to isolation of programs data and the code that is performed on the data, the procedural program gets larger and complex.
I hope it will help you!