Machine-translated by Google. Questions are authored in English.
Top

Object Oriented Concepts Questions and Answers

11.

When a programming Language has the capacity to produce new datatype, it is called as,

Exam Year(s)

UGC NET - 2012,

Answer: B

A programming language that can produce new data types is called an extensible language. Overloading means giving one name several meanings, encapsulation means hiding the data with the operations that use it, and abstraction means leaving out detail, so none of these is the property of creating new types. The keyed answer is Extensible Language.

Please log in or register to report this question.

12.

Which of the following concepts means adding new concepts to a program as it runs ?

Exam Year(s)

UGC NET - 2013,

Answer: B

Adding new concepts to a program as it runs is dynamic loading: new classes or modules are loaded and linked while the program executes. Data hiding is about restricting access to data, dynamic typing is deciding the type of a value at run time, and dynamic binding is choosing which method is called at run time.

Dynamic typing and dynamic binding change how existing items behave but do not bring new concepts into a running program, so dynamic loading is the one described.

Please log in or register to report this question.

13.

C++ actually supports the following two complete dynamic systems :

Exam Year(s)

UGC NET - 2013,

Answer: B

C++ supports two complete dynamic allocation systems: one defined by C (malloc and free) and one specific to C++ (new and delete). The statement that one is defined by C++ and the other not defined by C is not accurate, since the C system is defined by C.

Saying both are specific to C++ ignores malloc and free, and saying both are improvements of C is wrong because one of them is simply inherited from C.

Please log in or register to report this question.

Answer: C

Object-oriented means a collection of discrete objects that incorporates both data structure and behaviour.

This is the definition in Rumbaugh's object modelling text: the software is organised as discrete objects, each with its data structure and behaviour.

Continuous objects, and discrete structure instead of data structure, do not appear in the definition. Rumbaugh and others added that each object has an identity and that objects with the same data structure and behaviour are grouped into a class. The words 'discrete' and 'data structure' are the exact words of the definition.

Please log in or register to report this question.

15.

The "part-whole", or "a-part-of", relationship in which objects representing the components of something associated with an object representing the entire assembly is called as

Exam Year(s)

UGC NET - 2014,

Answer: B

The part-whole relationship is aggregation.

Aggregation is the relationship in which an object representing the whole assembly is associated with objects representing its components.

Association is a general link between objects, encapsulation is information hiding and generalisation is the relationship of a superclass with its subclasses. Whole-part relations are modelled as aggregation in object-oriented analysis. A car and its engine or a document and its pages are examples, with the assembly being the whole and its components the parts.

Please log in or register to report this question.

16.

The pure object oriented programming language with extensive metadata available and modifiable at run time is

Exam Year(s)

UGC NET - 2014,

Answer: A

Smalltalk is the pure object oriented language with extensive metadata available at run time.

In Smalltalk everything is an object, including classes, and a program can inspect and change its classes at run time.

C++ and Java are hybrid languages, and Eiffel is object oriented but does not offer the run-time metadata that Smalltalk does. Smalltalk, developed at Xerox PARC, treats numbers, classes and even blocks of code as objects that respond to messages, and its reflective facilities make the class structure available and modifiable while the program runs.

Please log in or register to report this question.

Loading…

Other Subjects

Tags: Object Oriented Concepts Questions and Answers || Object Oriented Concepts MCQ Questions and Answers || Object Oriented Concepts GK Questions and Answers || Object Oriented Concepts GK MCQ Questions || Object Oriented Concepts Multiple Choice Questions and Answers || Object Oriented Concepts GK || GK on Object Oriented Concepts || Object Oriented Programming Questions and Answers || Object Oriented Programming MCQ Questions and Answers || Object Oriented Programming GK Questions and Answers || GK on Object Oriented Programming