Loading....
Coupon Accepted Successfully!

 

Question-1

Define software.

Solution:
Set of instruction used to execute a process is called as software.

Question-2

What do you understand by procedural programming paradigm?

Solution:
The programming approach that focuses on the procedures for the solution of a problem is known as procedural programming paradigm. This approach emphasizes on the doing rather than the data.

Question-3

Name the two major types of languages.

Solution:
The two major languages are low and high level languages.

Question-4

What is called as procedural language?

Solution:
A program in a procedural language is a list of instructions where each statement tells that the computer to do something.

Question-5

Define a module.

Solution:
A set of related procedure with the data they manipulate is called a module.

Question-6

Explain about objects in detail.

Solution:
An object is an entity as an entity that contains data and its related functions. The function operates on that data. The objects may be either physical or logical. While representing objects in computer it occupies some memory space and has an associated address. During execution objects can exchange information.

Question-7

Define a class.

Solution:
A class is a template or a blue print representing a group of objects that share common properties and relationship.

Question-8

List the components of OOPs.

Solution:
The components of OOPs are data abstraction, data encapsulation, modularity, inheritance and polymorphism

Question-9

Explain encapsulation in detail.

Solution:
Encapsulation is a technique used to protect the information in an object from other objects. Data encapsulation is the most striking feature of a class. The data is not accessible to the outside world and only those functions which are wrapped in the class can access it. These functions provide the interface between the object’s data and the program. The insulation of the data from direct access by the program is called data hiding

Question-10

Define Modularity.

Solution:
Modularity is the property of a system that has been decomposed into a set of cohesive and loosely coupled modules.

Question-11

Explain inheritance in detail.

Solution:
It is the process by which objects of one class acquire the properties of objects of another class. It supports the concept of hierarchical classification. For example the bird robin is a part of the class flying bird which is again a part of the class bird. OOPs have a feature that we can add additional features to an existing class without modifying it. This is possible by deriving a new class from the existing one. The new class will have the combined features of both the classes.

Question-12

Define polymorphism.

Solution:
Polymorphism is the ability for a message or data to be processed in more than one form.

Question-13

Write any two advantages of OOPs.

Solution:
Reusability: In OOPs, program functions and modules that are written by a user can be reused by other users without any modification

Code sharing: In OOPs, the programmer can share the codes which are common to more than one class by defining it in the parent classes in hierarchical order.

Question-14

Write any two disadvantages of OOPs.

Solution:
With OOP classes tend be overly generalized.

The relation of classes sometimes become artificial

The OOPs design is tricky

Also one needs to do proper planning and proper design for OOP program.

Question-15

What is base class? What is derived class? How are these two inherited?

Solution:
A derived class is a class that inherits properties from some other class. A base class is a class whose properties are inherited by derived class. A derived class has nearly all the properties of base class but the reverse of it not true.

Question-16

List some of the concepts in OOPs.

Solution:
The concept of OOPs is abstraction, data abstraction, encapsulation, inheritance and polymorphism.




Test Your Skills Now!
Take a Quiz now
Reviewer Name