Recent questions and answers in Object Oriented Programming

1 1 vote
1 1 answer
232
232 views
Given below are two statements: one is labelled as Assertion A and the other is labelled as Reason RAssertion A: We can build an object from a class containing a pure vir...
1 1 vote
1 1 answer
199
199 views
Which of the following is not true about constructorWhen an object is created and initialized at the same time, a copy constructor gets called.They do not have return typ...
1 1 vote
1 1 answer
181
181 views
Match the $\textbf{LIST-I}$ with $\textbf{LIST-II}$LIST-Ifile mode parametersLIST-IIMeaningA.$\operatorname{ios::ate}$I.Go to end of file on openingB.$\operatorname{ios::...
0 0 votes
1 1 answer
163
163 views
Which of the following statements are True?The $++$ operator can be overloaded to perform decrementation of a variable.It is necessary that a constructor in a class shoul...
15 15 votes
4 answers 4 answers
34.6k
34.6k views
It is desired to design an object-oriented employee record system for a company. Each employee has a name, unique id, and salary. Employees belong to different categories...
0 0 votes
0 0 answers
129
129 views
Arrange the following applet life cycles methods in sequence$\operatorname{start}()$$\operatorname{paint()}$$\operatorname{init()}$$\operatorname{stop()}$Choose the corre...
0 0 votes
1 1 answer
285
285 views
Which of the statement are CORRECT?Constructors are invoked automatically when the objects are created.Constructors do not have return types, not even void and therefore ...
0 0 votes
1 1 answer
275
275 views
Which of the following statements is TRUE?Virtual functions do not implement polymorphismVirtual functions do not permit calling of derived class functions using a base c...
0 0 votes
2 2 answers
455
455 views
Given below are two statements :Statement $\text{(I)}$ : The friend function and the member functions of a friend class directly access the private and protected data.Sta...
0 0 votes
2 2 answers
416
416 views
Which of the following statement is not True?A data member of a class can be declared as static and is normally used to maintain values common to the entire class.A frien...
0 0 votes
2 2 answers
393
393 views
Which of the following C++ statements correctly declares an abstract class?class A { virtual void show ()=0; };class A { void show ()=0; };class A { void show() {} ; };cl...
0 0 votes
2 2 answers
1.0k
1.0k views
Which of the following statements are true regarding $\text{C++}$?Overloading gives the capability to an existing operator to operate on other data typesInheritance in ob...
0 0 votes
2 2 answers
510
510 views
Match List I with List II$\begin{array}{|ll|ll|} \hline & \textbf{List I} & & \textbf{List II} \\ \hline \text{A.} & \text{Overloading} & \text{I.} & \text{Since function...
0 0 votes
0 0 answers
286
286 views
The characteristics of modern programming are:Each module should do only one thing.Communication between modules is allowed only by a calling module.Communication can tak...
0 0 votes
0 0 answers
225
225 views
The steps for analysis and design of object oriented system.Draw interaction diagramsDraw state chart and object diagramDraw use case and activity diagramDraw component a...
0 0 votes
0 0 answers
147
147 views
What does a class diagram in $\text{UML}$ represent?The sequence of operationsThe data flow between entitiesThe structure and relationships between classesThe physical st...
1 1 vote
2 answers 2 answers
3.9k
3.9k views
The Object Modelling Technique (OMT) uses the following three kinds of model to describe a systemClass Model , Object Model and Analysis ModelObject Model, Dynamic Model ...
1 1 vote
7 7 answers
6.6k
6.6k views
Given below are three implementations of the $\text{swap()}$ function in $\text{C++}$ :$\begin{array}{|l|l|l|} \hline \qquad \qquad \text{(a)} & \qquad \qquad \text{(b)}...
0 0 votes
1 1 answer
736
736 views
The signature of the object method clause present in class diagram containsAll definitional attributes of the class used in the method All referential attributes of the c...
0 0 votes
2 2 answers
1.4k
1.4k views
Object-oriented paradigm is used in the analysis stage of SDLC toStructure the behavioural part of the business processDesign the structural part of Computer memoryDesign...
0 0 votes
0 0 answers
506
506 views
A constructor cannot be explicitly called by the client program. true or false?
0 0 votes
0 0 answers
269
269 views
A program that includes the file containing a class declaration is called a ________ program of the class.
0 0 votes
2 2 answers
1.7k
1.7k views
The data hiding is taken care by :AbstractionEncapsulationModularityInheritance
0 0 votes
0 0 answers
512
512 views
Trying out a code to get all the possible marks that can be obtained in a GATE paper.Assumptions taken : 1) All questions are MCQs (all questions have a chance of negativ...
0 0 votes
1 answers 1 answer
544
544 views
Function overloading is a concept in which :a function is used to implement lots of tasks at the same time.a function is called too many number of times by another functi...
0 0 votes
1 1 answer
649
649 views
Which of the following is true?A "static" member of a class cannot be inherited by its derived class.A "static" member of a class can be initialized only within the class...
0 0 votes
1 1 answer
838
838 views
In Software Modeling $\text{‘IS A’}$ represents ______________ relationship.Aggregation Over loading Inheritance Design Patterns
0 0 votes
1 1 answer
581
581 views
The dynamic binding occurs during theCompile timeRun timeLinking timePre-processing time
0 0 votes
1 1 answer
511
511 views
Data members and member function of a class by default is respectively :private and publicpublicpublic and privateprivate
0 0 votes
4 4 answers
1.1k
1.1k views
0 0 votes
0 0 answers
434
434 views
Given below are two statements:Statement $\text{I}$: subsystem models show logical grouping of objects into coherent subsystemStatement $\text{II}$: State machine models ...
0 0 votes
0 0 answers
356
356 views
Match $\text{List I}$ with $\text{List II}$$\text{List I}$$\text{List II}$$\text{A}$. If the implementation of generated or derived classes differ only through a paramete...
0 0 votes
1 1 answer
505
505 views
0 0 votes
2 2 answers
585
585 views
Match the following in from List-1 and List-2 : List-1 List-2(a) Create new classes from existing class(i) Polymorphism(b) Using simil...
0 0 votes
1 1 answer
1.4k
1.4k views
Polymorphism means :A template functionRuntime type identification within a class hierarchyAnother name for operator overloadingVirtual inheritance
0 0 votes
1 1 answer
2.0k
2.0k views
Which one of the following features is supported by 𝐶 ++ but not by JAVA ?(a) Encapsulation(b) Multiple inheritance(c) Concurrency(d) Garbage collection
0 0 votes
1 1 answer
1.7k
1.7k views
Which one of the following fundamental features of the OOPs is not supported by 𝐶++?(a) Persistence(b) Delegation(c) Genericity(d) Data abstraction
0 0 votes
1 1 answer
454
454 views
Which is indicating use of virtual functions?OverloadingOverridingStatic bindingDynamic binding
0 0 votes
1 1 answer
996
996 views
If a data-item is declared as a protected access specifier then it can be accessed : Anywhere in the programBy the base and derived classesOnly by base classOnly by deriv...
0 0 votes
1 1 answer
1.2k
1.2k views
In context of C++, which of thefollowing is valid statement ?(1) Friend function of class isalways a member function ofthat class.(2) Value of static data membercannot be...
To see more, click for all the questions in this category.